Hi all,
I am working on an attempt to run an application on M7 in the S32G399A board, using Uboot.
I was able to load the binary into the SRAM from NOR memory. But after starting M7 from the SRAM address, The PC is jumping to an address in the QSPI RX buffer region, and the program is running with lockedup warning.
Also, the debugger is showing the message, LVFCCU_2 = 0x410E0000; + 2F2C2 = 4110 F2C2
What could be reason for this, how to debug the same?
Thankyou.
Hi @Daniel-Aguirre ,
Iam using NXPS32G399A board and BSP32.
I've tried flashing the IPCF example using Uboot and it is running fine. But using same Uboot , iam not able to run an M7 application running classic AUTOSAR.
Ive attached snapshot of the debugger window.
Thankyou.
Hi,
Thanks for your feedback. Are you using any S32G standard examples? Have you tried with a blink example?
What message are you getting on your uboot terminal?
The IPCF examples don't use the same linker as the standard S32G examples, hence the application is loaded differently depending on the linker file. Have you tried using the IPCF linker on your application?
There is a community thread that may help on this topic:
Conflict: Unable to start M7 properly from U-boot - NXP Community
Please, let us know.
Hi @Daniel-Aguirre ,
In Uboot commandline, iam using the following commands.
sf probe 6:0
sf read 0x80000000 0x00AC0000 0x900000
dcache off
mw.q 0x34000000 0x0 0x900000
cp.b 0x80000000 0x34000000 0x900000
startm7 0x34100204
and in the console, it is showing the message "starting cm7_0 core at SRAM address 0x34100204"
But ,upon attaching M7 from the debugger, application is running with lockedup warning. Also PC is jumping to some other address (0x4110F2C2) , which is not from the SRAM region.
Thanks for sharing this thread, i will go through these.
Hi,
Thanks for your feedback.
The first step we can recommend is using the IPCF linker and commands, since they should be usable as they are shown and, at this moment, it is the only available documentation on M7 booting from uboot. Once you are able to boot both M7 and A53, you should be able to start modifying your application.
Please, let us know.
Hi,
Which board are you using? Is it a custom board? Which BSP version are you using?
For loading applications to the M7 through uboot, the only example available is the one related to IPCF single/multi-instance. Have you looked into it?
As for the message, can you share a capture of it? We are not seeing information of regards of LVFCCU registers, we may be misunderstanding it.
Please, let us know.