MIMXRT685-AUD-EVK stuck in boot-up #108312
-
|
I am trying to get samples/hello_world and samples/kvss/nvs working on the NXP MIMXRT685-AUD-EVK. I am able to get both examples building with the following commands: The aud-evk is not supported out of box so I made the following modifications to get the examples building: zephyr/boards/nxp/mimxrt685_evk/board.yml zephyr/boards/nxp/mimxrt685_evk/revision.cmake zephyr/boards/nxp/mimxrt685_evk/CMakeLists.txt The commands below were used to build the examples: Both examples seem to get stuck at address 0x0001c04a. What other changes do I need to make to get these examples running on this board? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
|
I had created PR to support aud board for cm33 core only few days ago. #107614 |
Beta Was this translation helpful? Give feedback.
-
|
@lucien-nxp Just following up, do you have any suggestions on how to modify the configurations above to get the NVS example running out of SRAM? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, Lucien, I am able to successfully run the NVS example now. |
Beta Was this translation helpful? Give feedback.
Apologies for the very late reply.
Good news — you can drop the run-from-SRAM workaround. We root-caused the hang and fixed it; NVS now runs from flash (XIP) normally.
Cause: the FlexSPI NOR driver reinstalls the MX25U51245G read with a 10 dummy-cycle 0xEC quad read during init, but the board's FCB had the flash set to a shorter read latency. The mismatch corrupted XIP fetches once the flash driver came up, so the CPU locked up before main() — which is why hello_world/blinky worked but NVS didn't.
Fix: the board FCB now matches the latency the driver expects (board-only change). Verified on the AUD-EVK: NVS and LittleFS both reach main(), read/write, and persist across reboots; hello_worl…