Using Mfg_tool to flash at QuadSPI1 interface

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Using Mfg_tool to flash at QuadSPI1 interface

跳至解决方案
10,004 次查看
BlueJay
Contributor III

Hello,

I want to use the Mfg_tool (Rel. 1.0.1) to download an SW binary with a simply blinking LED into 4SPI flash device which is connected at 4SPI1 interface of Vybrid VF65xx but sofar all tryings are failed.

What should be set exactly in ucl2.xml to be able to do it ?

This was the last settings I tried with, but without any success:

<LIST name="vybrid-qspi-led" desc="Boot Vybrid FW">
<CMD state="BootStrap" type="boot" body="BootStrap" file="u-boot.imx">Loading U-boot</CMD>
<CMD state="BootStrap" type="jump"> Jumping to OS image. </CMD>
<CMD state="Updater" type="push" body="qspiinit dev=0">Initializing QSPI</CMD>
<CMD state="Updater" type="push" body="pipeqspi addr=0x50000000" file="files/FNLD_A.bin">Sending and writing QSPI Led Sample</CMD>
<CMD state="Updater" type="push" body="$ !">Done</CMD>

    </LIST>

I would be very appreciated for any hints or answers, thank you in advance.

标签 (1)
1 解答
8,514 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Never mind, I think I just got it working. I used a u-boot binary that is about 200K large and after checking it it was written, it seems it was.

Please use the attached file. Sorry for the delay but it was not an easy task to debug and find out the problem. I hope this is the good one. It worked on my side.

Best Regards,

Alejandro

在原帖中查看解决方案

42 回复数
3,533 次查看
BlueJay
Contributor III

Hi Alejandro,

only two words: thumbs up ! :smileyhappy:

Just tested with our HW, the new u-boot works fine !

Thank you very much for your support.

Best regards,

Tai-Phan

0 项奖励
回复
3,533 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

That is great news! Thanks for your patience.

Best Regards,

Alejandro

0 项奖励
回复
3,533 次查看
BlueJay
Contributor III

Hi Alejandro,

I have got one additional question:

Does the binary file lastly generated by you also support setting the Quad Enable Bit of flash device ?

Best regards,

Tai-Phan

0 项奖励
回复
3,534 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Is the same behavior for both qspi modules?

0 项奖励
回复
3,534 次查看
BlueJay
Contributor III

Hi Alejandro,

Do you mean 4SPI_0 and 4SPI_1 ?!

On our HW there is only 4SPI Interface 1 in usage.

Best regards,

Tai-Phan

0 项奖励
回复
3,534 次查看
alejandrolozan1
NXP Employee
NXP Employee

Yes. I meant that. I will test it.

0 项奖励
回复
3,534 次查看
BlueJay
Contributor III

Just tested for 4SPI_0 with Tower: same behaviour !

Binary with 9k OK, binary with 233k FAILED.

0 项奖励
回复
3,534 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

alejandrolozano do you have an update?

0 项奖励
回复
3,534 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I just got a vybrid auto evb board. Let me try to reproduce the problem today.

/Alejandro

0 项奖励
回复
3,534 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

alejandrolozanod any progress?

0 项奖励
回复
3,534 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

alejandrolozano please continue with the follow up.

0 项奖励
回复
3,534 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

reminder

Alejandro Lozano Lozano please continue with the follow up.

0 项奖励
回复
3,536 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

alejandrolozano please  help to continue with the follow up?

0 项奖励
回复
3,536 次查看
alejandrolozan1
NXP Employee
NXP Employee

Sure!, but I will need more time.

/Alejandro

3,537 次查看
BlueJay
Contributor III

Can you give me time estimation when I can expect with an update of Mfg_tool since I need to communicate about this issue internally ?

0 项奖励
回复
3,537 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi Tai,

I have delved into this and this version of mfgtool supports only the TWR board which features a QSPI only in the QSPI0 module only.

It seems that just like you said a few changes need to be performed in the U-boot source code. On my side the only way to test it is with the auto board.

If you can, please try to first re-map the UART pins that conflict with the QSPI1 module. I will do that too and I will let you know how it goes.

/Alejandro

0 项奖励
回复
3,536 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

According to the ucl2.xml file the uboot image loaded by mfgtool performs this commands pipeqspi.

I wonder if you can try to execute this command booting uboot from SD. I mean try to flash the qspi using uboot and that command.

Please let me know the result.

Best Regards,

Alejandro

0 项奖励
回复
3,536 次查看
BlueJay
Contributor III

Hi Alejandro,

perhaps I misunderstand you, or there is a missunderstanding.

I never tried to boot uboot from SD.

As I described at my initial posting, I want to use the Mfg_tool (Rel. 1.0.1) to download a SW binary file with a simply blinking LED into 4SPI flash device which is connected at 4SPI1 interface of Vybrid VF65xx.

With following settings, Mfg_tool doesn´t hang anymore, performed with status "done" and green bar,

HW:

BOOT_MODE[1:0] = 01 (serial downloader)

ucl2.xml:

<LIST name="vybrid-qspi-led" desc="Boot Vybrid FW">
   <CMD state="BootStrap" type="boot" body="BootStrap" file="u-boot.vybrid">Loading U-boot</CMD>
   <CMD state="BootStrap" type="jump"> Jumping to OS image. </CMD>
   <CMD state="Updater" type="push" body="qspiinit dev=1">Initializing QSPI</CMD>
   <CMD state="Updater" type="push" body="pipeqspi addr=0x50000000" file="files/FNLD_A.bin">Sending and writing QSPI Led Sample</CMD>
   <CMD state="Updater" type="push" body="$ !">Done</CMD>

    </LIST>

Best Regards,

Tai-Phan

0 项奖励
回复
3,536 次查看
BlueJay
Contributor III

MfgTool.log with the last 12 log.-entries:

...

ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - VOLUME_ARRIVAL_EVT-Disk(E), Hub:3-Port:8

ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - VOLUME_ARRIVAL_EVT, Notify

ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify, Volume Arrive/Remove or Device Arrive/Remove

ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify, m_p_usb_port is not NULL, so only refresh

ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify, Volume/Device Arrive

ModuleID[2] LevelID[1]: CmdOpreation[0]--set m_hDeviceArriveEvent.

ModuleID[2] LevelID[10]: CmdOpreation[0]--WaitforEvents device arrive1

ModuleID[2] LevelID[10]: CmdOperation[0] device chagned and reset to state 1

ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is qspiinit dev=1

ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is ubootcmd qspierase 0x50000000

ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is pipeqspi addr=0x50000000

ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ !

MfgTool.jpg

0 项奖励
回复
3,536 次查看
BlueJay
Contributor III

I want to ask gently if there is any new acknowledgement about this issue ?

0 项奖励
回复
3,536 次查看
irfanshahid
Contributor I

Hi,

I am also getting the same issue while trying to flash Vybrid's QuadSPI.

I am using the "vybrid-qspi-led" profile for loading the binary image.

The MFG tool successfully executes the "BootStrap" commands but hangs while it tries to execute the first "Updater" command:

    <CMD state="Updater" type="push" body="qspiinit dev=0">Initializing QSPI</CMD>

Attached is the log fie generated by the tool.

0 项奖励
回复