RT1170: NOR Flash Error While XIP

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

RT1170: NOR Flash Error While XIP

1,191件の閲覧回数
Deer
Contributor I

As i.MXRT117x has no onchip flash can be used by programmer,

we need to store program on an external flash.

I extend a Serial NOR Flash ( MX25UW6445G ) via FlexSPI,

to store and execute the program ( XIP ).

 

But if some error happened on FlexSPI,

It was hard to record or locate the error,

because the vector-table and **Fault Handlers are all on the NOR Flash.

 

To solve this problem,

I tried to link the vector-table and **Fault_Handlers into the OCRAM,

And set bit0 ( SWRESET ) of the reg ( FLEXSPI1 MCR0 ),

to reset the FlexSPI1.

 

But it still did not enter any exception handling function

(HardFault_Handler / BusFault_Handler / NMI_Handler / MemManage_Handler / UsageFault_Handler).

 

I'm sure that vector-table and **Fault_Handlers had been linked to OCRAM by reading map file,

and setted SCB->VTOR to right address in OCRAM.

 

So does anybody know why any exception handling function not called?

タグ(1)
0 件の賞賛
返信
1 返信

1,177件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) So does anybody know why any exception handling function is not called?
-- According to your statement, the rode is running in the external flash that connects the FlexSPI1, and the code will set the set bit0 ( SWRESET ) of the reg ( FLEXSPI1 MCR0 ) to reset, is my understanding right? If yes, it's impossible to enter any exception handling function, even if relocate the vector map into the RAM.
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 件の賞賛
返信