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


path errors when runing tutorial

I used the latest 64 bit installer for windows 7, to load ac6 I; have windows 10, 64 bit. I did the update. I ran the tutorial, to create a simple ‘Hello World’. Everything goes along fine until I get to the last part of the setup it will not let me click on ‘Finish’. It forces me to go to ‘Cross GCC Command’; I do not have a clue what to do here, so I click ‘finish’. Needless to say I get path errors. I leave I set it up right according to the instructions, so the path should have been set up by the installer. I tried it on three computers all the same. Any ideas? Thank you.

Hi Free !

Can you send me exactly the steps you follow ?
Thank you

Christelle


Christelle:

File > New > Project

New Project window
C/C++ > C++ Project > Next.

C++ Project window
Add Project name
Hello World C++ Project > Next

Basic Properties window
Next

Select Configurations window
Finish (but it will not let me, so I click Next)

Cross GCC Command window
? > Finish

Hello opens with 5 errors; first being “Program G++ not found in PATH”

Thank you,
ƒree

Hi Free,

If you want to create a STM32 executable project, in the “New Project” window you must select “Ac6 STM32 MCU Project” under the “Executable” section. And choose the Ac6 STM32 MCU GCC from the displayed toolchain list.

Otherwise, for a simple c++ executable project you need to have a GCC toolchain installed on your machine

BR,
Elliot

Robert:
In the C++ Project window two tool chains are listed one being Cross GCC; when the Hello is selected Cross GCC is auto selected. The other is Ac6 STM32 MCU GCC. So I would assume that the tool chain is there. Secondly, secondly I used the latest installer which installer the necessary tool changes (I would thank) to run the examples in the help. Again, I would assume the tool chain is there. I followed directions the directions and no tool chains were called for. If it needed something it would stop and ask for it, like a update to java. No tool chains were ever asked for in the set up.
I do not know how to set up a MCU but I did try it best I know and I got several worming with out any code being present.
I thank you for taking the time to review my set up for Hello.
ƒree

Free,

I’m not sure to understand what is your goal.

The System Workbench for STM32 is an IDE based on Eclipse with a set of plugins in order to create, to build and to debug project for your STM32-based targets.
Which means it includes a specific toolchain named “Ac6 STM32 MCU GCC”.

If you want to execute your hello world project on a STM32 target, you need to create the project using the project type “Ac6 STM32 MCU Project” with the associated toolchain.
See the screenshot:
Project Window
This project type will create for you the proper build configuration and also specific files in function of the selected target.

If your goal is to create and execute a c++ project on your local machine (not on embedded target), you need to use a GCC toolchain. In the case of you are on Windows, you can find a GCC toolchain by installing Mingw.

Hope this helps,
Elliot

Robot:

Note, I replied the wrong way so i reposting this as a reply so you way get this twice. not sure how this works.

My goal is to use both. You have the correct window; before i select a project both tool changes are there on the right, It auto selects the correct tool chain. If i chose ac6 project it gos to the the ac6 tool chain as you show (have not learned how to use this yet) and if i loads the ac6 tool chain it gives lot of warnings. I will get back to this when i get use to working with C++.with Hello. If I do not understand how to use a simple Hello on system workstation i will be even be more lost using the ac6 tool chain. I followed in example in the help but it does not work as per example as explained above.

Thank you,
ƒree

Free,

Ok I get your goal now.
So, the System Workbench for STM32 does not include a GCC toolchain, only the toolchain for stm32-based targets.

When you select the project type : “Hello World C++ Project” the first entry in the toolchain list is selected by default (here Cross GCC):
Project Window 2
But a cross gcc compiles code for a different kind of system than yours, it is not your “first” goal. And if you click on the next button you can see three page later that it asks you to provide the path to the cross compiler.
Cross Gcc Window
If you want to compile for your system you need to use a GCC toolchain which it is not included by default in the System Workbench (for some good reasons).
That is why you need to install the gcc toolchain in addition to the System Workbench. And on the Windows system you can find a gcc toolchain by installing Mingw.
I invite you to read this page: http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fconcepts%2Fcdt_c_before_you_begin.htmQuestion

Concerning the lot of warnings that you have with the Ac6 toolchain, post your warnings here and we help you.

BR,
Elliot

Robot:

0k we are getting somewhere, thanks. Strange that the example is there and gcc in the setup; and the installer did not install the tool chain. (you said “for some good reason” - 0 well) So it is it is clear now i need to install the toolchain - is their a good place to install it in ac6 or just put in on the C: drive? May be a two days before i can read the warnings and install the chain, so if you will stand by.

Thank you for sticking with me on this,
ƒree

Free,

I suggest you to install the toolchain somewhere outside ac6 folder in case of you remove/update the system workbench.

For me it is no wonder that the toolchain is not present in the System Workbench because
- the toolchain’s size is not petty
- I think version management can be problematic
- and the first goal of the System Workbench for STM32 are the STM32 targets.
Anyway even when you download a standard Eclipse with CDT the toolchain is not present.
Ok for the warnings.

Elliot


Robert:

My goal is to use both. You have the correct window; before i select a project both tool changes are there on the right, It auto selects the correct tool chain. If i chose ac6 project it gos to the the ac6 tool chain as you show (have not learned how to use this yet) and if i loads the ac6 tool chain it gives lot of warnings. I will get back to this when i get use to working with C++.with Hello. If I do not understand how to use a simple Hello on system workstation i will be even be more lost using the ac6 tool chain. I followed in example in the help but it does not work as per example as explained above.

Thank you,
ƒree

Robot:
Well I finely got some time to work on this. It works Thank you.

I did read “Before you begin” before an here is what gave me the problem, it said: “Depending on how you obtained the CDT, you might have also received a toolchain with a built-in CDT integration.” On the window were I select Hello World, Cross Gcc is there and it is left after I select Hello World. So I think Gcc came with ac6. Nothing there to say it is not: but all is there that indicates that it is to me.

Thank you for your time,
ƒree


wor


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  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. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs