Hello, I want to generate bootable_image as boot code. When boot time, the boot code will run sdram.
Issue: The boot_image size is 0 by the elftosb tool (win)。
Env: RT1050 EVKB, QSPI Flash (IS25WP064A), SDRAM(IS42S16160J-6BLI, 256Mb)
Generation Bootable image flow: (https://community.nxp.com/docs/DOC-341317)
STEP1. Create new project(example code: rt1050_iled_blinky).
Set MCU Setting -> Flash driver (IS25WP064A).
Modify SDRAM location 0x80002000 address.
STEP2. XIP_BOOT_HEADER_ENABLE=0, XIP_BOOT_HEADER_DCD_ENABLE=0
STEP3. Go to C/C++ Build >> Settings >> MCU Linker >> Manage linker script, and check the box Link application to RAM.
STEP4. Build (Check SDRAM space)
STEP5. Generate an SDRAM_iled_blinky_boot_image.s19 (.s19)
STEP6. Download boot_to_sdram.zip (https://community.nxp.com/docs/DOC-340655)
The imx-sdram-normal-unsigned-dcd.bd put Tools > bd_file > imx10xx
The dcd.bin put Tools > elftosb > win
STEP7. Use elftosb tool to generate image file, Execute Command prompt (administrator mode)
elftosb.exe -f imx -V -c ..\..\bd_file\imx10xx\imx-sdram-normal-unsigned-dcd.bd -o evkbimxrt1050_led_blinky.bin SDRAM_iled_blinky_boot_image.s19
Generate evkbimxrt1050_led_blinky.bin & evkbimxrt1050_led_blinky_nopadding.bin
elftosb.exe -f imx -V -c ..\..\bd_file\imx10xx\program_flexspinor_image_qspinor.bd -o boot_image.sb evkbimxrt1050_led_blinky_nopadding.bin
#
STEP8. Found boot_image size is 0.
Best Regard,
Jim
Hi Jorge Alcala
Currently, the project will not use this method for the time being,
Thank you very much.
Best Regards
Jim
Hello,
Currently, After the following steps, the board has no work.
Step7. I can generate a boot_image.sb (24KByte).
elftosb.exe -f imx -V -c ..\..\bd_file\imx10xx\imx-sdram-normal-unsigned-dcd.bd -o evkbimxrt1050_led_blinky.bin SDRAM_iled_blinky_boot_image.s19
elftosb.exe -f kinetis -V -c ..\..\bd_file\imx10xx\program_flexspinor_image_qspinor.bd -o boot_image.sb evkbimxrt1050_led_blinky_nopadding.bin
Step8. Copy the boot_image.sb file to Tools > mfgtools-rel > Profiles > MXRT105X > OS Firmware.
Step9. Set SW7 on the board to OFF-ON-OFF-ON,
Step10. The mfgtools-rel upload the bootable image to the board .
Step11. Set SW7 to OFF-OFF -ON -OFF to boot from QSPI Flash.
I don’t know where the problem is.
Best Regard,
Jim
Hi JingHuan Huang
You could perform an attach to the running target to read the memory and verify if the SDRAM was correctly initialized. This seems to be a problem with the binary file that you are loading could you share the project that you uses and the offset that you set?
Best regards
Jorge Alcala
Hi JingHuan Huang
The second command of elftosb need to have the kinetis parameter, not the imx.
elftosb.exe -f imx -V -c ..\..\bd_file\imx10xx\program_flexspinor_image_qspinor.bd -o boot_image.sb evkbimxrt1050_led_blinky_nopadding.bin
it has to be
elftosb.exe -f kinetis -V -c ..\..\bd_file\imx10xx\program_flexspinor_image_qspinor.bd -o boot_image.sb evkbimxrt1050_led_blinky_nopadding.bin
Hope this helps
Best regards
Jorge Alcala