-
Hello, I'm trying to add a new board to the board folder of the zephyr project. 1 Goal:I want to boot from the flash via the FLEXSPI1 of my microcontroller (IMXRT1176...A - CM7) and using tcm instead of SDRAM or any external RAM. I'm not using the evk from NXP, but another board. 1.1 Toolchain and build:Using jlink v. 7.66 with an own device proper for the pin muxing change. 2 Problem "solving"So far I tried this: 2.1 changing the pinctrl.dtsiI changed the pinctrl.dtsi, because the flexspi in use has another pin muxing. I couldn't find something about changing the pinmuxing of the devicetree... This change was based on hope.
2.2. changed the devicetree
2.3 Changed the Cmake file
2.4 Changed Kconfig:defconfig
2.5 Changed Kconfig
2.6 added xipI added our own flexspi_nor_config files which are proved to be working (it worked on bare matel) 3 Debugging:While Debugging: Question: Does someone have a clue of what I'm doing wrong? I'm desperately searching for help! Thx for every clue! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Continuing: I also tried: still not working |
Beta Was this translation helpful? Give feedback.
-
Hi @illy777 , Something else I see is your choice of DQS pin on When bringing up a new board, I recommend first trying to execute from ITCM. Booting from external flash adds more complications. So it is good to confirm you can start an app on the new board from ITCM, and resolve any other hardware or config issues. Then move the code to flash, and get the MCU to boot from that flash. You can link the code in ITCM with the
Also, you mention your board has no SDRAM, and you will use the DTCM for your data memory. In that case, you can remove the Device Configuration Data (DCD) from your application image. Zephyr support for this EVK follows NXP's MCUXpresso SDK for the EVK, which configures the DCD for the SDRAM. That configures the boot ROM to initialize the SEMC interface to SDRAM, the SEMC pins and clocks, to enable the SDRAM before the app executes. You should remove this DCD so it does not cause conflicts with your board. That means Let us know what you find. |
Beta Was this translation helpful? Give feedback.
-
Hello again, after trying and testing I tried to rebuild the image so that is linked to the itcm/dtcm only. Now I found out this: Debugging with the SWD interface doesn't work even on the EVK but uploading the image with the LinkServer works. What am I doing wrong? This is the configuration I'm using:
Best regards, |
Beta Was this translation helpful? Give feedback.
Hi @DerekSnell,
yes I'm debugging using SWD via jlink basic using th VS-Code IDE or GDB.
However I found out, that in order to bring the target to run, I needed to reset, halt the target, then load the app again into the tcm, and then start execution. This worked then.
Now I'm trying to boot the app into the Flash chip via flexspi, since I found out, that the XIP file I had was the wrong one.. But with the correct one it still didn't work.
I'm working on this still, will update it here.
Thank you @DerekSnell for your help!
PS: sry for delayed answer, I wasn't online for these days.