I have a OneWire protocol library for a DS18B20 sensor, that works ok on PIC and AVR, and even on STM32 micros when using LL driver. I converted the library for the SPL driver and… it trows a “bad data” error!
The code written for LL driver works ok. So I thought that my my_delay_us function might be the culprit. Increasing the speed, the library reads data ok from the temperature sensor, but makes the 2×16 LCD unstable. So I blindly tinkered with the timings (no oscilloscope here) in the OneWire library until I got it right. Now both, the LCD and the OneWire are working ok. But I will note the old delay values in comments next to the new values for others to make changes if the old ones were better for them.
Just to be sure, I changed two toolchains… same result.