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.

MSP430I2041: EMDC code compatibility for MSP430i2040

Part Number: MSP430I2041
Other Parts Discussed in Thread: MSP430I2040, , MSP-FET

I wanted to write a code on MSP430i2040 which is written with EMDC using MSP430i2041 IC. So please guide that is it can be applicable directly or need of up gradation in the same. 

  • Hello,

    A similar question was asked in the following thread.

    MSP430I2040: TI generated code's data/bss not fitting into MSP430I2040 RAM

    Besides carefully reducing the stack size, you could tweak the communication protocol to use less memory. However, let me emphasize that this should be done after you have evaluated EMDC using the MSP430i2041 device. In your final product, you can use a different protocol but still leverage the EMDC APIs once you understand how everything works.

  • I'm not sure why your last reply didn't show up in the thread. I've copied it below.

    Hello James, Thanks.
    Will you please specifically suggest which communication protocol should be used for lesser memory occupation. Also for burning of code through CCS i have to use USB-HID, correct ?

    The communication protocol is up to your design requirements. The EMDC protocol uses sync bytes, command bytes, data bytes and checksum bytes. You could just use command bytes and data bytes but data integrity may be jeopardized. With fewer commands, you wouldn't need as much code to handle all of them. Again, I would focus on evaluating the metrology performance before modifying the communication. I've seen many users try to do too much at once, which ends up causing a lot of unnecessary problems.

    The USB-HID should be used for communication only. It does have an onboard debugger (SBW) that could program the MSP430i20xx, but we normally recommend using the MSP-FET.

    Have you referred to the EMDC Technology Guide yet?