9 years, 4 months ago.

FRDM-FXS-MULTI on FRDM-KL25Z

Hello everybody,

I am currently trying to get the FRDM-FXS-MULTI and the FRDM-KL25Z to work with mbed. Unfortunately it does not seem to be as striaght forward as I thought. I tried both example projects:

https://developer.mbed.org/teams/shields/code/Freescale_Multi-Sensor_Shield/

http://developer.mbed.org/users/JimCarver/code/Multi-Sensor/

But the only sensors that appear to work/return values other than 0 (in both projects) are the FXLS8471 and MMA8652 accelerometers. Also the only sensor that returns a valid "Who am I" (device id register) value is the FXLS8471 (0x6A) which is connected via SPI - all other sensors utilize I²C. All other sensors return 0 for the "Who am I" calls except for the FXAS21000 which returns 0x1B or 0xDF at random (looks like an I²C problem...)

On a side note: The SD-Card slot (connected via SPI) on the board works flawlessly, so essentially every device on the board that is connected via SPI works, while every I²C device does not - did I miss some configuration?

Any help would be greatly appreciated.

Question relating to:

Today I had my first chance to play with the board.

By modifying the main.cpp as follow, most of sensor is returning the value(s) MAG3110, MPL3115A2 returns "who am I" as 0 though.

/media/uploads/Rhyme/modified_part_of_main.jpg

moto

posted by Motoo Tanaka 27 Jan 2015

1 Answer

9 years, 1 month ago.

Remove R24 on the FRDM-KL25Z board http://developer.mbed.org/questions/5703/Which-one-is-R24/

or use another I2C interface for FRDM-MULTI board instead of I2C1 because I2C1 SCL pin (Arduino A5) can be used as RTC_CLKIN and 32kHz goes there through R24 from U6 "OpenSDA interface" http://developer.mbed.org/users/kayekss/notebook/shields-kl25z/ http://cache.freescale.com/files/soft_dev_tools/hardware_tools/schematics/FRDM-KL25Z_SCH.pdf http://developer.mbed.org/questions/4271/Pin-out-picture-need-to-be-updated/