Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Offset for application [solved]
#1
I have just downloaded the dsloader software.
The Gui software compiled fine in Visual Studio 2010 and I managed to compile the Bootloader firmware. (Used MPLAB config settings and changed xxx lines to set up PIC18F6722, UART2, 16MHz oscillator etc).

When I view the program memory it shows a goto at location 0000 to 1FE40. At 1FE40 to 1FFCC resides the bootloader code.

Next I want to test the bootloader with an application. The application is written in "C". Do I need to offset the code so that it does not write the usual Goto 0010 at start vector, or do you compile as usual and the bootloader places it in the correct location?

Thanks
Reply
#2
Hello,

No need to offset, compile as usual.

cf. "ds30Loader firmware manual" page 6 & last page.

Lotusx
Reply
#3
Thanks for the prompt response. My firmware manual on page 6 only has the following text.
***********************************
Bootloader placement
The bootloader is normally placed at the very end of flash memory. This way there is no
need to alter the linker script. Some device families place configs at the end of flash
memory, in those cases the bootloader is placed just before the configs.
***********************************


(2010-10-16, 11:29:34)Lotusx Wrote: Hello,

No need to offset, compile as usual.

cf. "ds30Loader firmware manual" page 6 & last page.

Lotusx
Reply
#4
Hello,

As there is no need to alter the linker script (C or asm), your code start @ 0x0000.

[broken link]

I hope it's working (post your hex file if not).

Lotusx
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)