Skip to main content
A Bravos
Associate III
May 13, 2018
Question

stm32 with Cubemx Adafruit FRAM MB85RC256V I2c

  • May 13, 2018
  • 2 replies
  • 1420 views
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

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 13, 2018
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    A Bravos
    A BravosAuthor
    Associate III
    May 13, 2018
    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

    Tesla DeLorean
    Guru
    May 13, 2018
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    A Bravos
    A BravosAuthor
    Associate III
    May 14, 2018
    Posted on May 14, 2018 at 10:56

    Thanks Clive One

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

    Bravos