STM32F4DISCOVERY template project compile error

Comments

4 comments

  • Avatar
    Michael Johnson
    • We need to release the library package to work with the latest ST CMSIS STM32F4 header file - for the moment you can change it locally to

      void
      platform_write_digital_pin(int pin, int value)
      {
      GPIO_TypeDef *port = STM32_PORT_BASE(pin >> 4);
      if (value)
      port->BSRR = 1 << (pin & 0xf);
      else
      port->BSRR = (1 << (pin & 0xf)) << 16;
      }

    0
    Comment actions Permalink
  • Avatar
    Scot Kornak

    The above BSRR register fix works and allow the STMicro discovery board examples to compile.  The non-LCD examples seem to work.

    However, when running the STM32F429i-Discovery module LCD examples, there is a runtime error that pops up on the debug console as follows:

    "platform_configure_i2c_bus(0)  API call fail which is unexpected. Please check connections and retry."

    This occurs with projects "Sensors - Compass on LCD" and "AHRS - Wireframe Rotation on LCD".

    0
    Comment actions Permalink
  • Avatar
    Hyon Lim

    Thanks! problem solved.

    0
    Comment actions Permalink
  • Avatar
    Hyon Lim

    @Scot Kornak

    I have a same problem! Any solutions?

    0
    Comment actions Permalink

Please sign in to leave a comment.