Page 2 of 2

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Sun Jul 25, 2021 9:29 am
by zilion
EV_Builder wrote: Sat Jul 24, 2021 7:10 pm I'm still on windows 7 will it work on that?
Your question is not obvious what you mean.
Python is required in "make deps" which uses python script to download libs.
You have to have python in your system and pointed in your system PATH.
To check if it's visible, run CMD and put "python --version"

Or you can download Johannes libopencm3 manually from his repo and put in place. See .py script in editor.

If you talking about Chocolatey
Know the Requirements:
Windows 7+ / Windows Server 2003+
PowerShell v2+ (minimum is v3 for install from this website due to TLS 1.2 requirement)
.NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)(minimum is 4.5 for install from this website due to TLS 1.2 requirement)

install python 3.9.3 in chocolatey:
"choco install python"

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Wed Jul 28, 2021 9:48 pm
by EV_Builder
Yes indeed! From Johannes is a new tip.
Will try that!

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Sat Jul 31, 2021 7:32 pm
by EV_Builder
Ok i build opencm3 with msys unther windows. Single threaded but atleast it works!

Next step is make it all work in vscode (the stm32_vcu doesn't need python) so i hope the compiler is enough.

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Sun Aug 01, 2021 12:29 am
by EV_Builder
it works i can compile with VSCode...next step debugging...

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Sun Aug 01, 2021 11:01 pm
by EV_Builder
arturk wrote: Mon Jul 12, 2021 10:27 pm Also to allow debugging additional information has to be included in .elf files. This information is generated by adding additional compiler flag "-d". In my attached Makefile for ZombieVerter project (I had to add .txt) look at lines 33 and 36. This is really the only change I found necessary in the Makefile.

Make a note of SVD file which is very handy for debugging:

Code: Select all

"svdFile": "./STM32F107.svd"
Those can be downloaded directly from ST website. I have attached zip for F1 family.
you say "-d" but your makefile has "-g"


i get it to jump directly in the reset_handler and then it stops.. so a breakpoint in main isn't triggered and i doubt if its reached...

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Mon Aug 02, 2021 1:10 am
by arturk
EV_Builder wrote: Sun Aug 01, 2021 11:01 pm you say "-d" but your makefile has "-g"
Right, I meant "-g", my bad. Makefile is correct as you may have guessed.
EV_Builder wrote: Sun Aug 01, 2021 11:01 pm i get it to jump directly in the reset_handler and then it stops.. so a breakpoint in main isn't triggered and i doubt if its reached...
I observed similar behaviour without "-g" switch, adding it fixed problem.
Also, what interface are you using to connect to board? I was using cheapo Chinese ST-Link stick.

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Mon Aug 02, 2021 3:34 pm
by EV_Builder
arturk wrote: Mon Aug 02, 2021 1:10 am
EV_Builder wrote: Sun Aug 01, 2021 11:01 pm you say "-d" but your makefile has "-g"
Right, I meant "-g", my bad. Makefile is correct as you may have guessed.
EV_Builder wrote: Sun Aug 01, 2021 11:01 pm i get it to jump directly in the reset_handler and then it stops.. so a breakpoint in main isn't triggered and i doubt if its reached...
I observed similar behaviour without "-g" switch, adding it fixed problem.
Also, what interface are you using to connect to board? I was using cheapo Chinese ST-Link stick.
yupsz St Link cheapo with latest firmware in it. mhh i will need to re-check.

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Mon Aug 02, 2021 11:41 pm
by jon volk
Was the bootloader flashed first?

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Tue Aug 03, 2021 1:26 pm
by arturk
jon volk wrote: Mon Aug 02, 2021 11:41 pm Was the bootloader flashed first?
It was in my case.

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Thu Oct 07, 2021 10:00 am
by EV_Builder
arturk wrote: Tue Aug 03, 2021 1:26 pm
jon volk wrote: Mon Aug 02, 2021 11:41 pm Was the bootloader flashed first?
It was in my case.
Mhhhhh that might be the issue what i had left then.
I will check soon and report.

I didn't start with code generation yet so that's perfect/lucky.

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Sat Oct 09, 2021 5:50 pm
by EV_Builder
Ok seems to work now... still when it starts in enters that reset_handler asm assembler but if you breakpoint in Main() and let it run it gets there and you have visual guidance.

Now i can participate. :) :D :) :) :D

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Thu Jan 20, 2022 1:19 pm
by dkmorb
Hi all,
following the instructions given above, I was able to compile by Visual Studio Code the project for stm32f103 on my windows 10 client.
I would like to understand if the files size is normal (see attached image).

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Fri Jan 21, 2022 10:57 am
by johu
My bin is 49k, elf 382k

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Fri Jan 21, 2022 12:44 pm
by dkmorb
I'm completely wrong :roll:
Sorry guys, i would like to know where i can find the source code for stm32f103 ... Is it still in https://github.com/jsphuebner/stm32-sin ... epill-test repo?
Thanks!

Re: STANDARD WINDOWS IDE FOR STM32

Posted: Sat Jan 22, 2022 10:12 am
by dkmorb
Fantastic, I'm able to build stm32-sine firmware using msys2 and mingw toolkit.
Now i've to check if it works on bluepill ;)