STANDARD WINDOWS IDE FOR STM32

User avatar
zilion
Posts: 58
Joined: Tue Feb 02, 2021 7:50 am
Location: Poland

Re: STANDARD WINDOWS IDE FOR STM32

Post 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"
I smell lithium in the air. It's not lithium, it's glycolium.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post by EV_Builder »

Yes indeed! From Johannes is a new tip.
Will try that!
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post 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.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post by EV_Builder »

it works i can compile with VSCode...next step debugging...
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post 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...
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: STANDARD WINDOWS IDE FOR STM32

Post 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.
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post 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.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: STANDARD WINDOWS IDE FOR STM32

Post by jon volk »

Was the bootloader flashed first?
Formerly 92 E30 BMW Cabrio with Tesla power
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: STANDARD WINDOWS IDE FOR STM32

Post by arturk »

jon volk wrote: Mon Aug 02, 2021 11:41 pm Was the bootloader flashed first?
It was in my case.
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post 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.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post 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
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
dkmorb
Posts: 3
Joined: Thu Jan 20, 2022 1:01 pm

Re: STANDARD WINDOWS IDE FOR STM32

Post 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).
Attachments
img.png
img.png (7.46 KiB) Viewed 2294 times
User avatar
johu
Site Admin
Posts: 5683
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: STANDARD WINDOWS IDE FOR STM32

Post by johu »

My bin is 49k, elf 382k
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
dkmorb
Posts: 3
Joined: Thu Jan 20, 2022 1:01 pm

Re: STANDARD WINDOWS IDE FOR STM32

Post 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!
dkmorb
Posts: 3
Joined: Thu Jan 20, 2022 1:01 pm

Re: STANDARD WINDOWS IDE FOR STM32

Post 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 ;)
Post Reply