How can I add variables to view/modify with MCAT?

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

How can I add variables to view/modify with MCAT?

跳至解决方案
2,164 次查看
lancefisher
Contributor III

I'm using MCAT with a project running on a FRDM-KV31F eval board.  The project is a modified version of the project associated with AN12374.  I want to use Freemaster (version 2.5) with MCAT to view and modify some of the variables I added to the project while controlling the project via the MCAT user interface.  I have generated the new variables in Freemaster and added them to a watch window but the values show up as '?' and cannot be written.  What do I need to do to give Freemaster (with MCAT) access to my new variables?

0 项奖励
回复
1 解答
2,103 次查看
MichalH
NXP Apps Support
NXP Apps Support

Dear Lance,

the MCU application most probably uses a TSA feature along with TSA-safety. So-called TSA tables enable developer to describe variable types and access rights directly in the application code. The tables are then read by FreeMASTER and used as a symbol information instead of loading/parsing ELF file. With TSA-safety, the variables which are NOT described by any TSA table are not accessible by FreeMASTER at all - this is why you see question marks.

You have two options: 

  • Add your variables to existing  TSA tables, or create your own TSA table and add it to the list of used TSA tables.
  • Disable TSA-safety feature to gain access to the rest of the memory space. You will need to load the ELF file to get addresses of your added variables. 

Regards,

Michal

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,103 次查看
lancefisher
Contributor III

I don't know how to find or modify the existing TSA tables or create and add my own.  Where can I learn about "TSA Safety"?

0 项奖励
回复
2,103 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello Lance,

please see the FreeMASTER Communication Driver user guide at https://www.nxp.com/docs/en/user-guide/FMSTRSCIDRVUG.pdf. This document describes the latest driver version which is included in MCUXpresso SDK. It might be newer than what you use, but the sections dedicated to TSA are valid for all driver versions.

Also see more FreeMASTER documents and presentations at this page.

Best regards,

Michal

0 项奖励
回复
2,104 次查看
MichalH
NXP Apps Support
NXP Apps Support

Dear Lance,

the MCU application most probably uses a TSA feature along with TSA-safety. So-called TSA tables enable developer to describe variable types and access rights directly in the application code. The tables are then read by FreeMASTER and used as a symbol information instead of loading/parsing ELF file. With TSA-safety, the variables which are NOT described by any TSA table are not accessible by FreeMASTER at all - this is why you see question marks.

You have two options: 

  • Add your variables to existing  TSA tables, or create your own TSA table and add it to the list of used TSA tables.
  • Disable TSA-safety feature to gain access to the rest of the memory space. You will need to load the ELF file to get addresses of your added variables. 

Regards,

Michal

0 项奖励
回复
2,103 次查看
lancefisher
Contributor III

Changing the TSA_SAFETY setting to 0 in freemaster_cfg.h allowed me to display variables in the .elf file. Thanks. -lance

0 项奖励
回复