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.

Erros #1965 cannot open source file "F021.h"

Other Parts Discussed in Thread: HALCOGEN

Hi

I have a problem... 

I have been trying to compile a code which I had aldready done but now I have this error:

And I already saw the video of the configuration of the include properties:

I saw on another post to not put anything on the "preinclude" but after a long time trying to compile it... I cannot do it...

I saw that one of the problems is the F021.h file but I did not found it... I made the configuration on the HALCOGEN but it didn't give me that file Mano_code_20agos2016.rar

Any idea?? I here leave the codes and everything 

Best regards

  • Hi,

    I created a TI-FEE project and see the same issue as you. However, I found out that I forgot to follow step 6 mentioned in the top comments of the source file <example_TI_Fee_Write_Read.c> in my Halcogen.

    example_TI_Fee_Write_Read.c said:

    *   @b Step @b 6:
    *
    *   Add F021 Library files to CCS Project
    *   - Add/Link F021_API_CortexR4_BE_V3D16.lib from folder C:/ti/Hercules/F021 Flash API/2.01.01 to CCS Project
    *   - Add Path C:/ti/Hercules/F021 Flash API/2.01.01/include to Include Path in CCS Project
    *
    *   The example file example_TI_Fee_Write_Read.c can also be found in the examples folder: ../HALCoGen/examples

    To find this source file, go to menu Help --> Examples --> open the corresponding device directory (in this case it is TMS570LS12x_11x)

    Adding both the include path and the library were enough to properly build the project.

    Hope this helps,

    Rafael

  • hii

    I wasnt able to sign in  with my student account.

    that solved that problem but now im having this other error:

    I have been looking for the solution on the forum but havent found anything... 

    Do you vahe any idea??

    Best regards!!

  • Hi,

    The error indicates you have a file main.c that is conflicting with the HalCoGen auto-generated sys_main.c file. Remove main.c or merge the two (depending on how the project is designed).

    Details about the process can be found at:
    processors.wiki.ti.com/.../Creating_new_CCS_v5_Project_with_HALCoGen

    Hope this helps,
    Rafael
  • but... I had already compiled the same code with the previous version of CCS... the 6.12 I think. Why the files generate a problem?? 

    best regards