MPC5744- Program is not running after changing storage type to "volatile" or "exportedGlobal"

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

MPC5744- Program is not running after changing storage type to "volatile" or "exportedGlobal"

1,441 Views
Tramorn
Contributor II

Hello,

I would like to monitor the variable via the Freemaster,  For that reason I believe I need to change the variable type to "exportedGlobal" or "Volatile" to see the variable exact name in Freemaster which I found this in another post at here

We have simulink model and code which every data in it have storage class "Auto" by default, When I build the code and run it it's working fine in the evaluation board

The issue is when I do change to storage type to "Volatile" or "exportedGlobal" in Simulink environment and build the code, Board is not working anymore.

Is there any other option should I check when I changing storage type?

Or Is there any otherway to see the variables in the Freemaster

Thanks for the help

0 Kudos
Reply
1 Reply

1,414 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @Tramorn 

Usually, Simulink generates some signals as members for some global structures, which makes the process of identifying that variable in FreeMaster complicated sometimes. For datastore memory, we found that changing the storage type as exportedGlobal or volatile (take care with this qualifier and use it only for variables whose value is changing inside interrupts) will declare the variables global, having the same name as the one typed in data store memory, making variable easier to be found in FreeMaster.

Typically, ith "Auto" option you will find the variable name as <name_of_model>.<variable_name> but this is not a rule.

Only changing the storage class of one variable should not affect the generated program execution, so it remains a question why the code is not being executed anymore. 

How do you change the storage class?

The step I would try here is to compare the generated code before and after changing the storage class and see the difference, or just the <name_of_model>.c file.  If this does not help, can you share an example model with us?

Regards,

Marius 

0 Kudos
Reply