2024-04-01 10:27 PM
Hi,
When creating a custom template BLE app in CubeMX everything works fine while not changing the UUID of service1, it builds and compiles well. But if I change the UUID to my own UUID (with UUID 128 input type to full), after generating the new code an error pops up: undefined reference to `COPY_UUID_128'
It appears the macro COPY_UUID_128 is missing now, after I add it myself in the USER CODE area, it compiles again (custom_stm.c):
#define COPY_UUID_128(uuid_struct, uuid_15, uuid_14, uuid_13, uuid_12, uuid_11, uuid_10, uuid_9, uuid_8, uuid_7, uuid_6, uuid_5, uuid_4, uuid_3, uuid_2, uuid_1, uuid_0) \
do {\
uuid_struct[0] = uuid_0; uuid_struct[1] = uuid_1; uuid_struct[2] = uuid_2; uuid_struct[3] = uuid_3; \
uuid_struct[4] = uuid_4; uuid_struct[5] = uuid_5; uuid_struct[6] = uuid_6; uuid_struct[7] = uuid_7; \
uuid_struct[8] = uuid_8; uuid_struct[9] = uuid_9; uuid_struct[10] = uuid_10; uuid_struct[11] = uuid_11; \
uuid_struct[12] = uuid_12; uuid_struct[13] = uuid_13; uuid_struct[14] = uuid_14; uuid_struct[15] = uuid_15; \
}while(0)
Solved! Go to Solution.
2024-05-20 10:35 AM - edited 2024-05-20 10:44 AM
Hello @Remyhx @thealbertdev
Thank you so much for reporting this. I've reported this to the concerned team for correction on the coming releases after being able to reproduce it (under internal ticket number 181812).
Best Regard.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-02 12:41 AM
Hello @Remyhx
Could you send your original .ioc file and what are the modifications that you have done to have this error.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-02 09:26 AM
@STTwo-32 I did as you asked: when I changed the UUID 128 input type from reduced to full and enter the new UUID, generate the code files, it generates in custom_stm.c the correct UUID's... but without the macro COPY_UUID_128. If I copy this macro before the change and paste it in USER CODE, it will work. If I change the UUID 128 input type again back to reduced, it will put the macro back in.
The Links to the 'old' ioc and 'new' ioc: Google Drive
Image for clarity.
2024-04-18 06:10 AM
Same problem here.
2024-05-20 10:35 AM - edited 2024-05-20 10:44 AM
Hello @Remyhx @thealbertdev
Thank you so much for reporting this. I've reported this to the concerned team for correction on the coming releases after being able to reproduce it (under internal ticket number 181812).
Best Regard.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-23 09:38 AM
same problem as well! Mark