View previous topic :: View next topic |
Author |
Message |
SeeCwriter
Joined: 18 Nov 2013 Posts: 160
|
bootloader |
Posted: Mon Jun 03, 2019 10:02 am |
|
|
I'm using the bootloader example program from a few years ago on a new project, and it works fine. So I took a look at the same program in the current release (5.085) to see if there were any changes I needed to be aware of. And I noticed is a difference in the #org statement for the application function. In the older version, application is given 2-bytes of memory, while the v5.085 version is given 1-byte. Is that correct?
Old version:
Code: |
#org LOADER_END+2, LOADER_END+4
void application(void) {
while(TRUE);
}
|
New version:
Code: |
#org LOADER_END+1,LOADER_END+2
void application(void) {
while(TRUE);
}
|
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9272 Location: Greensville,Ontario
|
|
Posted: Mon Jun 03, 2019 10:47 am |
|
|
while I don't use them, I think it's based on which PIC series you're using....
Jay |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
SeeCwriter
Joined: 18 Nov 2013 Posts: 160
|
|
Posted: Mon Jun 03, 2019 2:41 pm |
|
|
That post was helpful. It's interesting that the example program as installed does not have that #if..#else statement to set #org. And neither did the version of the example file that the poster posted in his message. If I were using a PIC16, I would have gotten a compiler error and been asking the same questions as the poster. |
|
|
|