This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5438A: Manual EEM configuration

Part Number: MSP430F5438A

Hello,

I would like to debug the MSP430F5438A and configure the clocks - including timer clocks - to stop when hitting a breakpoint. According to the documentation SLAU208P I can see that the controller has a EEM which is capable of doing so. I also found SLAA393F which describes how to configure the EEM from Code Composer Studio. My assumption would be that the code composer studio sets registers in the EEM in order to reach desired behavior. Is there any documentation how to configure the EEM without using the menues from CCS?

The background is, that I am developing with MSP430-GCC toolchain using Visual Studio Code for coding and debugging. 

Thanks for your help.

  • Hi Yuhao,

    I have checked the answer to the link you sent me. As far as I can see, the manual SLAU320AJ does describe the JTAG interface as well as partially the SWD interface, however I was unable to find information on the EEM. Since the EEM implementation is device or at least family specific in the implementation I wouldn't assume to find the description in that document.

    The other suggestion is to look into the sources of MSP Debug Stack and/or MSPDebug. I have checked the MSP Debug Stack and the sources for MSP430.dll seems to have quite some information on the internal access of the devices. I also see promesing names like EEMRegisterAccesss430 etc. however I cannot figure out the addresses or the functions. Sadly the code is mostly undocumented - except the license information on top, so it is really difficult to get any datails out of it. If you do know where to look, please let me know.

    The last suggestion of the other thread I do not really understand - "Or you can use logging over high speed UART (4 Mbps) or by JTAG / SBW mailbox system". Is that a suggestion to run CCS and spy on the protocoll they are using? Anyways, I am not able to get anything out of that link.

    Coming back to the original questions. How to access the EEM system.

    Is the EEM system implemented like a periphery of the device with registers and values I can write into them. The user guide SLAU208P suggests that, since it is listed like all the other modules. However the registers are not described - so I still hope that there is a general document which describes the EEM registers, which I just don't know about. Do you have any insights on that?

    Thanks,

    Rasmus

  • Hello,

    to me it seems as if I have to modify the msp430.dat file which is used by gdb_agent_console.exe for configuration purposes. My assumption would be that I am able to change the configuration in such a way, that the debug stack sets the EEM in the according state. However the only documentation I have found so far is in chapter 4.7 of SLAU646F which sadly does not give the option to the EEM clocks.

    Does anyone know an alternative document or a documentation which options are read from msp430.dat file?

    Thanks for your help.

  • Hi Rasmus,

    Sorry for late reply. From my side I did not find more resource for EEM. I could try asking someone else, but that might not help.

    Thanks,

    Yuhao

  • Dear Yuhao,

    thanks for getting back to me.

    I believe that you have quite a great hardware setup, being able to fine granulate the states during debug figures. Sadly you only enable those configurations in your own IDE and comercially availble configurations - such as e.g. IAR. It would be great to have support in open platforms as well, which could easily be implemented if you have an according documentation available. Personally I believe that you are missing out on opportunities on this.

    However, from my point of view, I understand that I am unable to configure the EEM at the moment.

    Thanks,

    Rasmus

**Attention** This is a public forum