void __attribute__ ((section ("tprog_reset_pos"))) __attribute__ ((naked)) tprog_reset () { __asm__ __volatile__ ("jmp 0x00"); }
where tprog_reset_pos is at position 0x1db00. This is the possition the loader code jumps after RESET.
In the Makefile it is important to set the linker to map the tprog_reset_pos at 0x1db00 with --section-start tprog_reset_pos=0x0001db00.
To upload the result.bin file into the programmer the following procedure should be used:
This procedure is used also for firmware upgrade.
Copyright © 2004 BLADOX | Turbo Programmer version 2.0
|