How to debug MIMXRT1051 with W25Q64JV 8MB flash over QSPI?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to debug MIMXRT1051 with W25Q64JV 8MB flash over QSPI?

714件の閲覧回数
brufecon
Contributor II

Hi everybody.

I've tried countless ways to make my imxrt1051 with a W25Q64JV 64mbit flash work in debug, but I couldn't. The hardware design is custom, but the physical bindings are identical to the bindings in kit B. I'm using Jlink EDU Mini. I changed the JlinkDevices.xml for QSPI flash as below:

brufecon_3-1664991444399.png

My last code generation flow was as follows:
1) I generated a blank project in MCUXpresso. I followed the default settings.

brufecon_0-1664990577360.png

2) Only little mods:

brufecon_1-1664990886193.png

3) The generated project works perfectly (the variable i increments - lol).

brufecon_2-1664991277921.png

After this point, I followed it like this:
4) 

Declared memory size and preprocessor symbols (the other settings and defines were generated by MCUXpresso...):

brufecon_6-1664992941149.png

5) I created a XIP source folder and placed there 6 flash related files:

brufecon_8-1664993281951.png

The flexspi_nor_config_t structure is:

brufecon_9-1664993428864.png

I tried others, too. 

6) And finally, i added the flash:

brufecon_7-1664993134548.png

Build ok.

brufecon_10-1664993552033.png

But don't work... 

brufecon_11-1664993812398.png

Sometimes the tab above shows, sometimes no. Disassembly ever blank.
I attached the log.

I made change in flexspi_nor_config_t structure, like this:

brufecon_15-1664995277287.png

And the result is almost the same:

brufecon_14-1664995241859.png

The boot mode is [1:0] = 0b10 and the boot cfg are cfg1[7:0] = 0b0000 0000 and cfg2[3:0] = 0b0111. 

What is wrong?
Any help is always welcome.
Thanks for all in advance.

ラベル(1)
タグ(4)
0 件の賞賛
1 返信

703件の閲覧回数
jay_heng
NXP Employee
NXP Employee

From Log info , the IDE flashloader worked well, but it failed to get initial PC from flash.

I believe your flexspi_nor_config_t structure is not applicable to W25Q64JV, please double check below setting:

1. Check whether QE is enabled

2. Check whether dummy cycle value of READ seq in LUT is matched with Flash.

 

Anyway you can try MCUBootUtility tool to flash image, Tool will generate matched flexspi_nor_config_t structure automatically for your reference.

0 件の賞賛