need advice on windows

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
geoffrey.brown
Posts: 122
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 18 times

need advice on windows

Post by geoffrey.brown »

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
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: need advice on windows

Post by steved »

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:

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.
geoffrey.brown
Posts: 122
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 18 times

Re: need advice on windows

Post by geoffrey.brown »

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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: need advice on windows

Post by Giovanni »

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