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.

TI FEE warnings

Other Parts Discussed in Thread: HALCOGEN

Hi,

I'm trying to set up the FEE module.  I have configured it in Halcogen, and added the flash API include files and lib file to my project.  I also added

    FEE_TEXT_SECTION : {} > FLASH0
    FEE_CONST_SECTION : {} > FLASH0
    FEE_DATA_SECTION : {} > RAM


In my linker file.  However, I'm getting warnings that

I found this post(http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/321163/1120363) which seemed to at least have the same issue with the typedef name already being declared, but following the workaround the typedef warnings don't go away, and I get new warnings that 'true' and 'false' are being redefined.

 

Any idea what I am missing?

 

Thanks,

David

  • Hello David,

    I've forwarded your questions to one of our FEE driver experts. They should get back with you soon.
  • Hi David,

    Have you included sys_common.h file in your main.c file? If yes., please try to remove and then check.
  • Hi,

    1) Yes, sys_common.h is included in main.c...it is included by default in the halcogen code. If I comment it out in the example project then the typedef errors go away, but I still have errors of an unknown attribute "packed" under the FlashAPI include\Types.h.

    2) There is no good way to remove sys_common.h. I can't comment it out, because Halcogen will just regenerate it. I can't use #if 0 to remove it, that violates my company's coding standards. Maybe I need to create a different main file.

    3)I'll need to take a closer look, because in my app it isn't as simple as just removing sys_common.h, since I have other include files that are also included in main that use sys_common.h. I'll have to see if I can completely separate them.

    Thanks,
    David
  • Hi David,

    What version of HALCoGen are you using?

  • I believe I started this in 4.2, but have since upgraded to 4.3 (same issues).

    David
  • Hi David,

    On linker warning "packed", can you check what is the setting of "--enum type" under Arm Compiler->Advanced Options->Runtime Model Options.

    I have compiled FEE example with following settings and I do not see this warning.

    -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi --include_path="c:/ti/ccsv6/tools/compiler/tms470_5.1.6/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="D:/HalCoGen_Projects/1_31x/include" -g --display_error_number --diag_warning=225 --diag_warning=1173 --diag_wrap=off --enum_type=packed

    On other compiler warnings, I'm checking with HALCogen.

     

  • Hi,

    I do have enum type set to packed.  Below are my compiler settings

    Thanks,

    David

  • Hi David,

    Something has changed in compiler between v5.1.6 and v5.1.9. I do not see this warning in v5.1.6.

    You may post a query to compiler team(I can also do it, if required).

  • I have the same error using compiler 5.1.10. I did not have this error when using compiler version 5.1.5. I do not have sys_common.h included in my main.c.

    "Types.h", line 95: warning: unknown attribute "packed"
    "Types.h", line 110: warning: unknown attribute "packed"
    "Types.h", line 122: warning: unknown attribute "packed"
    "Types.h", line 134: warning: unknown attribute "packed"
    "Types.h", line 148: warning: unknown attribute "packed"
    "Types.h", line 153: warning: unknown attribute "packed"
    "Types.h", line 165: warning: unknown attribute "packed"
    "Types.h", line 180: warning: unknown attribute "packed"
    "Types.h", line 191: warning: unknown attribute "packed"
    "Types.h", line 262: warning: unknown attribute "packed"
    "Types.h", line 277: warning: unknown attribute "packed"
    "Types.h", line 290: warning: unknown attribute "packed"
    "Types.h", line 315: warning: unknown attribute "packed"
    "Types.h", line 515: warning: unknown attribute "packed"

    Is there a new version of the F021 library that works with the new compiler?
  • Hello Michael,

    We do not have a new version of F021 library. We will take care of above warnings in next release of F021 library.

  • Any idea of the timeline for the next release?

     

    Thanks,

    David