Hi NXP Team,
I have problems with the NOR Flash to SRAM process when using the QSPI boot process.
The same application works finds when it is booted from SD Card or by the S32 Debug Probe. When the same application image is flashed by serial, starting the QSPI to Boot from NOR flash to SRAM the code is partially executed and stops.
I got from the manufacturer of the SoM the QSPI config to assure that the image application is loaded respecting the 500ms, (the code is 2.6 Mb).
The same code that is able to start when SD Card or S32 Debug Probe is used, presents that behaviour start and stop. The same procedure using an UART example using the NOR flash to SRAM booting works without problem.
Are they conditions to assure that the image application is able to start and execute at the same level as from Sd Card or S32 Debug?
I see the same problems in the forum but I don't see a definitive answer for most of them.
The QSPI bin I programmed using the reference from the SoM provider, and it is the same from one of the documents in the forum (S32G_QSPINOR_定制_20211125_V3).
Thank you in advance for you support.
Hugo
Hi @ARM_Kami @alejandro_e ,
Has the issue been solved?
We had the same Nor Flash used on our board and the S32G3 has issue booting from nor flash.
Could you share the solution is possible?
Thanks in advance.
Regards,
Jalsey
Hello @JalseyXie,
We had a long discussion and at the end I understood that the problem was not exactly at boot time, it was related to the SPI Write function. I am not aware if @ARM_Kami was able to solve the problem.
You can create a new post in this community and one of my colleagues or myself can help you.
Thanks.
Hi @alejandro_e ,
I've created a post regarding this issue already:
Re: S32G399A Fail to Boot from NOR Flash - NXP Community
Regards,
Jalsey
Hello @JalseyXie,
I see you are already being helped by one of my colleagues.
Thanks for letting me know.
Best regards
Hello @ARM_Kami,
From the information you sent I am assuming the following:
Please help me confirming if my assumptions are correct.
Also please help me with the following information:
Thanks in advance
Hi Alejandro,
Answereing your questions:
Please help me confirming if my assumptions are correct.
Also please help me with the following information:
Hello @ARM_Kami,
Thanks a lot for the information. I was checking the guide you referenced and I see the suggested changes in some registers you have modified in the QSPI parameters you just sent. However, there are some registers I did not see mentioned in the guide but were modified:
I notices that this register was mentioned in a Linux related patch, for BSP30, my understanding is that it does not need to be changed for the QSPI parameters used for Boot ROM.
For the following registers, can you provide more information as why you changed them? since I cannot access the memory documentation.
Also, have you checked the QSPI lines in the board with an oscilloscope? if so, can you share the signals you see in the QSPI lines or if you don't see anything at all?
Thanks in advance for the information.
Hi Alejandro,
I created the file for the QSPI config based on info from the SoM provider, they use a similar config to boot Yocto based system, (by similar I mean they don't use the nxp IDE to program their system).
When I saw the resulting file, this was the same as the one in the reference I quote.
the note about "However, there are some registers I did not see mentioned in the guide but were modified":
In the NXP ide the setting as you saw them are:
As I mentioned it ia custom board, using a SoM, I don't have the option to instrument it to get the requested signals.
About the " For the following registers, can you provide more information as why you changed them? since I cannot access the memory documentation. " => The changes I did were based on the info from the SoM provider.
And they are the same as in the quoted ref.:
The QSPI config. are confirmed to work in a linux system.
The 500 ms timeout doesn't seem to be a problem for the code size loaded in SRAM (2.6Mb).
Do we have a way to confirm that the code is completed loaded? a flag to confirm?
Do we have further contrains about the use of NOR Flash loading to SRAM when using Ethernet, SPI, FreeRTOS?
If only the QSPI config. is the key for being able to boot from NOR Flash please provide further support.
Regards,
Hello @ARM_Kami,
I think there might be a confusion, I was asking why the change in the registers: MDIS, PPWB, TPADA1 and TPADA2, since I don't see those registers mentioned in the guide (1399906). I checked your binary in S32DS and saw the changes. To reduce the problem, please share the following information:
Let me know if you find this information useful and please share the results of the tests in case you are able to perform them.
Thanks
Hello @ARM_Kami,
You mentioned: "The result is the that the code seems to be (partially) loaded, executes part of it and then stops at the beginning during the system initialization"
Can you share the steps you follow the flash memory? with screenshots please. I want to confirm the flashing process is working correctly before checking the boot.
Can you elaborate more about this "executes part of it and then stops at the beginning during the system initialization", how did you came to that conclusion? what indicators of the chip/board being ON did you see?
Were you able to perform one of the test I proposed to check if the chip is actually booting?
You mentioned that your are using parallel RCON, how are you writing the 32 bit word in the EEPROM memory?
You mention that your board is based miriac-sbc-s32g274a, can you please contact them in parallel? since they may already have the information on how to fix this issue.
Thanks.
Hi @alejandro_e and @ARM_Kami
Has the issue been solved?
We had the same Nor Flash used on our board and the S32G3 has issue booting from nor flash.
Could you share the solution is possible?
Thanks in advance.
Regards,
Jalsey
Hi,
The issue has not been solved, I didn't continue with it due new assigments.
I identified an issue with the spi communication with one of the components causing a hardfault. Again issue not observed when booting from SD Card or by directly flash using the S32 debug probe for the same application code.
The spi uses DMA and it seems a clock configuration, there is no spi signals when the code boots from NOR flash.
Regards,
Hugo