RX62N Port – Illegal expression

I am using the FreeRTOS port for the Renesas RX62N Microcontroller,
FreeRTOS V7.4.2
compiler = Renesas RX Family V.1.02.01.000
IDE = HEW4 V4.09.00.007
HW = Renesas Development Kit YRDKRX62N I have built the Blinky project and I am getting the following errors. Phase: RX C/C++ Compiler, File: RX C/C++ Compiler, dependency scan error
c:workspacebackup of freertos qac testdemorx600_rx62n-rdk_renesasrtosdemostackmacros.h(112) :  DC307 (F) Illegal expression
Phase: RX C/C++ Compiler, File: RX C/C++ Compiler, dependency scan error
c:workspacebackup of freertos qac testdemorx600_rx62n-rdk_renesasrtosdemoport.c(337) :  DC306 (F) Syntax error
Phase: RX C/C++ Compiler, File: RX C/C++ Compiler, dependency scan error
c:workspacebackup of freertos qac testdemorx600_rx62n-rdk_renesasrtosdemostackmacros.h(112) :  DC307 (F) Illegal expression
Building – RTOSDemo – Blinky Any idea on what is causing these errors?SOMETHING HERE

RX62N Port – Illegal expression

Yes – the dependency scanner is eccentric.  By default it ignores the preprocessor directives and tries to includes files from all the FreeRTOS ports.  You can ignore these warnings (I think the documentation page for the official demo says as much) because they are not compile or linker errors – you should find the code compiles and links without any problems.  Also, if you dig deep enough into the IDE options you will find an option that requests the dependency scanner includes processing of the pre-processor directives, selecting that option makes it much quieter. Regards.

RX62N Port – Illegal expression

Hi Richard In your reply are you refering to when an #include is made within a #ifdef of #ifndef statement, i.e. as in portable.h
I have temporarily modified code so no header files are included in this way. However I still get the errors. The first error (DC306), seems to be associated with the following lines in port.c MVTIPL #configMAX_SYSCALL_INTERRUPT_PRIORITY
MVTIPL #configKERNEL_INTERRUPT_PRIORITY

RX62N Port – Illegal expression

In future it would be helpful if you could post the error text, rather than just the error number, so I don’t have to look it up.  In this case it appears to just be “syntax error”. Can you post the definitions of configMAX_SYSCALL_INTERRUPT_PRIORITY and configKERNEL_INTERRUPT_PRIORITY.  They should be in FreeRTOSConfig.h. Which compiler version are you using? Regards.

RX62N Port – Illegal expression

Hi Richard #define configKERNEL_INTERRUPT_PRIORITY         1
#define configMAX_SYSCALL_INTERRUPT_PRIORITY    4 compiler = Renesas RX Family V.1.02.01.000

RX62N Port – Illegal expression

I am using the same compiler version.  This is the output I get when I build the HEW project located in FreeRTOS/Demo/RX600_RX62N-RDK_Renesas (unmodified, so with the same configKERNEL_INTERRUPT_PRIORITY and configMAX_SYSCALL_INTERRUPT_PRIORITY settings as you:
Phase RX C/C++ Library Generator starting
Phase RX C/C++ Library Generator finished
Phase RX C/C++ Compiler starting
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalBlockQ.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalGenQTest.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalIntQueue.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalPollQ.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalQPeek.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalblocktim.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimaldeath.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalflash.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalflop.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalinteger.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalrecmutex.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonMinimalsemtest.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonethernetFreeTCPIPappshttpdhttp-strings.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonethernetFreeTCPIPappshttpdhttpd-fs.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonethernetFreeTCPIPappshttpdhttpd.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonethernetFreeTCPIPpsock.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonethernetFreeTCPIPtimer.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonethernetFreeTCPIPuip.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoCommonethernetFreeTCPIPuip_arp.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoHighFrequencyTimerTest.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoIntQueueTimer.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoParTest.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoRenesas-Filesdbsct.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoRenesas-Fileshwsetup.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoRenesas-Filesintprg.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoRenesas-Filesresetprg.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoRenesas-Filessbrk.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoRenesas-Filesvecttbl.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemomain-full.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemouIP_Task.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemowebserverEMAC.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemowebserverhttpd-cgi.c
C:temp752FreeRTOSV7.5.2FreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemowebserverphy.c
C:temp752FreeRTOSV7.5.2FreeRTOSSourcelist.c
C:temp752FreeRTOSV7.5.2FreeRTOSSourceportableMemMangheap_2.c
C:temp752FreeRTOSV7.5.2FreeRTOSSourceportableRenesasRX600port.c
C:temp752FreeRTOSV7.5.2FreeRTOSSourcequeue.c
C:temp752FreeRTOSV7.5.2FreeRTOSSourcetasks.c
C:temp752FreeRTOSV7.5.2FreeRTOSSourcetimers.c
Phase RX C/C++ Compiler finished Phase RX Assembler starting
C:temp752FreeRTOSV7.5.2FreeRTOSSourceportableRenesasRX600port_asm.src
Phase RX Assembler finished Phase OptLinker starting
Phase OptLinker finished Build Finished
0 Errors, 0 Warnings Regards.

RX62N Port – Illegal expression

The DC306 syntax error, is displayed for the “Blinky” build.
I think the output you have shown is for the “Debug” build, if possible can you try again using the “Blinky” build Note: Blinky build also throws up a L3100 (F) Section address overflow out of range : “L” but this can be rectified by adding the “L” section using the RX standard toolchain. Best Regards

RX62N Port – Illegal expression

Note: Blinky build also throws up a L3100 (F) Section address overflow out of range : “L” but this can be rectified by adding the “L” section using the RX standard toolchain.
Confirm I can replicate that, and fixed it by adding in the L* section.  I then get:
Phase OptLinker starting
L2201 (E) Illegal library file : “C:EDevFreeRTOSWorkingCopyFreeRTOSDemoRX600_RX62N-RDK_RenesasRTOSDemoBlinkyRTOSDemo.lib”
Optimizing Linkage Editor Abort
Going to the options dialogue, standard library tab, standard library category, and selecting “match.h” in the category window (so the selections match those used by the debug build configuration) fixed that. After that my output from the build is as per my previous post. Regards.