MIMXRT1170-EVK FlexSPI Serial NAND Boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIMXRT1170-EVK FlexSPI Serial NAND Boot

2,478 Views
m_oi
Contributor I

Hi,

I'm trying to boot from FlexSPI Serial NAND device on MIMXRT1170-EVK. (Replaced MX25UM51345GXDI00 Octal Flash with W25N02JW Serial SLC NAND Flash)

But it has not worked yet.

 

Q1) Is FCB (Firmware Configuration Block) need ?

Q2) Is FCB placed at offset 0 ?

Q3) How to generate FCB ? Should I use MCU Boot Utility or MfgTools or etc ?

Q4) Is there a sample project or clear explanation ?

 

Thanks,

Minoru Oi

Tags (1)
0 Kudos
20 Replies

2,289 Views
jay_heng
NXP Employee
NXP Employee
0 Kudos

2,460 Views
m_oi
Contributor I

Hi jeremyzhou,

 

How to generate boot image only ? (without connect to board)

Or, How to fix the following error when connecting to board.

> Executing: C:\Users\oi.minoru\Downloads\NXP-MCUBootUtility-master\tools\blhost2_3\win\blhost -t 50000 -u 0x15A2,0x0073 -j -- configure-memory 257 538976256
> toolStatus: 0
> commandOutput: {
> "command" : "configure-memory",
> "response" : [],
> "status" : {
> "description" : "4 (0x4) kStatus_InvalidArgument",
> "value" : 4
> }
> }

 

Thanks,

Minoru Oi

0 Kudos

2,449 Views
jeremyzhou
NXP Employee
NXP Employee

Hi @m_oi ,
Thanks for your reply.
1) How to generate boot image only? (without connect to board)
-- As I said before, it needs to connect the board when generating the whole bootable image.
2) About the error, I'd like to suggest you check the hardware connection firstly, further, can you illustrate the connection of the W25N02JW to the board?
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
------------------------------------------------------------------------------o

0 Kudos

2,445 Views
m_oi
Contributor I

Hi jeremyzhou,

 

> 2) About the error, I'd like to suggest you check the hardware connection firstly, further, can you illustrate the connection of the W25N02JW to the board?

 

I can write data to NAND through FlexSPI by application launched from SD card. So I think no problem in connection of the W25N02JW. I'll inquire to hardware member about connection.

Does the MCU Boot Utility as default support FlexSPI Serial NAND ? I don't create the bd file for NAND ?

 

Thanks,

Minoru Oi

0 Kudos

2,433 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) Does the MCU Boot Utility as default support Flexispy Serial NAND ? I don't create the bd file for NAND ?
-- Yes.

jeremyzhou_0-1660788409000.png


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

2,424 Views
m_oi
Contributor I

Hi jeremyzhou,

 

QE (Quad SPI enable) mode is enable from power on, is it OK for MCU Boot Utility ?

 

Thanks,

Minoru Oi

0 Kudos

2,412 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) QE (Quad SPI enable) mode is enable from power on, is it OK for MCU Boot Utility ?
-- Yes.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

2,408 Views
m_oi
Contributor I

Hi jeremyzhou,

 

I checked NAND device signal connection below and found no problem.

RT1176   W25N02JW

Flash_RST <=> /RESET

FlexSPI_A_CLK <=> CLK

FlexSPI_A_SS0 <=> /CS

FlexSPI_A_D2 <=> IO2

FlexSPI_A_D1 <=> IO1

FlexSPI_A_D0 <=> IO0

FlexSPI_A_D3 <=> IO3

(/WP and /HOLD are disabled in Quad SPI mode)

 

I tried again to connect to EVK from MCU Boot Utility, but error occurred again.

I attached log when connectiong to EVK. What's the problem ?

 

Thanks,

Minoru Oi

0 Kudos

2,367 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
I think you misunderstand my reply, in the RT1170, there's not only one pin that can work as the FlexSPI_A_CLOAK, and Flexispy _A_Dx pins are the same with it.
So I still don't know which exact pins are used to connect the Nand Flash, I think you'd better share the schematic.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
------------------------------------------------------------------------------

0 Kudos

2,364 Views
m_oi
Contributor I

Hi jeremyzhou,

 

We replaced onborard 1V8 Octal Flash to W25N02JW Serial NAND Flash.

I attached schematic. Do you have any opinions ?

 

Thanks,

Minoru Oi

0 Kudos

2,353 Views
jeremyzhou
NXP Employee
NXP Employee

Hi @m_oi ,
Thanks for your reply.
In addition of replace the onboard Octal Flash, did you ever handle the below resistors to enable the Serial Nand Flash as the boot-up device?

jeremyzhou_0-1661237485778.png

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 Kudos

2,351 Views
m_oi
Contributor I

Hi jeremyzhou,

 

Yes, and I checked electrically conductive.

Do you know anything about error from the logs I have previously attached?

Or is there any way to generate a boot file without connecting to the EVK board?

 

Thanks,

Minoru Oi

0 Kudos

2,342 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) Do you know anything about error from the logs I have previously attached?
--According to the error message, the issue is related to the arguments, and you can learn the meaning of the arguments by referring to the bd file, so you can give different settings a try.

jeremyzhou_0-1661321788863.png

2) Is there any way to generate a boot file without connecting to the EVK board?
-- As I said before, the answer is no.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

2,337 Views
m_oi
Contributor I

Hi jeremyzhou,

 

This is my bd settings. Is threre something wrong for W25N02JW ?

Or how do I setting bd file you attached ?

bdsetting.png

Thanks,

Minoru Oi

0 Kudos

2,372 Views
m_oi
Contributor I

Hi jeremyzhou,

 

The error command seems OCRAM M4 address. Is it right ? And Is the address right ?

I don't use M4 core.

 

Thanks,

Minoru Oi

0 Kudos

2,431 Views
m_oi
Contributor I

Hi jeremyzhou,

 

Sure, I know.

But error occurred when connect target board. Do I have to anything special to connect target board boot device is FlexSPI NAND ?

For example, modify script or modify setting files.

 

Thanks,

Minou Oi

0 Kudos

2,465 Views
m_oi
Contributor I

Hi jeremyzhou,

 

Can I generate FCB without connect to board ?

I tried to generate FCB without connect to board, but error occurred.

 

Thanks,

Minoru Oi

0 Kudos

2,466 Views
m_oi
Contributor I

Hi jeremyzhou,

 

I see that Serial NAND configuration block is included in FCB.

Serial NAND configuration block is also generated by MCU Boot Utility, right ?

 

Thanks,

Minoru Oi

0 Kudos

2,464 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1)Serial NAND configuration block is also generated by MCU Boot Utility, right ?
-- Yes.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------aa

0 Kudos

2,470 Views
jeremyzhou
NXP Employee
NXP Employee

Hi @m_oi ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Q1) Is FCB (Firmware Configuration Block) need ?

-- Yes.

Q2) Is FCB placed at offset 0 ?

-- The FCB is on the first page in the first good block.

Q3) How to generate FCB ? Should I use MCU Boot Utility or MfgTools or etc ?
-- Yes, please use the MCU Boot Utility tool.

Q4) Is there a sample project or clear explanation ?
-- Unfortunately, no.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos