Author |
Message |
Topic: PIC24 Bootloader jump to Applicaton |
koofelek
Replies: 9
Views: 16958
|
Forum: General CCS C Discussion Posted: Tue Jun 05, 2012 7:35 pm Subject: PIC24 Bootloader jump to Applicaton |
Sorry for a long delay, no time at all. The program was working fine, my colleague removed all debug from the main so after the debug in the bootloader about the device resetting, there was nothing el ... |
Topic: PIC24 Bootloader jump to Applicaton |
koofelek
Replies: 9
Views: 16958
|
Forum: General CCS C Discussion Posted: Wed May 23, 2012 7:11 pm Subject: PIC24 Bootloader jump to Applicaton |
I know exactly what you mean. Here's the function to copy the bootloader reset vector and application reset vector from an incoming file into global variables
if(uSourceAddr.Val32 == 0) ... |
Topic: PIC24 Bootloader jump to Applicaton |
koofelek
Replies: 9
Views: 16958
|
Forum: General CCS C Discussion Posted: Wed May 23, 2012 5:27 pm Subject: PIC24 Bootloader jump to Applicaton |
Could this be also a compiler bug or problems with jumps? I had a bit weird behaviour going on, not sure that it was i.e. when I increased the stack from 256 bytes to 512 bytes, the top RAM usage jump ... |
Topic: PIC24 Bootloader jump to Applicaton |
koofelek
Replies: 9
Views: 16958
|
Forum: General CCS C Discussion Posted: Tue May 22, 2012 5:28 pm Subject: PIC24 Bootloader jump to Applicaton |
I've used global static variables to store both reset vectors, i.e.
static ureg32 uBootResetVec0; // bootloader reset vector value 0 (at address 0x000000)
static u ... |
Topic: PIC24 Bootloader jump to Applicaton |
koofelek
Replies: 9
Views: 16958
|
Forum: General CCS C Discussion Posted: Tue May 22, 2012 11:45 am Subject: PIC24 Bootloader jump to Applicaton |
The ORG is a good point, thanks. I must have thought compiler would make sure 0x203 would not be used but I was wrong.
The way the bootloader re-maps the reset vector is:
- the hex file is modified ... |
Topic: PIC24 Bootloader jump to Applicaton |
koofelek
Replies: 9
Views: 16958
|
Forum: General CCS C Discussion Posted: Tue May 22, 2012 3:26 am Subject: PIC24 Bootloader jump to Applicaton |
Hi,
I'm working on the bootloader for PIC24HJ128. The compiler version I have is PCD 4.132.
The bootloader reset vector is at 0x0000, the application reset vector is mapped by the bootloader (not ... |
Topic: PIC24 MD5 - any luck? |
koofelek
Replies: 2
Views: 4956
|
Forum: General CCS C Discussion Posted: Sun Apr 22, 2012 7:46 pm Subject: PIC24 MD5 - any luck? |
Has anybody been lucky with getting MD5 code (from RFC) to work on PIC24 and PCD (v. 4.126d)? I've tried the RFC code but even for empty text the output is incorrect. I've also tried writing the wikip ... |
Topic: Software UART - hex printing |
koofelek
Replies: 2
Views: 4068
|
Forum: General CCS C Discussion Posted: Sat Apr 21, 2012 5:45 am Subject: Software UART - hex printing |
I think I posted most of these points apart from a sample code. Since it's quite a big code at the moment it was hard to find that specific thing. Nevertheless, it took me all day chopping it down and ... |
Topic: Software UART - hex printing |
koofelek
Replies: 2
Views: 4068
|
Forum: General CCS C Discussion Posted: Fri Apr 20, 2012 12:04 pm Subject: Software UART - hex printing |
Hi,
I'm using PIC24HJ with a software UART (can't use any hardware - due to spec). The fprintf sends hex sometimes correctly and sometimes it sends the hex and lots of zeros
289a0000000000... (a ... |
|