Skip to main content
F F
Associate III
April 9, 2020
Question

STM32CubeMX 5.6.0 (latest) Generated BLE projects cannot build!

  • April 9, 2020
  • 7 replies
  • 1778 views

Hi, I updated everything to the latest CubeMX and packages. When I generate BLE code now (just a simple P2P Server) the build fails because of multiplye defined symbols. Anyone a soluition?

compiling app_ble.c...

../Src/app_ble.c(224): warning: #1296-D: extended constant initialiser used

 PLACE_IN_SECTION("TAG_OTA_START") const uint32_t MagicKeywordAddress = (uint32_t)&MagicKeywordValue;

../Src/app_ble.c: 1 warning, 0 errors

linking...

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol OTP_Read multiply defined (by otp_1.o and otp.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_init_head multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_insert_tail multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_is_empty multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_remove_head multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___11_dbg_trace_c_0a3726df____REV16 multiply defined (by dbg_trace_1.o and dbg_trace.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___11_dbg_trace_c_0a3726df____REVSH multiply defined (by dbg_trace_1.o and dbg_trace.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___11_dbg_trace_c_0a3726df____RRX multiply defined (by dbg_trace_1.o and dbg_trace.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol DbgTraceBuffer multiply defined (by dbg_trace_1.o and dbg_trace.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol DbgTraceGetFileName multiply defined (by dbg_trace_1.o and dbg_trace.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol DbgTraceInit multiply defined (by dbg_trace_1.o and dbg_trace.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___5_otp_c_OTP_Read____REV16 multiply defined (by otp_1.o and otp.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___5_otp_c_OTP_Read____REVSH multiply defined (by otp_1.o and otp.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___5_otp_c_OTP_Read____RRX multiply defined (by otp_1.o and otp.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___10_stm_list_c_64162740____REV16 multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___10_stm_list_c_64162740____REVSH multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___10_stm_list_c_64162740____RRX multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_get_next_node multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_get_prev_node multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_get_size multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_insert_head multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_insert_node_after multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_insert_node_before multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_remove_node multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol LST_remove_tail multiply defined (by stm_list_1.o and stm_list.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___11_stm_queue_c_ae3b15be____REV16 multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___11_stm_queue_c_ae3b15be____REVSH multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol __asm___11_stm_queue_c_ae3b15be____RRX multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_Add multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_Empty multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_Init multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_NbElement multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_Remove multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_Remove_Copy multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_Sense multiply defined (by stm_queue_1.o and stm_queue.o).

SH_V2_BLE\SH_V2_BLE.axf: Error: L6200E: Symbol CircularQueue_Sense_Copy multiply defined (by stm_queue_1.o and stm_queue.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 36 error messages.

"SH_V2_BLE\SH_V2_BLE.axf" - 36 Error(s), 1 Warning(s).

Target not created.

Build Time Elapsed: 00:00:05

This topic has been closed for replies.

7 replies

Khouloud OTHMAN
Associate
April 10, 2020

Hello F F,

Can you share your ioc file in order to check the issue?

Thanks,

Khouloud.

F F
F FAuthor
Associate III
April 10, 2020

Here the P2P default ioc file attached, in below my custom one.

F F
F FAuthor
Associate III
April 10, 2020

Attached the ioc file with custom 2 services with each 2 charasteristics.

Khouloud OTHMAN
Associate
April 10, 2020

Hi,

Thanks for your feedback, issue confirmed, it is raised internally for fix.

Best Regards,

Khouloud.

F F
F FAuthor
Associate III
April 10, 2020

great, thanks!

eddie McS
Associate II
July 8, 2020

Has there been a solution found for this issue? Im still having this issue with the latest Cube.

Thanks