Flash Is Damaged After Performing Flash Programming

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

Flash Is Damaged After Performing Flash Programming

1,030 Views
omerkaanbasakin
Contributor IV

Hello we are using IMXRT-1052 on custom board. We can program processor and IS25LP064A with PE Micro Universal Multilink and MCUXpresso IDE. When we test flash, we can program the simple hello world project. Then we use ram programming until the main program takes its final form. When we try to load the final form of main program into the flash, we get hardfault. We can load to a another custom board which that has the same feautres but not been programmed before. We thought  that flash programming also has write protection. Once programmed, it does not allow the next. But we could not find such  a feature. We started using flash like a disposable. Flash that we thought were damaged could not be programmed again.

Edit: After we programmed the another custom board, flash not booting whole program. Serial port work with no problem in ram but when  we boot from flash , serial port not responding(rs 422).

0 Kudos
5 Replies

1,023 Views
Anonymous
Deactivated User

hardfault error means the program try to execute some peripheral which is not configured yet. In the initial hello world program it don't even have any peripheral access.that is its running properly. Please ensure the peripheral configuration and interrupt operation.

0 Kudos

1,020 Views
omerkaanbasakin
Contributor IV

We get instruction bus hardfault error. Also, if we link application to RAM it runs without any problem. Which suggests that the problem is not related to  peripheral configuration. It happens when we try to use the flash. The board does not boot from flash.

0 Kudos

994 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
According to your reply, we can get the conclusion that the image can't boot from the external flash, this issue can be related to either hardware circuit or software configuration.
So I'd like to suggest you run the flexspi_nor_polling_transfer which resides in the SDK library to operate the external QSPI flash, this testing can help us to figure the reason for boot failure and the demo should be run in the internal RAM.
Please give a try.

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

985 Views
omerkaanbasakin
Contributor IV

Hi @jeremyzhou ,

Thanksfor your reply. We discussed QSPI flash programming at another question and you also suggest us to run flexspi_nor_polling transfer. After ı wrote this topic tried to write any code to the flash but get same error . Then ı remebbered your suggestion and run flexspi_nor_polling transfer from ram. After this example, get Erase data succesfull and program succesfull mesagges. After that ı can write code to QSPI flash but not sure why ? Why ı can acces to flash after  the flexspi_nor_polling transfer example?

0 Kudos

978 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your reply.
In general, running the flexspi_nor_polling transfer can help us check the FlexSPI hardware connection and enable the Quad feature of the QSPI flash, otherwise, RT MCU can't boot from the QSPI flash.
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