Skip to main content
Dmytry
Visitor II
June 15, 2019
Question

STM32CubeMX Error: L6218E: Undefined symbol eTaskGetState (referred from cmsis_os2.o).

  • June 15, 2019
  • 4 replies
  • 1946 views

Hello

I get errors when I generate a project with CMSIS_V2, but when I generate a project with CMSIS_V1 there are no such errors ...

Build started: Project: GPS_tracker_os

*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'

Build target 'GPS_tracker_os'

compiling main.c...

linking...

GPS_tracker_os\GPS_tracker_os.axf: Error: L6218E: Undefined symbol eTaskGetState (referred from cmsis_os2.o).

GPS_tracker_os\GPS_tracker_os.axf: Error: L6218E: Undefined symbol uxTaskGetStackHighWaterMark (referred from cmsis_os2.o).

GPS_tracker_os\GPS_tracker_os.axf: Error: L6218E: Undefined symbol uxTaskGetSystemState (referred from cmsis_os2.o).

GPS_tracker_os\GPS_tracker_os.axf: Error: L6218E: Undefined symbol vTaskDelayUntil (referred from cmsis_os2.o).

GPS_tracker_os\GPS_tracker_os.axf: Error: L6218E: Undefined symbol xQueueGetMutexHolder (referred from cmsis_os2.o).

GPS_tracker_os\GPS_tracker_os.axf: Error: L6218E: Undefined symbol xTimerPendFunctionCallFromISR (referred from cmsis_os2.o).

Not enough information to list image symbols.

Not enough information to list load addresses in the image map.

Finished: 2 information, 0 warning and 6 error messages.

"GPS_tracker_os\GPS_tracker_os.axf" - 6 Error(s), 0 Warning(s).

Target not created.

Build Time Elapsed: 00:00:02

This topic has been closed for replies.

4 replies

Nesrine.JLASSI
Visitor II
June 21, 2019

Hi @Dmytry​ 

Thanks for the feedback.

You are right, i was able to reproduce the issue and it will be fixed in the next STM32CubeMX release.

Best Regards,

Nesrine.

DO S.
Visitor II
July 9, 2019

also in Private includes Part of main.c which was created by CubeMX, it includes "cmsis_os.h" inteads of "cmsis_os2.h".

I think it should be "cmsis_os2.h", if we are talking about CMSIS RTOS v2 API.

RHern
Visitor II
August 7, 2019

Hi, I have de same problem. Whats is the solution?

RHern
Visitor II
August 7, 2019

Sorry, I have this problem whit a clean prgram generate by STM32CubeMX

Tesla DeLorean
Guru
August 7, 2019

Perhaps identify the source files that contain those functions, and add those to the project. Or look at command line defines that drive inclusion.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..