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.

using flash API with simulink embedded coder

Other Parts Discussed in Thread: CONTROLSUITE

Hi all.

I'm using simulink to generate C code for the c2000 mcu and I would like to add flash-based eeprom emultaion features using the flash API provided by texas instruments.

Running the flash API example using CCSv5 to build theproject, all works fine, but when I try to build the simulink model that uses flash API functions I get alinker error:

undefined first referenced
symbol in file
--------- ----------------
_Flash28_API_LoadEnd ./derived/flashAPItest_main.obj
_Flash28_API_LoadStart ./derived/flashAPItest_main.obj
_Flash28_API_RunStart ./derived/flashAPItest_main.obj

It seems like the linker is unable to find the symbols listed above, which are defined  in the "Flash28335_API_V210.lib" file. I added the path to the directory containing the .lib file (C:\ti\controlSUITE\libs\utilities\flash_api\2833x\28335\v210\lib\) among the "Include directories" list in the custom code section of the code generation menu and I also added the filename to the " libraries" list, so I think the linker should be able to link the file...

Any suggestions?

Thanks in advance