Skip to main content
Associate
July 2, 2024
Solved

Changing I2C Address for Accelerometer Sensor and Initialization Query

  • July 2, 2024
  • 2 replies
  • 1081 views

I have a BMA5 accelerometer sensor and I want to change its I2C address. I have enabled I2C1 in cubemx and set pull-up for SDA and SCK lines. I need guidance on the program algorithm and cubemx setting for this task as I am new to this field. Also, I would like to know, do I have to initialize the I2C1_init() again after setting the new address. Thank you.

Best answer by Jacob WOODRUFF

Hi Azad,

 

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

 

Regards,
Jake

ST Support

2 replies

Jacob WOODRUFFBest answer
ST Employee
July 3, 2024

Hi Azad,

 

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

 

Regards,
Jake

ST Support

Karl Yamashita
Lead III
July 3, 2024

There isn't a search result for a BMA5. You have a link to a datasheet?

 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source