cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 5.6.0 (latest) Generated BLE projects cannot build!

F F
Associate II

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

7 REPLIES 7

Hello F F,

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

Thanks,

Khouloud.

F F
Associate II

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

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

I played around with a few more configurations. I now got the following output:

So it looks like the _1 files generated are causing this. After another build I got the erros back.

Maybe this will can help solve the root cause.

Build started: Project: SH_V2_BLE

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

Build target 'SH_V2_BLE'

linking...

SH_V2_BLE\SH_V2_BLE.axf: Warning: L6304W: Duplicate input file sh_v2_ble\dbg_trace_1.o ignored.

SH_V2_BLE\SH_V2_BLE.axf: Warning: L6304W: Duplicate input file sh_v2_ble\otp_1.o ignored.

SH_V2_BLE\SH_V2_BLE.axf: Warning: L6304W: Duplicate input file sh_v2_ble\stm_list_1.o ignored.

SH_V2_BLE\SH_V2_BLE.axf: Warning: L6304W: Duplicate input file sh_v2_ble\stm_queue_1.o ignored.

Program Size: Code=16176 RO-data=972 RW-data=3152 ZI-data=1408  

Finished: 0 information, 4 warning and 0 error messages.

FromELF: creating hex file...

"SH_V2_BLE\SH_V2_BLE.axf" - 0 Error(s), 4 Warning(s).

Hi,

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

Best Regards,

Khouloud.

great, thanks!

eddie McS
Associate III

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

Thanks