LPC5528 SRAM3 hardfault

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

LPC5528 SRAM3 hardfault

Jump to solution
2,087 Views
alex__
Contributor II

I am trying to write some data for SRAM 3 region, which locates at 0x2003 0000 accroding to User manual.

But this results in hardFault. Any other regions of SRAM work properly.

Here is example of my code: 

 
 
 
 

Аннотация 2020-11-19 135616.jpg

Stack, data and heap placed in SRAM 0, so, region 3 should be free.

Аннотация 2020-11-19 135907.jpg

 

 
 
Tags (2)
0 Kudos
Reply
1 Solution
2,033 Views
converse
Senior Contributor V

According to the data sheet, LPC55S28 does not have SRAM3 (which is probably why it was missing in the original project setup).

 

LPC55S28 is a device with total ram of 256k, and such devices do not have SRAM3. See attached screenshots from the data sheet and user manual.

Screenshot 2020-11-25 at 14.59.39.png

Screenshot 2020-11-25 at 15.00.27.png

  

View solution in original post

0 Kudos
Reply
8 Replies
2,070 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Alex,

Have you define the SRAM3 space in memory detail:

2020-11-20_11-15-10.jpg

 

Regards,

Alice

0 Kudos
Reply
2,066 Views
alex__
Contributor II

At default configuration there is no SRAM3 (RAM from 0x2000 0000 to 0x2003 0000 is SRAM 0,1,2 in user manual).

alex___0-1605865205585.png

I have added SRAM3 by increasing size:

Аннотация 2020-11-20 130003.jpg

But nothing changes.

0 Kudos
Reply
2,054 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Alex,

Please share your whole project, I will help to check it on my side, thanks.

 

Regards,

Alice

0 Kudos
Reply
2,038 Views
alex__
Contributor II

Hello Alice, here it is.

Code with SRAM3, where MCU is hardfaulting, located at the beginning of the main().

0 Kudos
Reply
2,026 Views
alex__
Contributor II

Alice, I think that this issue is resolved and you don't need to check my project.

Thank you.

0 Kudos
Reply
2,011 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

OK, thanks!

0 Kudos
Reply
2,034 Views
converse
Senior Contributor V

According to the data sheet, LPC55S28 does not have SRAM3 (which is probably why it was missing in the original project setup).

 

LPC55S28 is a device with total ram of 256k, and such devices do not have SRAM3. See attached screenshots from the data sheet and user manual.

Screenshot 2020-11-25 at 14.59.39.png

Screenshot 2020-11-25 at 15.00.27.png

  

0 Kudos
Reply
2,028 Views
alex__
Contributor II

Yeah, I think you are right. I just thought that usb-ram and ram-x is not included into 256k size.

 

Thank you.

0 Kudos
Reply