mpc5744p Stack Monitoring

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

mpc5744p Stack Monitoring

992 Views
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 Kudos
3 Replies

934 Views
AdhamGad1
Contributor I

Hello Lukas 

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

ps:i am using Simulink 

BR

0 Kudos

917 Views
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 Kudos

976 Views
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 Kudos