I am using K20 controller to run Mqx based application.
I have used uTasker Serial Boot loader ver 1.4.7 to load an application from SD Card.
uTasker serial bootloader is able to load application from SD Card successfully but post loading loaded application is not running in which i am having lot of debug logs coming out.
I strongly suspect, there is an issue in below mentioned linker configurations.
Below is my linker config files used in uTasker Serial bootloader and MQX based Application respectively.
uTasker Serial Bootloader linker configuration
/*FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000 */
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
SRAM (wx) : ORIGIN = 0x1fffc1f0, LENGTH = 0x00008000-0x1f0
Above linker configuration is being used in k_256_32.ld
MQX Application based linker configuration.
vectorrom (RX): ORIGIN = 0x00008000, LENGTH = 0x00000400
cfmprotrom (RX): ORIGIN = 0x00008400, LENGTH = 0x00000020
rom (RX): ORIGIN = 0x00008420, LENGTH = 0x0003CBE0 # Code + Const data
ram (RW): ORIGIN = 0x1FFF8000, LENGTH = 0x00010000 # SRAM - RW data
# kernel space starts after RAM variables (Location of MQX Kernel data + MQX heap)
end_of_kd (RW): ORIGIN = 0x20007FF0, LENGTH = 0x00000000
# Boot stack reused by MQX Kernel data
#bstack (RW): ORIGIN = 0x20007A00, LENGTH = 0x00000200 # Boot stack
#end_bstack (RW): ORIGIN = 0x20007BFF, LENGTH = 0x00000000
bstack (RW): ORIGIN = 0x20007FFC, LENGTH = 0x00000200 # Boot stack
end_bstack (RW): ORIGIN = 0x200081FB, LENGTH = 0x00000000
Both uTasker Serial Bootloader and Mqx based application is built using codewarrior 10.5.
Also, for kind reference and perusal i am here with attaching bin files for both uTasker Serial Bootloader and MQX based application.
In addition to these files i am here with attaching text file that has following things.
* UART output.
* code snippet used in start_appliction used to jump to my MQX based application post software is updated / software OK.
* Flash DUMP to validate our linker configuration file usage with boot loader and MQX based application. This dump has been taken in boot loader code just before loading SP and PC value.
Looking at Flash dump, for me every thing looks ok.
Can any of you please verify these things and let me very i am going wrong?
I am awaiting for your kind response.
-Janardhan N L
Original Attachment has been moved to: Toforum.rar