Skip to main content
ASzcz
Associate
February 21, 2019
Question

adxl sends garbage via I2c2 to blue pill

  • February 21, 2019
  • 3 replies
  • 971 views

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?

This topic has been closed for replies.

3 replies

After Forever
Senior III
February 21, 2019

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
ASzczAuthor
Associate
February 21, 2019

I know it

there is what I see in USART2

USART 2 is ready.

 I2C 2 is ready.

Read Value ... 

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

ASzcz
ASzczAuthor
Associate
February 21, 2019

wona see a code?