Closed IC-killer closed 6 months ago
Hi @IC-killer,
As you mentioned, structure member sysevt_ready_rsp
is an enumeration, as shown below.
Its value is checked against the two values the enumerated type could take, as shown below.
You mentioned an exception. Could you please share the error message you got please? Thank you.
By the way, you mention you are using version 1.17.3 of the STM32CubeWB firmware. Current version is 1.19.0.
With regards,
After using an enumeration type with the int width, the program fails to enter the correct if statement branch.
When the execution reaches this point, the value of p_sys_ready_event->sysevt_ready_rsp
is 0x38000000. I'm not sure about the meaning of the high byte 0x38, it exceeds the range of a char-width enumeration type. so I temporarily dealt with it using "&0xFF". Version 1.19 has the same issue.
Thank you for your reply.
Hi @IC-killer,
We could not reproduce the issue you described. Regarding option Short enums/wchar
, you should leave it checked as the original configuration the project file has been delivered with.
Please allow me to close this issue. Thank you for your comprehension.
With regards,
Describe the set-up STM32WB55CGU6 (Custom board) STM32Cube_FW_WB_V1.17.3 (stm32wb5x_BLE_Stack_full_fw.bin, stm32wb5x_FUS_fw.bin) keil MDK v5.37
Describe the bug Incompatible wide enumeration types The initialization of Bluetooth using wchar will not be successful.
I found the exception here: Application/User/Core/app_entry.c --> static void APPE_SysEvtReadyProcessing(void * pPayload), p_sys_ready_event->sysevt_ready_rsp is an enum type, I have already processed it with &0xff, but I'm not sure if there are any other impacts.
How To Reproduce Uncheck this:
Additional context
Screenshots If applicable, add screenshots to help explain your problem.