Skip to main content
Dmytry
Visitor II
Jun 15, 2019 10:18 AM UTC
Question

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

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.

5 replies

Nesrine.JLASSI
Visitor II
Jun 21, 2019 9:12 AM UTC

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
Jul 9, 2019 10:28 AM UTC

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
Aug 7, 2019 10:02 AM UTC

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

RHern
Visitor II
Aug 7, 2019 10:03 AM UTC

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

Tesla DeLorean
Guru
Aug 7, 2019 11:36 AM UTC

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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..