Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

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);
}
}
//---------------------------------------------

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs