cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access external storage 0x90000000 but download successful.

AMOMO
Associate

AMOMO_0-1735395578022.png

The application can be downloaded to external Flash at address 0x90000000. However, during debug startup, address 0x90000000 cannot be accessed, even though there are no errors during XSPI initialization.

AMOMO_1-1735395740624.png

AMOMO_2-1735395780524.png

Hardware Error:

  • Fault PC (Program Counter): 0x2000fec8
  • Fault LR (Link Register): 0x38636566
  • Bus Fault Address: 0x90000000

Hard Fault Error The flash chip is: MX25UM25645G Set as follows AMOMO_0-1735396099632.pngAMOMO_1-1735396107943.pngAMOMO_2-1735396113323.pngAMOMO_3-1735396128935.pngAMOMO_4-1735396135509.pngAMOMO_5-1735396147134.pngAMOMO_6-1735396154570.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

LR looks to be ASCII junk, perhaps popped off the stack.

You'll need to look at the generated CODE, and debug it

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3

LR looks to be ASCII junk, perhaps popped off the stack.

You'll need to look at the generated CODE, and debug it

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

AMOMO_2-1735482126758.png

AMOMO_3-1735482137621.png

After adjustments, it seems that the internal flash and external flash structures are similar, but I still cannot access the address 0x90000000. Could you provide tutorials or documentation on how boot accesses flash content? Thank you very much.
 

 

 

 

AMOMO_4-1735482678445.pngAMOMO_5-1735482727593.png

Thank you for your advice. Currently, after enabling the Flash module via the IOC configuration options, I have successfully accessed the address 0x90000000.