nxp-mcuxpresso / sbl

Other
39 stars 10 forks source link

I couldn't generate one correct "hello_world" APP image in MCUExpresso #1

Open zhangxq0521 opened 2 years ago

zhangxq0521 commented 2 years ago

I couldn't yield one runnable "evkmimxrt1170_hello_world_demo_cm7.bin" in MCUExpresso.

Since no explicit advise on how to generate one runnable image as APP firmware, I had to try in my way as below:

image

The suggested operation for RT1160 in user guide for IAR is: image

With the image I generated, the bootloader (sbl) couldn't jump to APP firmware in a right way.

hello sbl.
Bootloader Version 1.1.0
Bootloader chainload address offset: 0x100000
Reset_Handler address offset: 0x10053d
Jumping to the image

I checked the image map and certify that the address "0x10053d" is right after the address of vector table. image

Please find attached project zip file (generated in MCUExpresso from one example project) and give your suggestions. image

Here is the project attached. evkmimxrt1170_hello_world_demo_cm7.zip

liugang-gavin commented 2 years ago

hi, Zhang,

Here you can find the UG: https://github.com/NXPmicro/sbl/tree/master/doc There are detailed information and steps how SBL boot up a firmware image. Attention, for SBL/SFW, we just support arm_gcc, IAR, KEIL, for MCUExpresso, the linkfile is generated automatically.