arduino / arduino/ArduinoCore-mbed

Packaged core doesn't ship with patches folder

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

Description

Hello !
Another issue with mbed Core

**Operating system**: ParrotOS Debian Based -> 5.18.0-14parrot1-amd64
**Compiling command:**
`arduino-cli compile test -b arduino:mbed_portenta:envie_m7 -v`
**Arduino mbed version** : 3.4.1
**Ino file**:
test/test.ino
```
#include

void setup()
{

}

void loop()
{}
```

At first it compiles fine, but when i recompile mbed it crashes. (The install is clean i deleted and reinstalled everything)
**Compiling command** :
`./mbed-os-to-arduino -a PORTENTA_H7_M7:PORTENTA_H7_M`
**from directory** :
`/home/chickpea/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1`

The Mbed compilation works just fine, but when i recompile test here is **the error** :
```
/home/chickpea/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/variants/PORTENTA_H7_M7/variant.cpp:245:14: error: 'mbed::QSPI QSPIFBlockDevice::_qspi' is private within this context
ret &= _qspi.command_transfer(0xB1, -1, nullptr, 0, nullptr, 0);
^~~~~
In file included from /home/chickpea/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/variants/PORTENTA_H7_M7/variant.cpp:239:0:
/home/chickpea/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/cores/arduino/mbed/storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h:344:16: note: declared private here
mbed::QSPI _qspi;
^~~~~
/home/chickpea/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/variants/PORTENTA_H7_M7/variant.cpp:247:14: error: 'mbed::QSPI QSPIFBlockDevice::_qspi' is private within this context
ret &= _qspi.command_transfer(0xC1, -1, nullptr, 0, nullptr, 0);
^~~~~
In file included from /home/chickpea/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/variants/PORTENTA_H7_M7/variant.cpp:239:0:
/home/chickpea/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/cores/arduino/mbed/storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h:344:16: note: declared private here
mbed::QSPI _qspi;
^~~~~
```

I did this because it fails with my build, with a bunch of other errors from variant.cpp and from MBedTLS.cpp.
So i guess i'm doing this wrong, could anyone help ?
Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documented `arduino-cli compile` command and the `./mbed-os-to-arduino -a PORTENTA_H7_M7:PORTENTA_H7_M` rebuild. Compare the packaged core with the rebuilt files, especially `variants/PORTENTA_H7_M7/variant.cpp` and `cores/arduino/mbed/storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h`; done means the rebuilt package includes the required patches and compiles without the reported private-member errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.