Hello, Community.
Previously, I ’ve asked questions in the following thread,
QSPI flash cannot be accessed if the MCIMX7SABRE board is set to other than QSPI Boot.
QSPI Flash cannot be accessed when booted with other than QSPI Boot
The QuadSPI configuration parameters have been written with the program image using the IAR flash loader.
These should be written at address 0x60000000-, but when booted by other than QSPI Boot, they are all 0 when dumped with IAR EW.
The address 0x60000400-, where the program image should be written, are 0 as well.
Do you know why?
Do I need any Quad SPI settings?
The following implementation has been implemented on the MCIMX7SABRE board.
------------------
QSPI signals are muxed with EPDC_D[7:0]
When using QSPI:
de-populate R388-R391, R396-R399
populate R392-R395, R299, R300
------------------
I'm using IAR's Flash loader.
Best regards,
Yuichi Takeda
Hi Yuichi
>I'm using IAR's Flash loader.
NXP does not support this tool sorry. Suggest to apply to its vendor IAR
for its issues. Also please note that Flash loader from latest IAR EWARM-CD-8402-22891
does not support i.MX7D, supported only i.MX7ULP EVK
https://www.iar.com/iar-embedded-workbench/#!?architecture=Arm
Also note that not all J-link software supports QSPI according to below link
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi, igor,
Thank you for your reply!
First, I asked IAR why it was not possible to access QSPI flash if it was booted using something other than QSPI boot.
As a result, I was suggested to ask NXP how to do it.
So I joined the community.
Do you know why I can't access QSPI flash when booting with something other than QSPI boot?
I guess I need to set something.
Best regards,
Yuichi Takeda
Hi Yuichi
Flash loader from latest IAR EWARM-CD-8402-22891
does not support i.MX7D, supported only i.MX7ULP EVK
https://www.iar.com/iar-embedded-workbench/#!?architecture=Arm
So what tool are you trying to use ?
Best regards
igor
Hi, igor,
Thank you for your reply!
The version I am using is EWARM-CD-8323-LMS2.
Certainly, the flash loader does not support i.MX7D7.
However, since it seems to be supported as a debugger, I am wondering if the QSPI flash can be erased or written with a boot other than QSPI boot.
Also, when U-Boot is started with the SD card attached to the MCIMX7SABRE board and the address 0x60000000- is dumped using the "md" command, they are all 0 as well.
Are there any settings required for this?
Best regards,
Yuichi Takeda
Hi Yuichi
for i.MX7D there is only support for uart, timer and gic, no support for qspi.
So debugger does not support qspi. In general for issues related to IAR tools
may be suggested to apply to IAR tech support:
Best regards
igor
Hi, igor,
Thank you for your reply!
I'm sorry for the lack of English...
I don't think I should ask IAR about this question.
There are two questions below.
1.
With QSPI boot, I can erase or write the QSPI flash without any problems. However, I can't do it other than QSPI boot.
I'm asking if there are i.MX7 register programming related to QSPI, not IAREW settings.
Is there anything?
2.
When U-Boot is started with the SD card attached to the MCIMX7SABRE board and the address 0x60000000- is dumped using the "md" command, they are all 0.
Do you know why?
At this time, IAREW is not used.
Best regards,
Yuichi Takeda
Hi Yuichi
suggest to check documentation included in FreeRTOS_BSP_1.0.1_iMX7D
how to program qspi (not use IAREW ) and using jtag check necessary registers
Windows Installer: i.MX 7Dual/Solo FreeRTOS BSP for Cortex-M4
Best regards
igor