FreeRTOS 6.0.0 LPC2368 & LPC2138 Crossworks demo does not build on V2.0

Comments

5 comments

  • Avatar
    Jon Elliott

    Try changing line 191 of FreeRTOS\Source\portable\GCC\ARM7_LPC2000\portmacro.h to:

    #define portYIELD()                    __asm volatile ( "SWI 0" )


    Regards,

    Jon Elliott

    0
    Comment actions Permalink
  • Avatar
    Dirk Verhaegen

    This solved the issue. Many thanks. Any feedback on why this caused the compilation error ?

    Regards,

    Dirk

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    Presumably the latest version of the assembler no longer supports using the SWI instruction without an argument to mean "SWI 0".

    Regards,

    Jon Elliott

    0
    Comment actions Permalink
  • Avatar
    Raed

    Hi ,,

    where is "void prvSetupHardware( void );" defined in ARM7_LPC2368_Rowley? i am looking for PLLCFG values so i could find Fcclk and Fpclk?  

     

    thank

    0
    Comment actions Permalink
  • Avatar
    Dharper08

    Wow - nearly four years down the line and this post continues to help.  I just completed the CrossWorks tutorial and the next step was to build the lwIP_Demo_Rowley_ARM7 project and try it on the AT91SAM7X-EK board.  Something like 44 compile errors.  Bless you Google - you led me to this post.  The portmacro.h file was already defined as "SWI 0" but the line said "asm" instead of "__asm".  I tried changing the line and that fixed some, but not all, of the problems.  Turns out there were a number of other instances of "asm" that needed to become "__asm" in both portmacro.h and portISR.c.  Once all were changed I got a compile with no errors (but some minor warnings).  Many thanks Jon - this saved me a bunch of time on my Rowley evaluation.

    0
    Comment actions Permalink

Please sign in to leave a comment.