Author |
Message |
Topic: CCS PCWHD with MPLAB. |
gilavar
Replies: 0
Views: 2818
|
Forum: General CCS C Discussion Posted: Fri Aug 21, 2009 3:19 pm Subject: CCS PCWHD with MPLAB. |
After few months of frustrations trying to get my project done, I found some problem within MPLAB itself. I was working with three projects at the same time keeping them in separate folders. Some of t ... |
Topic: Help with bootloader, PIC24FJ32 |
gilavar
Replies: 2
Views: 4098
|
Forum: General CCS C Discussion Posted: Thu Aug 20, 2009 4:55 pm Subject: Help with bootloader, PIC24FJ32 |
I don't understand your bootloader layout. If the loader is located starting from 0x5000, how can it call flash write code at 0x346 (the main application area).
Thank you for reply. I added "def ... |
Topic: Help with bootloader, PIC24FJ32 |
gilavar
Replies: 2
Views: 4098
|
Forum: General CCS C Discussion Posted: Thu Aug 20, 2009 12:41 pm Subject: Help with bootloader, PIC24FJ32 |
It is my first project with “C” and CCS. Application is very complex system and after 4 month everything is working just fine. Before releasing this product I have to implement the bootloader, so ... |
Topic: 24FJ32 to 24FJ16 problem |
gilavar
Replies: 4
Views: 4536
|
Forum: General CCS C Discussion Posted: Sat Aug 01, 2009 3:57 pm Subject: !!!!!!!!!!!! |
I found the problem. Well… at least one of the problems and I do not know how it was working before and pass all beta tests?!
In device configuration files, under “Timer Functions” they have:
... |
Topic: 24FJ32 to 24FJ16 problem |
gilavar
Replies: 4
Views: 4536
|
Forum: General CCS C Discussion Posted: Fri Jul 31, 2009 12:36 pm Subject: 24FJ32 to 24FJ16 problem |
Thank you. I just updated my compiler, but for some reason I can’t get any of my codes working at all. After some tweaking code compiles, but does not run correctly. Will try to figure out what is g ... |
Topic: 24FJ32 to 24FJ16 problem |
gilavar
Replies: 4
Views: 4536
|
Forum: General CCS C Discussion Posted: Wed Jul 29, 2009 6:12 pm Subject: Re: 24FJ32 to 24FJ16 problem |
I traced the problem to the interrupts. They are quit working at some point. For example I am using 50mS Timer-4 Interrupt, were I do have counters to do some routines in 500mS and 1000Sec. with [Slee ... |
Topic: 24FJ32 to 24FJ16 problem |
gilavar
Replies: 4
Views: 4536
|
Forum: General CCS C Discussion Posted: Wed Jul 29, 2009 3:28 pm Subject: 24FJ32 to 24FJ16 problem |
Recently I finished an application for PIC24FJ32GA002. Since memory used only 30~35% I decided to approve PIC24FJ16GA002 for the production.
Now, when I am trying to run the code on 16K device, every ... |
Topic: Can’t remove unwanted library. |
gilavar
Replies: 1
Views: 3559
|
Forum: General CCS C Discussion Posted: Tue Jul 21, 2009 7:14 pm Subject: Can’t remove unwanted library. |
I am using MPLAB IDE v8.15, PCD v4.083, for PIC24FJ32GA004.
After compilation the following libraries get’s attached to the project:
Ctype.h; stddef.h; stdlib.h; string.h
In my code I am not incl ... |
Topic: Question about bootload in PIC24FJxxx |
gilavar
Replies: 13
Views: 18935
|
Forum: General CCS C Discussion Posted: Fri Jul 10, 2009 12:56 am Subject: Question about bootload in PIC24FJxxx |
As said, the code page size is 0x400 words (or 0x200 instructions). Due to the 24 bit instructions size, there is a dummy byte included in each double-word, but you don't have to care for it, except w ... |
Topic: Question about bootload in PIC24FJxxx |
gilavar
Replies: 13
Views: 18935
|
Forum: General CCS C Discussion Posted: Thu Jul 09, 2009 5:47 pm Subject: Question about bootload in PIC24FJxxx |
OK, now it is more confusing. Checking the PIC’s datasheet (page 41 With RTSP, the user may write program memory data in blocks of 64 instructions (192 bytes) at a time, and erase program memory in ... |
Topic: Question about bootload in PIC24FJxxx |
gilavar
Replies: 13
Views: 18935
|
Forum: General CCS C Discussion Posted: Thu Jul 09, 2009 4:59 pm Subject: Question about bootload in PIC24FJxxx |
You right, I forgot about 16+8 word configuration. Does that mean erasable block of memory address will be 0x0000~0x07FF; 0x0800~0x15FF and so on?
In this case I can’t write for example in the midd ... |
Topic: Question about bootload in PIC24FJxxx |
gilavar
Replies: 13
Views: 18935
|
Forum: General CCS C Discussion Posted: Thu Jul 09, 2009 12:52 pm Subject: Question about bootload in PIC24FJxxx |
In my application I am using two devices. PC connected to the station via USB. I am using FTDI (232RL) with PIC24FJ32-004 to host the remote devices via custom 1-wire protocol. In remote devices I am ... |
Topic: Strange HW UART problem with PIC24FJ32. Please HELP! |
gilavar
Replies: 12
Views: 15806
|
Forum: General CCS C Discussion Posted: Mon Jun 22, 2009 4:43 pm Subject: Strange HW UART problem with PIC24FJ32. Please HELP! |
I tried your code with a 24FJ128GA010 and it has correct serial output.
Thus I think it's most likely a device specific issue.
Thank you for doing it. In this case I better order another set of cont ... |
Topic: Strange HW UART problem with PIC24FJ32. Please HELP! |
gilavar
Replies: 12
Views: 15806
|
Forum: General CCS C Discussion Posted: Mon Jun 22, 2009 2:07 pm Subject: Strange HW UART problem with PIC24FJ32. Please HELP! |
You had said earlier that there are no erratas on this problem.
In fact, in the Rev. A3 silicon there are many erratas on BRGH,
autobaud, etc.
http://ww1.microchip.com/downloads/en/DeviceDoc/80316 ... |
Topic: Strange HW UART problem with PIC24FJ32. Please HELP! |
gilavar
Replies: 12
Views: 15806
|
Forum: General CCS C Discussion Posted: Mon Jun 22, 2009 1:21 pm Subject: Strange HW UART problem with PIC24FJ32. Please HELP! |
Yes, when the software UART works correct, you can expect that the oscillator frequency is basically O.K.
I found, that with clock=32000000 the baud generator is initialized somewhat strange by the ... |
|