Unable to execute a code generated by embedded coder for C2000 Piccolo F28027 Launchpad

1 view (last 30 days)
I am working with TI Picccolo C2000 Launchpad Board I am using CSS Version: 4.2.4.00033 I could successfully compile and build my project and I am able to use the .out file generated after build using CCS 4.2 using a debug session. Now the problem is I could not run the program directly to flash I am using Flash API Tool at C:\tidcs\c28\Flash28_API\Flash2802x_API_V200_using_CCS4.0v I configured Flash_loader under Target Preferences > Specify API Location The system on running after build gives following errors.
The call to idelink_ert_make_rtw_hook, during the exit hook generated the following error:
Error while loading and running the project.
The build process will terminate as a result.
The TI flash API library does not exist on your machine.Specify the right path or download the appropriate flash APIs from TI's website.
Similar situation is created when I try to do PIL Simulation
The call to idelink_ert_make_rtw_hook, during the exit hook generated the following error:
Error while building the project.
The build process will terminate as a result.
Next Message is
The build failed with the following message: "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" -I"C:\\Program Files\\MATLAB\\R2011a\\toolbox\\idelink\\extensions\\ticcs\\inc" -I"C:\\tidcs\\c28\\DSP2802x\\v126\\DSP2802x_common\\include" -I"C:\\tidcs\\c28\\DSP2802x\\v126\\DSP2802x_headers\\include" -I"D:\\ADU_DOCS\\C2000 Projects\\CODES\\MATLAB\\LED_SW\\C2000_LED_SW_ticcs" -I"D:\\ADU_DOCS\\C2000 Projects\\CODES\\MATLAB\\LED_SW" -I"C:\\Program Files\\MATLAB\\R2011a\\extern\\include" -I"C:\\Program Files\\MATLAB\\R2011a\\simulink\\include" -I"C:\\Program Files\\MATLAB\\R2011a\\rtw\\c\\src" -I"C:\\Program Files\\MATLAB\\R2011a\\rtw\\c\\src\\ext_mode\\common" -I"C:\\Program Files\\MATLAB\\R2011a\\rtw\\c\\ert" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -ml -v28 -D"MODEL=C2000_LED_SW" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=1" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"TID01EQ=0" -I"C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c2000\include" -fr"./derived/" ./DSP2802x_CodeStartBranch.asm ./DSP2802x_CpuTimers.c ./DSP2802x_DefaultIsr.c ./DSP2802x_MemCopy.c ./DSP2802x_PieCtrl.c ./DSP2802x_PieVect.c ./DSP2802x_SysCtrl.c ./DSP2802x_usDelay.asm ./DSP2802x_GlobalVariableDefs.c ./C2000_LED_SW.c ./C2000_LED_SW_data.c ./C2000_LED_SW_main.c ./MW_c28xx_board.c ./MW_c28xx_csl.c
[DSP2802x_CodeStartBranch.asm]
[DSP2802x_CpuTimers.c]
[DSP2802x_DefaultIsr.c]
[DSP2802x_MemCopy.c]
[DSP2802x_PieCtrl.c]
[DSP2802x_PieVect.c]
[DSP2802x_SysCtrl.c]
[DSP2802x_usDelay.asm]
[DSP2802x_GlobalVariableDefs.c]
[C2000_LED_SW.c]
[C2000_LED_SW_data.c]
[C2000_LED_SW_main.c]
"./C2000_LED_SW_main.c", line 30: fatal error: could not open source file "pil_interface_lib.h"
1 fatal error detected in the compilation of "./C2000_LED_SW_main.c".
Compilation terminated.
>> Compilation failure
gmake: *** [derived/DSP2802x_CodeStartBranch.obj] Error 1
Can anyone suggest for possible integration with CSS 4.2 and MATLAB Embedded coder with Flash API tool? The code generated by Embedded coder after build process is running only on RAM not on Flash? Thanks
  2 Comments
Karuna Mudliyar
Karuna Mudliyar on 2 Apr 2014
Hi Arun...
Did u solve the problem u were facing?
Me to getting the same problem...
If you have any clue .. it would be helpful...
Kind Regards,
Karuna

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!