chris-itk wrote on Monday, September 29, 2014:
Hi everybody,
i’ve got some problems with porting the freertos demo project to a RL78F14 (RL78F14R5F10pgj) controller.
I’m using the iar compiler.
I can build the existing demo projects (as provided by freertos v8.1.2 for the rl78 controllers) without any error.
But if I include the necesarry register definitions (ior5f10pgj.h, ior5f10pgj_ext.t) for my controller in FreeRTOS_Config.h, I get a compiler error about some undefined symbols. See the logfile extract below.
Does anybody know about this problem, or how to fix it?
I would be very glad if you could help me.
Regards
Chris
/****************************************************************************************************/
port.c
iccrl78.exe C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\port.c --core rl78_2 --code_model near --data_model near --near_const_location rom0 -o C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\Debug\Obj\ --dlib_config C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\rl78\LIB\dlrl78nn2n.h -e -Ol --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_crosscall --no_scheduling --no_clustering --debug -I C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\ -I C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\ -I C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\include\
IAR C/C++ Compiler V1.40.3.898 for RL78
Copyright 2011-2014 IAR Systems AB.
Evaluation license - IAR Embedded Workbench for Renesas RL78, Evaluation version 1.40
C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\port.c(279) : Error[Pe020]: identifier “ITMK” is undefined
C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\port.c(282) : Error[Pe020]: identifier “ITMC” is undefined
C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\port.c(285) : Error[Pe020]: identifier “ITIF” is undefined
Errors: 3
Warnings: none
Error while running C/C++ Compiler
portasm.s87
arl78.exe C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\portasm.s87 --core rl78_2 -D__DEVICE_FILE__=<ior5f10pgj.h> -D__DEVICE_FILE_EXT__=<ior5f10pgj_ext.h> -o C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\Debug\Obj\ -M<> -r -I C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\ -I C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\ -I C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\include\ -D__NEAR_MODEL__ -D__NEAR_DATA_MODEL__ --code_model near --data_model near
IAR Assembler V1.40.3.898 for RL78
Copyright 2011-2014 IAR Systems AB.
C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\portasm.s87(102) : Error[As014]: Expression can not be forward
C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\portasm.s87(102) : Error[As014]: Expression can not be forward
C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\portasm.s87(102) : Error[As011]: Undefined symbol: INTIT_vect
C:\Users\ckurz.ITK\Desktop\RL78_Demo\RL78_Demo\user_src\FreeRTOS\portable\IAR\RL78\portasm.s87(102) : Error[As014]: Expression can not be forward
Errors: 4
Warnings: none
Error while running Assembler
Total number of errors: 7
Total number of warnings: 0
/****************************************************************************************************/