Replies: 6 comments 6 replies
-
Hi @tyalie , Have you tried executing from the internal ITCM? This may help confirm the issue you have is memory related. This discussion #36800 has tips for building the app to execute from SRAM, and move data to DTCM. You can use the debugger to load the executable to ITCM, and run it from there. And can you clarify what you mean by:
Does this mean you are building a Zephyr app using board Since single-stepping helps the app execute farther, and with the location of the crashes being random, these also point to memory issues. A single-step will use a breakpoint to halt after that line, so the core may only fetch and execute a few instructions between halts. Running the app can stress that external memory interface more, and increase the chances of a problem causing an issue. You say you had to make some changes for the SDK-based app to run on this board. What changes were needed? And what did you do in Zephyr's board support to make the same changes? And yes, when the debugger reports reading 0xdeadbeef, it has lost connection with the MCU. This means it cannot really read that memory location, and the debugger uses that default deadbeef to show there is an issue. Best regards |
Beta Was this translation helpful? Give feedback.
-
Okay so having a bit of distance to the project I got some new ideas that I tried out and I have been able to get it more reliable and more of a working state.
The chip itself doesn't have any internal memory and the NXP nvk and the TQ board both chip with a single nor flash connected to flexspi 1. I've also looked into the binaries to verify that the FCFB and IVT is correct and can confirm that zephyr output is a valid bootable binary.
Yeah I tried that but it seems to have caused more issues than I anticipated. The I have also stopped using the
Thank you for confirming this, I only assumed it so far as I wasn't able to find a lot of documentation here. |
Beta Was this translation helpful? Give feedback.
-
After all those changes I now land reliably in the Zephyr fault handler. Reason of entry is 0 and it seems to be a Lines 109 to 145 in 24984de The stack gets corrupted and the assembly instruction in address 0x300045b2 seems to set the PC to a non code location (< 0x10000000), resulting in the fault handler to be called.
I'll continue looking into it maybe this is something simple. |
Beta Was this translation helpful? Give feedback.
-
Okay. That has taken me a few more hours but Zephyr runs now. The only issue I have remaining is that I don't know how to change the This configuration seems to be hard pinned for the soc zephyr/soc/arm/nxp_imx/rt/Kconfig.soc Line 323 in 9a3d762 Is there any way of changing soc configs in a board config? |
Beta Was this translation helpful? Give feedback.
-
Hi @tyalie , You can still use your fork for now to remove these from the SOC files. But I don't think you need to submit a PR, since we will be improving the configuration. Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi. Are there any updates on this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've an issue getting a board that uses the i.MX RT1170 chipset to boot with Zephyr. I've no problem doing so with an mcux based example project, but when trying it with Zephyr I get very random and faulty behaviour from the chip. The board is a TQ TQMa117xL, which is on the MBa117xL dev board.
I've already implemented the adaptations that need to be made for the board to the best of my knowledge (mostly what I learned from getting the chip to run with the mcux SDK in mcuXpresso). But when trying it out (even with the mimxrt1170_evk_cm7 board) Zephyr seems to crash at very weird places.
$pc
to the__start
address (reset handler) and continuing the program, the chip will land in the ROM bootloader memory region quite frequently (if it hasn't crashed before)I'm assuming here that the chipset has crashed when JLink will only give me 0xdeadbeee as values for the registers.
My work so far is documented here: https://github.com/tyalie/tq-zephyr-board.
I've already written @danieldegrasse privately and he linked me here.
Beta Was this translation helpful? Give feedback.
All reactions