Introduction
This example demonstrates probing of sensor via I2C and read data from it. The application reads data from the temperature sensor in the EVM. Application reads 20 samples from the sensor and exits.
Supported Combinations
Parameter | Value |
CPU + OS | mcu-r5fss0-0 nortos |
wkup-r5fss0-0 freertos |
Toolchain | ti-arm-clang |
Boards | am62px-sk |
Example folder | examples/drivers/i2c/i2c_led_blink |
Steps to Run the Example
- Attention
- As the wake-up R5 is the device manager, it needs to be started by the SBL. So it can not be loaded through CCS. It should be flashed and booted through SBL.
See Also
I2C
Sample Output
Shown below is a sample output when the application is run,
[I2C] Temperature sensor found at device address 0x48
[I2C] Sample 0: 39.000000 (celcius)
[I2C] Sample 1: 39.000000 (celcius)
[I2C] Sample 2: 39.000000 (celcius)
[I2C] Sample 3: 39.000000 (celcius)
[I2C] Sample 4: 39.000000 (celcius)
[I2C] Sample 5: 39.000000 (celcius)
[I2C] Sample 6: 39.000000 (celcius)
[I2C] Sample 7: 39.000000 (celcius)
[I2C] Sample 8: 39.000000 (celcius)
[I2C] Sample 9: 39.000000 (celcius)
[I2C] Sample 10: 39.000000 (celcius)
[I2C] Sample 11: 39.000000 (celcius)
[I2C] Sample 12: 39.000000 (celcius)
[I2C] Sample 13: 39.000000 (celcius)
[I2C] Sample 14: 39.000000 (celcius)
[I2C] Sample 15: 39.000000 (celcius)
[I2C] Sample 16: 39.000000 (celcius)
[I2C] Sample 17: 39.000000 (celcius)
[I2C] Sample 18: 39.000000 (celcius)
[I2C] Sample 19: 39.000000 (celcius)
All tests have passed!!