LPC1754 AHB SRAM Usage Issue

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

LPC1754 AHB SRAM Usage Issue

ソリューションへジャンプ
1,266件の閲覧回数
lonniewalker
Contributor I

I am wanting to utilize the AHB SRAM for general purpose scratch pad memory and have run into an issue with some locations.   I am using the LPC1754 which its user manual indicates a range of 0x2007c000 to 0x20084000  is available.

When I read and write that memory range (with data 0x11111111) as a test, the test is okay until reaching location 0x2007CF70 where I receive a fault: Suspended : Signal : "SIGSTOP:Stopped (signal)" message with debugging.   It appears a memory dump shows the other  locations up to 0x2007CFFF are cleared to zeros.       Locations 0x2007D000 to 0x20083FFF appear to function as expected.

So, why would this block (0x2007cf70 to 0x2007CFFF cause a Signal??

I see nothing in either the User Manual or Data Sheet that there is a reserved range.   I am suspecting it has something to do with the debugger itself  is using this space somehow?   I am using LPC-Link2 to debug.

Thanks for any input you could lend to better understand what is going on-

~Lonnie.

memdump.pngI

ラベル(2)
0 件の賞賛
返信
1 解決策
1,042件の閲覧回数
lonniewalker
Contributor I

Just posted this question and then soon figured out what is happening...  I had inadvertently had placed top of the stack to location 0x20080000. This is placing the stack right in the middle of the AHB memory I am trying to utilize... I moved the top to the correct location for the LPC1754 to 0x20084000 and all is good now.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,043件の閲覧回数
lonniewalker
Contributor I

Just posted this question and then soon figured out what is happening...  I had inadvertently had placed top of the stack to location 0x20080000. This is placing the stack right in the middle of the AHB memory I am trying to utilize... I moved the top to the correct location for the LPC1754 to 0x20084000 and all is good now.

0 件の賞賛
返信
1,042件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi,

Thank you for your input!!

Regards

Sol

0 件の賞賛
返信