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.

CCS/MSP432P401M: Automating flashing through Code Composer Studio

Part Number: MSP432P401M


Tool/software: Code Composer Studio

Hi all,

We have developed a sensor conditioning circuit for a client using the MSP432P401M processor. The code inside is very simple, the MCU ADC samples the signal at 200 Hz and then we perform piecewise linearization before sending the value out over UART. I have divided the full range of the sensor into eight parts with switch-case statements over which we will do the piecewise linearization. We are using a calibrated and high resolution master sensor to calibrate these. Currently what we do is we mount the two sensors side by side and in the switch cases modify the coefficients. Each sensor is a little bit different and so I have to take the readings for each one and then make the change in the main code, build it and flash it.

I was thinking, if I write the switch case statements using variables and in a different file assign the values to the variables depending upon the calibration test, then is there a way the whole process can be automated? What I can envision is this; we can easily automate the part where the system will take the master and test sensors through the same conditions and record the outputs in some standard format like Excel or CSV. Now is there a way where I can automate the part where CCS will take the values from this table, put it in right place, compile and flash? 

  • Nikhil Bapat said:
    Now is there a way where I can automate the part where CCS will take the values from this table, put it in right place, compile and flash? 

    Debug Server Scripting may allow you to automate the calibration and flashing of the coefficients.

    Also consider placing the coefficients in their own flash segment, so that the coefficients can be flashed without having to recompile the program.

    [I haven't seen a specific example of using Debug Server Scripting to perform exactly what you require]

  • Chester,

    Sorry about the late reply. The notification of reply went to spam and actual work on the project put my late night musings on a back burner :-)

    I was also thinking of using EEPROM for the purpose. The whole program will be in flash, using the gang programmer. Since MSP432 has EEPROM, I can write a program so that the MCU itself will take the values over RS232 or CAN and store it. Maybe I can call it calibration mode and activate it using some special instructions over RS232.

    But I still need to see if that is practically possible.