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: Calling flash API will pointer to functions

Part Number: TMS320F28379D

Hi expert,

My customer is for automotive and they have requirements for calling flash APIs with pointer to function in a static way. That my require to put the interface of these funtions at static address in RAM when copying from flash.

Could you help us on how to realize this?

Thanks

Sheldon

  • Sheldon,

    Will get back to you on this in a day or two.

    Thanks and regards,
    Vamsi

  • I do not have a good understanding of the problem.  

    Please show some C code which does what you want.  When you get to a point where you are not sure how to express what needs to happen, feel free to make something up.  Explain everything with detailed comments.

    Thanks and regards,

    -George

  • Hi George,

    For examples, 0x70100000 is the entry address of API to perform an erase. 

    When Flash APIs are copied from Flash to RAM, we can call functions with their pointers.

    Similarly, we do ADC calibration on F28069 device like this:

    Thanks

    Sheldon

  • Sheldon,

    The easiest way to achieve this would be to allocate a dedicated RAM memory range for the flash API (to copy at runtime).  Don't allocate any other section to that memory range.  And let the linker map the functions in flash/RAM.  Then you can check the map file and identify the address for each function. Then you could use those addresses to define a pointer.

    Thanks an regards,
    Vamsi