I used DataMemRead to read the etimer0(CNTR) register in simulink,but have some problems,when I put this mudule in simulink,and input address to read etimer0(CNTR),it couldn't debug in freemaster,the code can not run,please help me!!!
Hello Yuyuan Wang,
Could you provide some more information? I'd like to know what toolbox you are using (for what MCU). It would be helpful if you could share the model that you are running and having difficulties with.
What I can say is that sometimes code is not generated for that variable - for the DataStoreMemory blocks. You could try and set it as Volatile for codegeneration - you can do this by right clicking the DataStoreMemory block, go to Block Parameters, then go to Signal Attributes tab and select as Storage class - Volatile. This should make sure code is generated for this specific variable. Then you can go into FreeMASTER and search for the variable.
Did setting the storage class to volatile do the trick? Or are you still facing issues with your model?
I'm so sorry that I forget to respond you,I used your method to have a try,but still not work,then I change a method to solve this problem,I compile in simulink,and load the series of file in S32 design studio,finding a fault in '.c' file about address part,this address is not my setting before I compile in simulink,so I change the correct address and this problem has been solved,thank you for your enthusiastic help.
Good to know that you resolved your issues!
Thank you a lot for your care and parent help,I hope I could also help you to solve your problem in the future days.
Retrieving data ...