9 years, 4 months ago.

FRDM-K22F problem with i2c HMC6343 Compass

I try this sensor on LPC1768 and nucleo F401,411 work well.

But on K22F when I power up terminal show only first string work right (heading, pitch,roll) all next strange 0 0 835

234 4 -51 0 0 835 0 0 835

if reset mcu first string show 0 0 0

0 0 0 0 0 835 0 0 835 0 0 835

Have you any idea?

Question relating to:

The FRDM-K22F is an ultra-low-cost development platform for Kinetis K Series K2x (K22F) MCUs built on ARM® Cortex™-M4 processor. Features include easy access to MCU I/O, battery-ready, low-power operation, a …

1 Answer

9 years, 4 months ago.

Are you using latest mbed library? Even if yes I don't know if that one includes latest I2C fixes which were implemented. Try deleting your mbed lib and importing: http://developer.mbed.org/users/mbed_official/code/mbed-src/

I used latest version mbed-src

posted by Dmitry Dzhafarkhanov 13 Dec 2014