FreeRTOS compilation fails with IAR toolchain

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
sugac_3385211
Level 3
Level 3
5 likes given First like given

10:34:10 **** Build of configuration Default for project 43xxx_Wi-Fi ****

"C:\\Users\\20118776\\Documents\\WICED-Studio-6.1\\43xxx_Wi-Fi\\make.exe" snip.scan-MurataType1LD-FreeRTOS-LwIP-SDIO-iar IAR=1

MAKEFILE MAKECMDGOALS=snip.scan-MurataType1LD-FreeRTOS-LwIP-SDIO-iar OTA2_SUPPORT is disabled

Building with IAR toolchain...

Building Bootloader

Finished Building Bootloader

Processing resources

Compiling App_Scan

  } wiced_ip_address_t;

    ^

"C:\Users\20118776\Documents\WICED-Studio-6.1\43xxx_Wi-Fi\include\wiced_tcpip.h",159  Warning[Pe301]:

          typedef name has already been declared (with same type)

Making build/snip.scan-MurataType1LD-FreeRTOS-LwIP-SDIO-iar/libraries/App_Scan.a

Compiling Platform_MurataType1LD

Making build/snip.scan-MurataType1LD-FreeRTOS-LwIP-SDIO-iar/libraries/Platform_MurataType1LD.a

Compiling FreeRTOS

  void __malloc_lock(struct _reent *ptr)

                            ^

"C:\Users\20118776\Documents\WICED-Studio-6.1\43xxx_Wi-Fi\WICED\RTOS\FreeRTOS\ver9.0.0\Source\portable\MemMang\heap_3.c",157  Warning[Pe231]:

          declaration is not visible outside of function

  void __malloc_unlock(struct _reent *ptr)

                              ^

"C:\Users\20118776\Documents\WICED-Studio-6.1\43xxx_Wi-Fi\WICED\RTOS\FreeRTOS\ver9.0.0\Source\portable\MemMang\heap_3.c",167  Warning[Pe231]:

          declaration is not visible outside of function

tools/makefiles/wiced_elf.mk:232: recipe for target 'build/snip.scan-MurataType1LD-FreeRTOS-LwIP-SDIO-iar/Modules/WICED/RTOS/FreeRTOS/ver9.0.0/Source/portable/IAR/ARM_CM3/portasm.o' failed

make.exe[1]: *** [build/snip.scan-MurataType1LD-FreeRTOS-LwIP-SDIO-iar/Modules/WICED/RTOS/FreeRTOS/ver9.0.0/Source/portable/IAR/ARM_CM3/portasm.o] Error 3

make: *** [main_app] Error 2

Makefile:349: recipe for target 'main_app' failed

10:34:25 Build Finished (took 14s.544ms)

0 Likes
1 Solution

IAR was not enabled for FreeRTOS in WICED. Please use ThreadX.

View solution in original post

0 Likes
3 Replies
sugac_3385211
Level 3
Level 3
5 likes given First like given

FreeRtos website mentions the these file for porting,which I did not find in WICED : "FreeRTOS/source/portable/[compiler]/[microcontroller]/port.c"

"FreeRTOS/source/portable/[compiler]/[microcontroller]/portmacro.h"

"FreeRTOS/source/portable/[compiler]/[microcontroller]/portasm.s"

Instead of ARM_CM4 ,it is using

"FreeRTOS\ver9.0.0\Source\portable\IAR\ARM_CM3" directory and failing in compilation.

Regards,

Suresh

0 Likes

IAR was not enabled for FreeRTOS in WICED. Please use ThreadX.

0 Likes

grsr wrote:

IAR was not enabled for FreeRTOS in WICED. Please use ThreadX.

My understading of IAR support in WICED is limited to specific platform with specific applications and now with specific RTOS.

Since cypress already has the experience for adding IAR support for a platform/applications/RTOS, why not apply it to all platforms/applications/RTOSs?

Or at least, you can add document to tell people how to do that for the platforms/applications/RTOSs users need.

For the users using FreeROTS they probably use some libraries depend on FreeRTOS, it is not always OK to change RTOS.