STM32F4DISCOVERY template project compile error
Hi,
I clean installed CrossWorks, and install only "STMicroelectronics STM32F4DISCOVERY Board Support Package".
But it couldn't be compiled. Have you ever checked compilation status of this project?
When I open template project, BSRRL, BSRRH error occurred.
Untitled2.png
-
-
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;
}
-
-
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".
Please sign in to leave a comment.
Comments
4 comments