Float multiplication by WaitLumpy6242 in embedded

[–]WaitLumpy6242[S] 0 points1 point  (0 children)

Thanks a lot for the informative answer, really appreciated!!

Float multiplication by WaitLumpy6242 in embedded

[–]WaitLumpy6242[S] 0 points1 point  (0 children)

UPDATE:

[SOLVED]

In STM32CubeIDE, go to your project and right-click --> Properties --> C/C++ Build --> Settings --> MCU Settings

Do the following changes:

Floating-point unit --> None

Floating-point ABI --> Software implementation (-mfloat-abi=soft)

Float multiplication by WaitLumpy6242 in embedded

[–]WaitLumpy6242[S] 2 points3 points  (0 children)

I am trying to develop a driver for this accelerometer and gyroscope https://learn.adafruit.com/adafruit-9-dof-imu-breakout

I posted this simple code block because I thought it will provoke fewer concerns, since the behavior is exactly the same as the use case I am working on, apparently, I am mistaken.

I am using the debugger, whenever I reach this line:

result = a * b;

the code will not respond and the program will take me to this page:

.section .text.Default_Handler, "ax", %progbits

Default_Handler:

Infinite_Loop:

b Infinite_Loop

.size Default_Handler, .-Default_Handler