Can I program OTP on a F2812 without FlashAPI?
Does FlashAPI 2.10 work with CCS v5?
Can I reduce code from Flash API to use only the write to flash function?
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.
Stephan Fecher said:Can I program OTP on a F2812 without FlashAPI?
You can use a programmer such as Code Composer Studio, codeskin, etc to program the device.
Technically - any programmer does indeed use flash API behind the scenes to program the device. But if you use one of these programmers, then the API will be loaded and executed by the programmer.
If you want your application to modify the flash, then likewise you must use the API.
Stephan Fecher said:Does FlashAPI 2.10 work with CCS v5?
CCS 5 knows how to program a F2812. It uses the flash API behind the scenes. You can also link the flash API into a project that is built with CCS 5.
Stephan Fecher said:Can I reduce code from Flash API to use only the write to flash function?
If your application only uses the program function, then the erase function will not be included in the final .out file. The linker takes care of this.
Regards
Lori
It works now! The user can program a serial number in the OTP.
Linker output of CCS v5:
#10068-D no matching section cmd line 131 C/C++ Problem
#16002-D build attribute vendor section TI missing in "C:\...\FlashAPI\Flash2812_API_V210.lib<Flash28_Delay.obj>": compatibility cannot be determined
#16002-D build attribute vendor section TI missing in "C:\...\FlashAPI\Flash2812_API_V210.lib<Flash28_DisInt.obj>": compatibility cannot be determined
#16002-D build attribute vendor section TI missing in "C:\...\FlashAPI\Flash2812_API_V210.lib<Flash28_Globals.obj>": compatibility cannot be determined
#16002-D build attribute vendor section TI missing in "C:\...\FlashAPI\Flash2812_API_V210.lib<Flash28_Init.obj>": compatibility cannot be determined
#16002-D build attribute vendor section TI missing in "C:\...\FlashAPI\Flash2812_API_V210.lib<Flash28_Internals.obj>": compatibility cannot be determined
#16002-D build attribute vendor section TI missing in "C:\...\FlashAPI\Flash2812_API_V210.lib<Flash28_Prog_Pulse.obj>": compatibility cannot be determined
#16002-D build attribute vendor section TI missing in "C:\...\FlashAPI\Flash2812_API_V210.lib<Flash28_Prog.obj>": compatibility cannot be determined
...
Flash28_API:
{
Flash2812_API_V210.lib(.econst) <--- line 131
Flash2812_API_V210.lib(.text)
} LOAD = FLASHTORAM,
RUN = RAML0,
LOAD_START(_Flash28_API_LoadStart),
LOAD_END(_Flash28_API_LoadEnd),
RUN_START(_Flash28_API_RunStart),
PAGE = 0
...
Regards
When used CCSv4, the project built without warning and errors. Now we use CSSv5.2 and have problems:
1) warnings after build project:
Description Resource Path Location Type
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_ClearLoop.obj> ": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_ClearSector.ob j>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Compact_Pulse. obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_CompactSector. obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Delay.obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_DisInt.obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Erase_Pulse.ob j>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Erase.obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_EraseSector.ob j>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Globals.obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Init.obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Internals.obj> ": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Prog_Pulse.obj >": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/Flash2812_API_V210.lib<Flash28_Prog.obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/IQmath.lib<IQ15div.obj>": compatibility cannot be determined laser C/C++ Problem
build attribute vendor section TI missing in "C:/projects/laser/DSP281x_lib/IQmath.lib<IQmathTables.obj>": compatibility cannot be determined laser C/C++ Problem
And when restart DSP (power off and then power on), flash don`t programming. In what reason?