Compilation/Linker Issues in Running the Demo Example for FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR directory

Hello,

Files in the following zip file fix the build error problems which are caused by recent EWRL78.

FreeRTOSv10.3.1.EWRL78.Fixed.20200817.zip (639.2 KB)

This zip file includes all files which are necessary to build the following RTOSDemo projects and the following environments and project settings and hardware/simulator are used to confirm.

FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR
FreeRTOS/Demo/RL78_multiple_IAR

IDE and Compiler

EWRL78 V4.20.1 including ICCRL78 V4.20.1.226 (16KB KickStart Edition)
e2 studio v7.8.0 (32bit version) with ICCRL78 V4.20.1.226
e2 studio v2020-07 (64bit version) with ICCRL78 V4.20.1.226

Device information and Project settings

RL78_RL78G13_Promo_Board_IAR project

                        Tick                               On-chip   Non-task  Compiler  e2 studio's                            
                        Interrupt            Memory model  MUL/DIV   Stack     Optimize  Debug launch configurations            
Board         Device    Vector    ROM/RAM    Code/Data     Unit      Size (*1) Level     Emulator          Simulator            
                                                                                                                                
YRPBRL78G13   R5F100LE  0x38     64KB/4KB    Near/Near     Disabled  128B      High      on-board EZ (*2)  Renesas RL78 Sim (*3)

RL78_multiple_IAR project

                        Tick                               On-chip   Non-task  Compiler  e2 studio's                       
                        Interrupt            Memory model  MUL/DIV   Stack     Optimize  Debug launch configurations           
Board         Device    Vector    ROM/RAM    Code/Data     Unit      Size      Level     Emulator          Simulator       
                                                                                                   
YRPBRL78G13   R5F100LE  0x38     64KB/4KB    Near/Near     Disabled  128B      High      on-board EZ (*2)  Renesas RL78 Sim (*3)
                                                                                                
YRDKRL78G14   R5F104PJ  0x38    256KB/24KB   Far/Far       Disabled  144B      High      on-board EZ (*2)  Renesas RL78 Sim (*3)
                                                                                                
RSKRL78G1C    R5F10JGC  0x38     32KB/5.5KB  Near/Near     Disabled  128B      High      E1 (*2)           N/A                  
                                                                                                
RSKRL78L1C    R5F110PJ  0x3C    256KB/16KB   Far/Far       Disabled  144B      High      E1 (*2)           N/A                  
                                                                                                
RSKRL78L13    R5F10WMG  0x3C    128KB/8KB    Far/Far       Disabled  144B      High      E1 (*2)           N/A                  
                                                                                                
RL78_G1A_TB   R5F10ELE  0x38     64KB/4KB    Near/Near     Disabled  128B      High      E1 (*2)           N/A                  
                                                                                                
RL78_G14_FPB  R5F104ML  0x38    512KB/48KB   Far/Far       Disabled  144B      High      on-board E2 Lite  Renesas RL78 Sim (*3)

*1: Non-task Stack Size means that stack size before the scheduler starts.
*2: These launch configurations are not tested because I don’t have these evaluation boards.
*3: e2 studio’s Visual Expression view can show blinking of LED graphically. (Note that please don’t open the view when emulator is used because the view strongly disturbs program running.)

Other information

You can select build configuration as follows:

EWRL78
e2studio_freertos_build_issues_31

e2 studio (Please note that tool bar is customized by me.)

You can select debug configuration as follows:

e2 studio (Please note that tool bar is customized by me.)

You can open the Visual Expression view when you user e2 studio and Renesas RL78 Simulator.
(If non LED image is displayed, please wait for a next timing of LED turn on/turn off.)


e2studio_freertos_build_issues_52
e2studio_freertos_build_issues_53
e2studio_freertos_build_issues_54

IDE’s bugs need some workarounds of project settings:

Changing Memory Model (Near<–>Far) removes preprocessor macro definitions in certain cases.
So, I did the following settings.
e2studio_freertos_build_issues_61




Changing Build Configuration leads to link error.
So, I added a pre-build command to show an error message and please do the steps in the error message when it is displayed.


Best regards,
NoMaY