Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Firmware for STM32F103C8T6 built from SW4STM32 does not work

Firmware for STM32F103C8T6 built from SW4STM32 does not work.

I made project by using STM32CubeMX (latest version).
I imported the project in SW4STM32, built a firmware without error, and download to my F103 board.
However, the firmware didn’t work.

Thus, I tried building the firmware using both MDK-Keil and TrueStudio.
In case of TrueStudio, a firmware build from TrueStudio also didn’t work.
In case of MDK-Keil, a firmware built from MDK-Keil worked well.

Only, the firmware built form MDK-Keil worked well.

I’ve tried with STM32F303VCT6.
All firmwares built from three IDEs workd well.

In there someone overcomes this problem?
I didn’t discover who has trouble with this problem by googling.

Hi dh8607,

can you confirm whether you are using STM32F103c8t6 or STM32F103cBt6?

coz both of them are different and the firmware for one board might not work for other.

Thanks and regards,
Likith Sai

I’ve got Aliexpress blue pills that I swear are marked C8T6 but actually ID as CBT6’s - 64 k vs 128 k flash.
The console window down the bottom will tell all as STink queries the device.
I had to recompile as a CB to get it to work.
When I migrated the cubeMX code (tutorial 5 in UM1718) the clock page said there was a configuration error and I clicked ok to auto fix it - no idea what it was.

Thank you for your answer.
It’s my mistake. My chip is F103C8T6 (64kB).
I changed the setting of STM32CubeMX from F103CBT to F103C8T.
However, firmware built from SW4STM32 still does not worked.
In addition, firmware built from MDK-Keil still worked.


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.htmlQuestion
) 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 ...

I found what is a problem.
I post it, because there are newbie like me :-)
I take code from some example.

It is necessary to call function

HAL_Init();

And function SystemClock_Config();

There is listing of function SystemClock_Config()
Looks like this function setup processor

void SystemClock_Config(void)
{
RCC_ClkInitTypeDef clkinitstruct = {0};
RCC_OscInitTypeDef oscinitstruct = {0};

/* Enable HSE Oscillator and activate PLL with HSE as source */
oscinitstruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
oscinitstruct.HSEState = RCC_HSE_ON;
oscinitstruct.HSEPredivValue = RCC_HSE_PREDIV_DIV2;
oscinitstruct.PLL.PLLState = RCC_PLL_ON;
oscinitstruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
oscinitstruct.PLL.PLLMUL = RCC_PLL_MUL6;
if (HAL_RCC_OscConfig(&oscinitstruct)!= HAL_OK)
{
/* Initialization Error */
while(1);
}

/* Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2
clocks dividers */
clkinitstruct.ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2);
clkinitstruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
clkinitstruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
clkinitstruct.APB2CLKDivider = RCC_HCLK_DIV1;
clkinitstruct.APB1CLKDivider = RCC_HCLK_DIV1;
if (HAL_RCC_ClockConfig(&clkinitstruct, FLASH_LATENCY_0)!= HAL_OK)
{
/* Initialization Error */
while(1);
}
}