bare-metal diabdata example for TRK-MPC5604P evaluation board

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

bare-metal diabdata example for TRK-MPC5604P evaluation board

959 Views
steffenrose
Contributor III

I seach a small example, that inlclude the minimal hardware initialization.
I'm not able to rework the Metrowerks examples to diabdata environment.

Thank you very much.

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

860 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

we use mainly CodeWarrior in case of MPC56xx devices or S32 Design Studio and Green Hills MULTI IDE in case of MPC57xx devices. Unfortunately not the Diab...

Our examples can be found here:

https://community.nxp.com/docs/DOC-329623#MPC5604P 

Regards,

Lukas

0 Kudos
Reply

860 Views
steffenrose
Contributor III

Thank you very much. The "biggest" problem to use and adapt your examples from the code warrior to the diab compiler is the initialization source, like

__asm void usr_init()
{
    /* Add needed hardware initializations in this function */
    nofralloc

    mflr     r30                         /* Save off return address in NV reg */

...

I did not find an equivalent to 'nofralloc'.

Regards

Steffen

0 Kudos
Reply

860 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

nofralloc is asm directive - it says that this function will not create a stack frame:

pastedImage_1.png

Regards,

Lukas

0 Kudos
Reply