Hi team,
we generated s19 file for pin toggling and dumped that file into SD card. After power on the pin was not toggled. So, we had taken SD card polling example for read and write but SD init is failed. Attaching our SD card related schmatics and our example code. Please guide to find the issue.
Hi @mayliu1 ,
OK we are trying on the things you have mentioned but we have taken sdcard_polling_cm7 example then during debugging, execution stops at the SD Probe voltage, and SD card initialization fails. can you tell me why this is happening?
In mcuxpresso console we got the below logs:
Executed SetRestartOnClose=1
[MCUXpresso Semihosting Telnet console for 'evkbmimxrt1170_sdcard_polling_cm7 JLink Debug' started on port 59089 @ 127.0.0.1]
SEGGER J-Link GDB Server V8.10 - Terminal output channel
SDCARD polling example.
Please insert a card into board.
Card inserted.
SD card init failed.
[Closed Telnet Session]
Hi @Harishnamala ,
Thanks for your updated information.
1: If you use MCUXPresso IDE, BOOT Mode should be Internal Boot.
2: You cannot simply copy an .s19 boot file to the SD card. Instead, you should use the SEC Tool or the MCUBootUtility tool, and configure the Boot Mode as Serial Downloader.
3:If you are unsure whether your hardware design is correct, you can use MCUXpresso IDE to import an SD card SDK demo , set the link option to Link application to RAM, and then try to debugging.
Best Regards
MayLiu
Hi @mayliu1
Thank you for your reply.
We designed a custom board using the MIMXRT1176AVM8A IC. On this board, the SD card is used for both booting and data storage.
Currently, we are unable to boot the device from the SD card. Even during debugging, execution stops at the SD Probe voltage, and SD card initialization fails.
We probed the CLK and CMD pins during this stage. The CLK signal is present at approximately 340 kHz 3.3V level, and the CMD signal is also observed. However, no activity is detected on the DATA pins when checked with an oscilloscope.
Software tool: MCUXpresso IDE v24.9
Debugger: J-Link Plus
SD card: uSDHC, 32 GB
We copied an .s19 boot file to the SD card, but it was not loaded. Could you please advise which file format should be used for SD card booting?
Boot Mode given as below
BT cfg 0 : 0
BT cfg 1 : 0
BT cfg 2 : 0
BT cfg 3 : 0
BT cfg 4 : 0
BT cfg 5 : 0
BT cfg 6 : 1
BT cfg 7 : 0
BT cfg 8 : 0
BT cfg 9 : 0
BT cfg 10 : 0
BT cfg 11 : 0
Boot mode 0 : 1
Boot mode 1 : 0
Note : We are using SD Card not Micro SD card
Kindly provide some support for this issue.
Hi @Harishnamala ,
Thank you so much for your interest in our products and for using our community.
Please clarify what do you want to realize. What Tools do you use, SEC tool or MCUBootUtility? your board is customed or MIMXRT1176-EVKB board?
Do you want your Image running in internal RAM, this image is on an SD card, and it will be copied into internal RAM and executed from there during the boot.
If so, I think your IDE project is not correct, try the below configuration.
I did a test for your question, I use SEC Tool, and it works.
Please pay attention that BOOT CFG Pins setting, I suggest you try Bus Width: 4 bit
Best Regards
MayLiu
Hi @Harishnamala ,
Thanks for your updated information.
Based on your description "execution stops at SD probe voltage,"
I suggest checking your NVCC_SD hardware design.
Please refer to the MIMXRT1170-EVKB board design. The default voltage is 3.3v, and
Best Regards
MayLiu
Hi @mayliu1 ,
Now sd card polling example is working. We are able read and write data into it. Now we are getting a problem in SD card booting.
Installed MCU-Boot-Utility tool, run the exe and after pressing connect to rom we got connect to flash loader as shown in below image
When i try to browse file then the gui is not responding and got the below error
why we are getting above error.
can you tell me how to generate the .bin file from s19 manually and changes in project settings to generate the s19 file for sd card.
Hi @Harishnamala ,
Please refer to the following link.
Processor-specific workflows — Secure Provisioning Tool 25.12
BR