mpc5744p Stack Monitoring

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mpc5744p Stack Monitoring

1,786 次查看
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,728 次查看
AdhamGad1
Contributor I

Hello Lukas 

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

ps:i am using Simulink 

BR

0 项奖励
回复

1,711 次查看
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,770 次查看
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 项奖励
回复