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


one line of code crashes everything, regardless of what the line of code is.

Hey guys. So here is my issue and I have been battling with this for 5 days trying to resolve it on my own but the solution evades me.
I also apologize I do not know how to post code in this forum, I am looking at the buttons on this editor and I do not see a code input option so i will post it as plain text.

if there are any typos in this code its because i just manually typed it because my real code is on my laptop
So here is the issue; the code as is works fine, however if UNCOMMENT the int x = 1
it does not work, I get absolutely nothing on my serial capture program.
I also tried blinking an LED after my putchar call to see if the program still works and maybe its just USART that messes up
but nope nothing works.
If I add ANY code of anytype before the call to putchar it does not work, if i have nothing before the function call it works as it should!

I set up my project as a custom board, through trial and headache I found out the a custom board has a mostly empty vector table and that I have to populate it on my own, but this is not the case here since the code works fine in that previously mentioned cases.

What could the issue be? some environment variable issue? memory mapping perhaps?

In conclusion , I have tested the exact same code word for word, all the same files and libraries
and it works flawless in Keil and Embitz....so what it HAS to be an IDE setting
//---------------------------------------------
char test[] = “hello openstm32” ;
while(1)
{
//int x = 1;

putChar(test,sizeof(test)-1);

delayMs(1000);

}

void putChar(char *data, int len)
{
for(int i = 0; iDR = (datai & (int) 0xFF);
}
}
//---------------------------------------------