2021-05-01 09:23 AM
I am using STM32F767ZIT for sensing of temperature using DS18B20 and displaying it on a 5 inch LCD using STemwin. My problem is that when CPU caching is enabled the DS18B20 is unable to fetch any reading(it shows 4095.5 °C which false reading) while when caching is disabled it works perfectly fine. I am using microsecond delay generation using timers of STM32 for temp sensing.
2021-05-02 04:46 AM
Revisit your code. look where variables are placed, double check if you use DMA.
2021-05-02 05:36 AM
Means how it affects the placement?? All my variables are stack variables(local function scoped) only.
2021-05-02 06:56 AM
So is the problem difference in speed or cache coherency?
Using DMA?
What does the signal look like on a scope?
Confirm timing/delay loops with GPIO toggle