I've been teaching an IoT course, but covid-19 sent everybody home. Our lab was set up with Macs and I also use Linux. Unfortunately, some students use windows. I'm not a windows user, but have a wimpy windows laptop/book to use. I'm stuck a little on the following
- used chocolaty to install gnu make and openocd
- installed git from the installer
- installed ChibiOS from git repo
- installed gnu-arm tools
- installed stlink driver
When I run make from the powershell, I get a message about 'cat' not installed. I also need to figure out what to tell them so that make can find arm-none-eabi-xxx.
I'm looking for the shortest path that I can tell my students so they can run make to build their code.
The unix world is so much easier !
Geoffrey
need advice on windows
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
Re: need advice on windows
I suspect installing ChibiStudio would get a lot of things in consistent places, even if you don't use Eclipse. I've just tried this:
1. Install ChibiStudio by expanding the archive in the root directory of C: or D: drive
2. Create a batch file start_project.bat (wherever suits) as follows:
3. Open a Command Prompt in Windoze.
4. Run the batch file.
That leaves you in the project directory, with at least most of the paths set up. Certainly running 'make' appeared to work.
I think you'll need to install STLink separately to get the debugger driver.
1. Install ChibiStudio by expanding the archive in the root directory of C: or D: drive
2. Create a batch file start_project.bat (wherever suits) as follows:
Code: Select all
@echo off
set FMPP=C:\ChibiStudio\tools\fmpp\bin\fmpp.bat
set OPENOCD=C:\ChibiStudio\tools\openocd\bin\openocd.exe
set PATH=C:\ChibiStudio\tools\gnutools\bin;%PATH%
set PATH=C:\ChibiStudio\tools\openocd\bin;%PATH%
set PATH=C:\ChibiStudio\tools\GNU Tools ARM Embedded\7.0 2017q4\arm-none-eabi\bin;%PATH%
set PATH=C:\ChibiStudio\tools\GNU Tools ARM Embedded\7.0 2017q4\bin;%PATH%
rem cd eclipse
rem start eclipse.exe
C:
CD C:\ChibiStudio_21\workspace_user\proj_dir
3. Open a Command Prompt in Windoze.
4. Run the batch file.
That leaves you in the project directory, with at least most of the paths set up. Certainly running 'make' appeared to work.
I think you'll need to install STLink separately to get the debugger driver.
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
Re: need advice on windows
I appreciate the help, but that didn't get me very far. The standard makefile tried to create directories with unix paths and none of that worked. I'm not prepared to create a different set of make files to enable compilation is a windows environment, so I'm not sure how to proceed.
Geoffrey
Geoffrey
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: need advice on windows
The standard makefiles work perfectly under windows using the tools provided in ChibiStudio (make etc), you can definitely compile from the command line.
Make sure to use the right make and unix-like commands (the ones from MinGW).
Giovanni
Make sure to use the right make and unix-like commands (the ones from MinGW).
Giovanni
Who is online
Users browsing this forum: No registered users and 43 guests