arduino / arduino/ArduinoCore-mbed

Compile repository in Windows

Open
#539 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
411
Forks
225
PR merge metrics
No merged PRs in 30d

Description

I need to rebuild libmbed.a (for a new mbed_app.json file entry that requires a rebuild)

./mbed-os-to-arduino -a -g PORTENTA_H7_M7:PORTENTA_H7_M7

I would like to do this in windows, and have tried via the

1. Mbed Studio - no success - in terminal I get (I have Mbed-cli installed as well)
```
'.\mbed-os-to-arduino' is not recognized as an internal or external command,
operable program or batch file.
```
(I tried with / and with \)
2. cygdrive - to bring a linux shell in windows - I get
```
$ ./mbed-os-to-arduino -a PORTENTA_H7_M7:PORTENTA_H7_M7
./mbed-os-to-arduino: line 2: $'\r': command not found
: invalid optionuino: line 3: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
./mbed-os-to-arduino: line 4: $'\r': command not found
./mbed-os-to-arduino: line 5: syntax error near unexpected token `$'{\r''
'/mbed-os-to-arduino: line 5: `check_tools () {
```

3. If I run it from power shell , it asks how to run this program (

Any ideas if this is even possible, and if so, what I can try next.

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the mbed-os-to-arduino entry point and the mbed_app.json rebuild flow, then reproduce the command in the Windows environments mentioned: Mbed Studio, Cygwin, and PowerShell. Check how the script is invoked and how its line endings are interpreted. Done means documenting or enabling a Windows procedure that successfully rebuilds libmbed.a for PORTENTA_H7_M7.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.