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.

TMS320F28379D: calibration parameters store and share between cpu01/02 ?

Part Number: TMS320F28379D


Dear all, 

In my project, there are many calibration parameters need to be store in flash and  these parameters will be used in algorithms during running. The calibration will be implemented after the whole system is assembled. Some of the them may be as the form of a lookup table, such as temperature calibration. 

My question is what's the common method to realized these kind of function. 

My thought is that PC send parameters by uart to cpu02, cpu02 use flash API store parameters to a flash section, such as flashN. During the normal running, when the f28379d startup, cpu02 read the parameters from the flashN and put the data into a share ram, through which cpu01 can access the parameters. Is this a good method? 

Please give some advice! any suggestion will be appreciated.  

  • There are multiple different ways to do achieve this. What you have described will work as well, one other way to do this if the calibration values and the look up table is going to be static, you can embed that in your code and load it to the Flash, which you can use it later during the run.

    Regards,
    Nirav
  • Also instead of using shared RAM, you should use IPC MSG RAM to share this data between CPU1/CPU2. These MSG RAMs are provided for such usecase.

    Regards,

    Vivek Singh

  • Thanks Nirav and Vivek, May I ask further?

    1) To Nirav , How can realize the store the data 'statically ' in Flash? claim a various data[] = "xxxxxxxxxxxxxxxxx", then how to indicate that the data need to be store into the FlashN?

    Could you show me an example to do it 

    2) To Vivek, the MSG RAM seems attractive. My question is that how I can use the MSG RAM, is it necessary to use IPC lite driver or API?  

  • What I meant by static was if the look up table would be known during the time of code compile, then you can embed that inside the code and load it in Flash. Looks like you want to load the calibration values during the run time, in that case whatever method you described earlier will work.

    Regards,
    Nirav