arduino / arduino/ArduinoCore-mbed

Need help compiling mbed for PORTENTA_H7_M7

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

Description

Hello, having eternal issues trying to compile new libmbed.a file

Created a new PC with Ubuntuu linux
Downloaded Arduino IDE 2.0
Install Portenta Board manager

Used the main file below as guide

https://github.com/arduino/ArduinoCore-mbed#mbed-os-to-arduino-script

Did not create a new clone, but trying to compile in the 3.5.4 installation itself
Went to ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.5.4

I tried running the mbed-os-to-arduino script at that point, and was getting a line 25 error

I then found this
https://github.com/arduino/ArduinoCore-nRF528x-mbedos/issues/66

I installed python3
Created a virtual environemt and and ran

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

I then got an error message later in the script

```./mbed-os-to-arduino -a -g PORTENTA_H7_M7:PORTENTA_H7_M7
MBED_CLEAN=0
MBED_UPDATE=0
APPLY_PATCHES=1
RESTORE_GDB_INFO=1
LOCAL_REPO=
REMOTE_BRANCH=
MBED_CORE_LOCATION=/home/rsalasidis/.arduino15/packages/arduino/hardware/mbed_portenta/3.5.4

VARIANT=PORTENTA_H7_M7 BOARD=PORTENTA_H7_M7 Checking for prerequisites... done.
Creating MbedOS Application... done.
Checking out preferred 'mbed-os' version... done.
Setting up Mbed Application...[mbed] Working path "/tmp/mbed-os-program"
(program)
[mbed] PORTENTA_H7_M7 now set as default target in program "mbed-os-program"
[mbed] Working path "/tmp/mbed-os-program" (program) [mbed] GCC_ARM now set as default toolchain in program "mbed-os-program"
done.
Applying patches... done.
Restoring gdb info (this increases libmbed binary size, not suitable for
release)
Updated 0 paths from the index
/tmp/mbed-os-program
Compiling Mbed Application...[mbed] ERROR:
"/home/rsalasidis/.arduino15/packages/arduino/hardware/mbed_portenta/3.5.4/bin/python3"
returned error.
Code: 1
Path: "/tmp/mbed-os-program"
Command:
"/home/rsalasidis/.arduino15/packages/arduino/hardware/mbed_portenta/3.5.4/bin/python3
-m pip list -l"
---
```

I downloaded the GNU ToolChain, but not sure if the problem is that the scrtipt dows not find the compiler locations?

Any ideas?

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the mbed-os-to-arduino script and the installed ArduinoCore-mbed 3.5.4 path shown in the report. Reproduce the PORTENTA_H7_M7 command and inspect the pip list -l failure from the bundled Python environment. Done means the script completes and produces the requested libmbed.a file.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.