mpc5744p Stack Monitoring

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

mpc5744p Stack Monitoring

1,780件の閲覧回数
AdhamGad1
Contributor I

Hello,

I am doing a project with MPC 5744P.I need to monitor the stack overflow in it.In data sheet DBCR4 Shall be 1000 but i cant find the peripheral 

0 件の賞賛
返信
3 返答(返信)

1,722件の閲覧回数
AdhamGad1
Contributor I

Hello Lukas 

How can i reach the DBCR4,DBCR2,DBCR0 assembly ?

ps:i am using Simulink 

BR

0 件の賞賛
返信

1,705件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

core registers can be read/write using asm instructions mfspr/mtspr.

Description of instructions can be found in these documents:

https://www.nxp.com/webapp/Download?colCode=EREF_RM&location=null

https://www.nxp.com/docs/en/reference-manual/VLEPEM.pdf

How to read it in simulink - please ask here:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/bd-p/mbdt

Thanks,

Lukas

0 件の賞賛
返信

1,764件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

DBCR4 is a core register, so take a look at the core reference manual:

https://www.nxp.com/webapp/Download?colCode=E200Z4RM&location=null

Core registers are not memory mapped, it’s necessary to use asm instructions.

Take a look at this thread:

https://community.nxp.com/t5/MPC5xxx/MPC5744P-how-to-use-the-debug-registers-to-realize-the-quot/m-p...

Regards,

Lukas

0 件の賞賛
返信