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.

C2000WARE: F28379D Flash API Issue

Part Number: C2000WARE


Hello everyone

I have found a problem in FlashAPI of the latest update of C2000ware (1.00.04.00). 

The header file "F021.h" includes some other files, like this:

#include "../FlashAPI/Constants/Constants.h"
#include "../FlashAPI/Helpers.h"
#include "../FlashAPI/Init.h"
#include "../FlashAPI/Registers.h"

But the header "Init.h" needs types definitions from file "Types.h" of the API headers. And the "Types.h" is included only in "Registers.h" - so the "Init.h" issues an error during compilation.

I've checked older API versions - indeed there was another include sequence:

#include "../FlashAPI/Registers.h"
#include "../FlashAPI/Constants/Constants.h"
#include "../FlashAPI/Helpers.h"
#include "../FlashAPI/Init.h"

Am I right? Or am I missing smth?

Thanks

  • Hi Disona,

    I have installed the C2000Ware 1.00.04.00 version. I couldn't find such order in the F021.h.

    What I observe is the following:
    #include "Registers.h"
    #include "Init.h"
    #include "Helpers.h"
    #include "Constants/Constants.h"

    Could you please check your installation? Can you show the path of F021.h for ex:- C:\ti\c2000\C2000Ware_1_00_04_00\libraries\flash_api\f2837xd\include\F021.h

    Thanks,
    Katta
  • Unfortunately, I have already changed the file, so I can't say, if it was uncorrect rigth after the installation, or i had spuriously changed it.
    Sorry for disturbing.