Can't use the Arduino Framework to code
One small issue I have. I have a custom STM32F411CEU6 board, quite similar to the WeAct Black Pill in terms of connections, except for the fact that I have a LED on pin PB13, and whenever I try to blink it using:
while (1)
{
/* USER CODE END WHILE */
HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_13);
HAL_Delay(500);
/* USER CODE BEGIN 3 */
}in the STM32CubeIDE, everything works fine and dandy
The moment i switch to using the Arduino Framework, albeit with the Arduino IDE or PlatformIO, with parameters of:
platform = ststm32
board = genericSTM32F411CEusing the code:
#define LED PB13
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}or anything similar, it just doesn't work! It always says the upload is successful, and it verifies successfully too! But why then, it refuses to work? Any suggestions?
