LPC5528 SRAM3 hardfault

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

LPC5528 SRAM3 hardfault

ソリューションへジャンプ
3,062件の閲覧回数
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

 

 
 
タグ(2)
0 件の賞賛
返信
1 解決策
3,008件の閲覧回数
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 件の賞賛
返信
8 返答(返信)
3,045件の閲覧回数
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 件の賞賛
返信
3,041件の閲覧回数
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 件の賞賛
返信
3,029件の閲覧回数
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 件の賞賛
返信
3,013件の閲覧回数
alex__
Contributor II

Hello Alice, here it is.

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

0 件の賞賛
返信
3,001件の閲覧回数
alex__
Contributor II

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

Thank you.

0 件の賞賛
返信
2,986件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

OK, thanks!

0 件の賞賛
返信
3,009件の閲覧回数
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 件の賞賛
返信
3,003件の閲覧回数
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 件の賞賛
返信