2023-02-24 01:11 PM
I currently need a simple string to double/float function. For this I use atof() or strtod(). However whenever I call these functions the BLE advertisement stops and I cannot further connect to the WB.
Does someone have the same problem?
2023-02-24 01:57 PM
>>Does someone have the same problem?
Diagnose the problem you have.
Stop in the debugger, see were the MCU is stuck
Instrument the Hard Fault Handler so it doesn't fall in there and silently die...
If this is a STM32WB with an M4, make sure the FPU is enabled if you're using it, or the libraries use or expect it.
2023-02-24 02:35 PM
I did stop the debugger multiple times, but no error handler was triggered, and the code seems to run nominally.
I also have similar this kind of issue when enabling the flag to print float in string using sprintf.
I use a wb15cc I think it has a m4 for the BLE part. I will have a look to the FPU. I didn't know it needs to be enabled
2023-02-25 12:39 AM
I checked the FPU the hardware one is enabled by default. I tried the software one but doesn't work either. It seems that there is a mismatch between the RF Core and the Application Core. Is the Stack binary compiled with floating point flag? Actually my app is running by it doesn't tell the wireless stack to start advertising.
2023-02-25 12:46 AM
After sime further try and error I could run the advertising and the FPU by setting the runtime library to standard C. The question now why is this so?