cancel
Showing results for 
Search instead for 
Did you mean: 

adxl sends garbage via I2c2 to blue pill

ASzcz
Associate II

hello, i connect a stm32f103 and adxl345 and now I see a something without utf8 - range, and those changes when i movie a sensor.

whats's wrong with code?

3 REPLIES 3

What do you mean "utf8-range"? Are you expecting the data to be a readable string? The transmitted data is in raw bytes. Check out the datasheet to get the register addresses, their sizes and data types.

https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf

ASzcz
Associate II

I know it

there is what I see in USART2

USART 2 is ready.

 I2C 2 is ready.

Read Value ... 

Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.Ä.

ASzcz
Associate II

wona see a code?