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


NVIC causes a hardware fault

I have come to System Workbench after using Coocox. The target board uses a STM32F030C8T6 chip on a custom board. I ported the working code from Coocox to System Workbench as a trial to gain familiarity with the development environment. However I have run into a problem where the code crashes when the NVIC_Init for a USART1 port is envoked.

NVIC_InitTypeDef NVIC_InitStructure;

// Enable SYSCFG clock
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);

NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);

Does anybody have any idea why this is happening?

Found the problem. The startup_stm32.s file was missing vectors and interupt handlers. I compared the AC6 version with ST version and there were quite a few discrepancies. A working example can be found at https://github.com/szczys/stm32f0-discovery-basic-template/blob/master/Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/TrueSTUDIO/startup_stm32f0xx.s”Question rel=”external”> https://github.com/szczys/stm32f0-discovery-basic-template/blob/master/Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/TrueSTUDIO/startup_stm32f0xx.sQuestionQuestion