cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 with Cubemx Adafruit FRAM MB85RC256V I2c

A Bravos
Associate III
Posted on May 13, 2018 at 20:35

I'm new to stm32.

I would like to find write / read code I2C for the Adrafruit Fram MB85RC256V, with Keil + CubeMx.

Thank you very much in advance.

Bravos

5 REPLIES 5
Posted on May 13, 2018 at 21:02

Which STM32, there are like a dozen families, and hundreds of parts?

The HAL examples and BSP should contain multiple examples of using I2C peripherals and parts (touch screen controllers, EEPROMs, etc). Apply the I2C access routines to the specifics of your chosen part.

STM32Cube_FW_F4_V1.21.0\Drivers\BSP\STM32F401-Discovery\stm32f401_discovery.c

static void I2Cx_WriteData(uint16_t Addr, uint8_t Reg, uint8_t Value);

static uint8_t I2Cx_ReadData(uint16_t Addr, uint8_t Reg);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
A Bravos
Associate III
Posted on May 13, 2018 at 23:23

Thanks for the answer.

Right now I'm only interested in a stm family, which is stm32f103.

Bravos

Posted on May 13, 2018 at 23:37

That would be the original F1 family, bit antiquated at this point.

Download the CubeF1 package and review the board and example code in the trees.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 14, 2018 at 10:56

Thanks Clive One

I'll unload the package and try to do something.

Bravos

Posted on May 14, 2018 at 13:54

the fram emulates a eeprom for the most part