Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Problems with compiling FreeRTOS

Hi!

I'm new to NIOSII and embeded processors. I have some problems with compiling FreeRTOS.

In port.c file compiler shows following warnings:


assignment from incompatible pointer type    port.c    test2/Source/portable/GCC/NiosII    220
implicit declaration of function `alt_irq_disable'    port.c    test2/Source/portable/GCC/NiosII    223
implicit declaration of function `alt_irq_enable'    port.c    test2/Source/portable/GCC/NiosII    223
implicit declaration of function `alt_irq_register'    port.c    test2/Source/portable/GCC/NiosII    165
linker shows following errors:


undefined reference to `alt_irq_disable'    port.c    test2/Source/portable/GCC/NiosII    223
undefined reference to `alt_irq_enable'    port.c    test2/Source/portable/GCC/NiosII    223    C/C++ Problem
undefined reference to `restore_sp_from_pxCurrentTCB'    port.c    test2/Source/portable/GCC/NiosII    143    C/C++ Problem
Any advice?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found solution on FreeRTOS page. I had to install a new version of port.c file for NIOS EDS 9.1 and higher.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi, has anyone succeeded in compiling a project with freertos under nios ii eds 12.0 (sp1) ?

    I have tried to compile demo projects without success. The template disappears (it is magic :-)) form the drop down menu when creating new project.

    I have also tried to include FreeRTOS by the Eclipse configuration but no success (too many unresolved# include that is fastidious to .... resolve by fixing paths)

    Does anyone have a good way to include FreeRTOS in a Nios II EDS project ?