I would like to use I2C burst read/write with the I2C2_SDA and I2C2_SCL pin s(RAK3172 breakout module) on STM32CubeIDE after getting the example project (LoRaWAN_End_Node) setup here: RAK3172 Module Low Level Development Reference | RAKwireless Documentation Center.
I am having trouble importing the correct libraries. I cannot find any instructions on how to accomplish I2C with this library in the docs. I mainly use MPLAB with PIC microcontrollers and Arduino wrappers for STM32 chips, so I do not really understand how to manually import libraries with the STM32CubeIDE. Any help and details would be greatly appreciated for the RAK3172 breakout module.
What I tried so far
I tried modifying the .ioc file to enable I2C, but this forces me to download version 1.1. It also has setup pin PA12 for I2C2_SCL and PA15 for I2C2_SDA, but I think looking at the schematic it should be PA11 for SDA. I tried modifying the version of the firmware package for 1.0, but other compilations issues came up when trying to recreate the code. I tried copying the Middleware examples for I2C, but the IDE didn’t pick up the I2C_HandleTypeDef, which I don’t think would be configured correctly because the microcontrollers is different than the original one this firmware was originally based on.
Thank you all in advanced for any help given.