Firmware for STM32F103C8T6 built from SW4STM32 does not work
Hello!
I have the same problem.
I use UBUNTU 16.04 64x.
I downloaded and install AC6 SW.
I try just create blink project to test software by code in main.c
I used buildin (downloaded from st.com
https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-mcu-packages/stm32cubef1.html
) firmware.
#include “stm32f1xx.h”
int main(void)
{
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Pin = GPIO_PIN_13;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, GPIO_PIN_SET);
for(;; )
{
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, GPIO_PIN_RESET);
HAL_Delay( 1000 );
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, GPIO_PIN_SET);
HAL_Delay( 1000 );
}
}
I can build project and get BIN file.
I flash it to chip by st-link
Chip does not work.
try to same with Arduino IDE with STRM32aduino plugin
void setup() {
pinMode(PC13, OUTPUT);
}
void loop() {
digitalWrite(PC13, HIGH);
delay(1000);
digitalWrite(PC13, LOW);
delay(1000);
}
chip does work well.
I have not ideas what I have to do with A6 SW ...