Errors when compiling imported MDK-V4 from STM32CubeMX

Comments

2 comments

  • Avatar
    Tero Koskinen

    Looks like you are using FreeRTOS' port.c from portable\RVDS\ARM_CM3 directory. Replace that file with port.c from portable\GCC\ARM_CM3. Do also same for all other files which are taken from portable\RVDS\ directories, and don't forget to change the include paths to point to portable\GCC\ARM_CM3.

     

    Other approach could be to use SW4STM32 output, which generates code for GCC. (But then you lose ability to import generated project file and need to create the project file manually in Crossworks.)

     

    0
    Comment actions Permalink
  • Avatar
    Gerry Steyn

    Thanks Tero!

    I copied the port.c and portmacro.h files from GCC and it solved this error.

    Then I ran into another problem, __stack_process_end__ and __stack_process_start__ were not defined. After searching the net, I saw that I should use the STM32 template, not the STM32F10x template, and that solved the problem, I can now compile without errors.

    Thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.