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.

Flash API - How to?

Other Parts Discussed in Thread: HALCOGEN

Hi,

I want to use the Flash API to use the emulated EEPROM in my  RM46L852ZWT controller and I have some questions before I start getting into it:

  • which API version is up to date? (V1.5.1, V2.0.0 Beta?)
  • which Library to use
    • F021_API_CortexR4_LE.lib
    • F021_API_CortexR4_LE_v3D16.lib
    • F021_API_CortexR4_LE_L2FMC.lib
    • what is the difference?
  • how to add the Flash API to my Code Composer Studio Project (V5.3.0)?

Best regards,

Andy

  • Hello Andy,

    I would personally use the V2.0.0 Beta that is installed by the latest release of HALCoGen (v3.5.2). 

    If you are compiling with floating point, use F021_API_CortexR4_LE_v3D16.lib.

    If you are compiling without floating point, use F021_API_CortexR4_LE.lib.

    The L2FMC library is for devices that have an L2FMC memory controller, which the RM46 does not have.

    With the v2.0.0 library, add #include "F021.h" to the files that use API calls.  Then add the API include directory to the projects search path.  Below shows the setting with the Beta default install path.

    Then add the library you need to the linke options.  Default install location using the non floating point version of the library is shown in the example below:

  • Updated the previous post with pictures that did not show when posted.

  • Hi John,

    thanks for the detailed information.

    I'm just not sure about one thing. What does "If you are compiling with floating point...." exactly mean?
    In my application source codes, I'm using variables with type = "float". Is that what you meant?

    Regards,

    Andy

  • Hi John,

    ok, I think I got it... In my project properties, "--float_support" is set to "VFPv3D16".

    So I will use the "F021_API_CortexR4_LE_V3D16.lib".

    Best regards,

    Andy