Why would my HMC8853L compass not be working on my STM32F446RE?

Thread Starter


Joined Mar 14, 2019
Hi everyone, I have been really struggling to get my compass up and running, it is mounted on a GY-271 breakout board. The code that I have been using is attached and well commented. If Anyone can maybe spot what I am doing wrong, that would help a lot. I get values out, but they make no sense. The project name is LCD_test, but please just ignore it, the code is for the compass. The project zip file and compass datasheet is attached.

Thanks in advance.