Building debug libmbed.a

Today (actually starting yesterday) - I decided to try to debug trying to get an
OV5640 camera to work on GIGA R1... A couple of have it working on a Teensy, and it works on the GIGA with OpenMV, So I know it is possible...

I would like for it to debug into the HAL layer like: HAL_DCMI_Start_DMA

However, there are all in the libmbed...

So went to the readme file:
ArduinoCore-mbed/README.md at main · arduino/ArduinoCore-mbed

And I setup the sources in the $sketchbook/hardware/arduino-git
sources: So I then went to this step:

cd $sketchbook/hardware/arduino-git/mbed
./mbed-os-to-arduino -a -g PORTENTA_H7_M7:PORTENTA_H7_M7

A couple of different problems:
a) There is no version of the mbed-os-to-arduino that runs on windows.
I really wish Arduino would setup

b) So I tried running it under Microsoft subsystem for Linux.
It fails:

kurte@KurtXPS8950:/mnt/d/github/ArduinoCore-mbed$ bash ./mbed-os-to-arduino -a GIGA:GIGA

MBED_CLEAN=0
MBED_UPDATE=0
APPLY_PATCHES=1
RESTORE_GDB_INFO=0
LOCAL_REPO=
REMOTE_BRANCH=
MBED_CORE_LOCATION=/mnt/d/github/ArduinoCore-mbed

VARIANT=GIGA BOARD=GIGA
Checking for prerequisites... done.
Creating MbedOS Application..../mbed-os-to-arduino: line 25: mbed: command not found

Issue: I do not see anything in the documentation, that you need to install mbed, nor instructions on how to:

I know I ran into this on another thread and another user had some steps that worked then:

I also found some closed Arduino issue on an archived mbed github, that mentioned similar steps.

I am guessing, maybe follow the instructions up at:
Installers - Tools | Mbed OS 5 Documentation

Note the manual instructions for installing on linux:
Manual installation - Tools | Mbed OS 5 Documentation
did not work on RPI5...

Note: I believe this is mostly a documentation issue, and would suggest that might help to have additional information in the readme file.

Suggestions?

Thank

@KurtE - I just checked my Windows machine and appears that I never did setup Mbed OS on it. It was the previous Mbed OS CE that I had working in Windows. Maybe I'll try getting it to work. It seems to me it there was only a few differences between Windows and Linux...

1 Like

I think I had to manually copy some folder into the temporary folder created at first run

1 Like

Thanks everyone,

I think I am getting farther on my Windows machine, I started off this time,
I downloaded the ArduinoCore-mbed using zip file and unzipped it.
I did the link
And I cleared out the /tmp directory that was created earlier.

Then ran the mbed-os.-to-arduino, which downloaded the mbed-os stuff, and ran a long
ways into the build, but failed with the command jq not found.
I did a sudo apt install jq
And reran the sketch.
Failed to patch... removed the patch option and ran again...
Now to see if Windows will like it or not...

EDIT:


FQBN: arduino-git:mbed:giga
Using board 'giga' from platform in folder: C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed
Using core 'arduino' from platform in folder: C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed

Detecting libraries used...
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/defines.txt @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/../GIGA/includes.txt C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\GigaCameraDisplay_GFX_OV5640.ino.cpp -o nul
Error while detecting libraries included by C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\GigaCameraDisplay_GFX_OV5640.ino.cpp
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/defines.txt @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/../GIGA/includes.txt C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\ov5640.cpp -o nul
Error while detecting libraries included by C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\ov5640.cpp
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/defines.txt @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/../GIGA/includes.txt C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\ov5640_not_used_code.cpp -o nul
Error while detecting libraries included by C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\ov5640_not_used_code.cpp
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/defines.txt @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/../GIGA/includes.txt C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\ov5640_tables.cpp -o nul
Error while detecting libraries included by C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\ov5640_tables.cpp
Generating function prototypes...
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/defines.txt @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated -IC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\cores\arduino @C:\Users\kurte\Documents\Arduino\hardware\arduino-git\mbed\variants\GIGA/../GIGA/includes.txt C:\Users\kurte\AppData\Local\Temp\arduino\sketches\14709588916A4202A71ADD2D2F8903A9\sketch\GigaCameraDisplay_GFX_OV5640.ino.cpp -o C:\Users\kurte\AppData\Local\Temp\149699720\sketch_merged.cpp
arm-none-eabi-g++: error: CreateProcess: No such file or directory
exit status 1

Compilation error: exit status 1

Looks like I need to muck with it some

1 Like

@KurtE - I have been playing with getting libmbed.a to compile on the RPI5 for the last week. Tonight I finally got a good compile out of it. The biggest issue with the RPI is the python3 library. It seems to be using what they call the "python venv". I don't know much about python or how to use it in the python venv but what it boiled down to is manually loading each of the python modules using "pip install pyelftools==0.29 --break-system-packages" for example. Some I had to use pipx. I am sure there is a way to do it with the normal build script but that is going to take some researching. It's late so I'll see if the recompile works tomorrow...

Are you referring to this?:

https://os.mbed.com/docs/mbed-os/v6.16/build-tools/install-or-upgrade.html

Tip: We recommend using a virtual environment to avoid Python dependency conflicts.

If so, I highly recommend using the free open source Poetry tool for creating an isolated Python package dependency environment instead of venv:

I have used both extensively and venv is far less user friendly than Poetry.

No. I did not see this.

Thanks for the heads up :grinning:

Tested the compiled debug version of libmbed.a on the GIGA R1 and it seems to be working. This is with the Ubuntu 24.04. Ran a few sketches with both Arduino 1.8.19 and Arduino IDE 2.2.1. I am going to strart with a fresh install Raspbian on the RPI5 and see if I can setup a normal install...

I will have to try this as well.

@ptillisch and all, one question I have is, if I build the debug library, can I then copy/move it to another install? If so, what do I need to copy? Also is there anything specific for example between one built on Ubuntu or one on RPI? Can it be used with Windows or Mac or ...

For example wondering if I can build it on my Windows machine using a WSL command window running Ubuntu 22.04 and then either run it directly or copy it to where my Windows install is...

Right now I have my main Ubuntu machine upgrading to 24.04, which it says may take a few hours.

Ok, I have the basics for recompiling libmbed.a on the RPI 5 figured out :slightly_smiling_face: I still have to write up the procedure for Raspbian and Ubuntu. The biggest problem was understanding how the Python venv (Virtual ENViroment) worked. Information on that is found here:
https://www.raspberrypi.com/documentation/computers/os.html#use-python-on-a-raspberry-pi

It really is not that hard to setup the python venv. Getting all of the prerequisite Python libraries is the hard part. Again once I have the guide setup and tested I'll post it...

1 Like

For the heck of it, I tried building it from WSL with ubuntu 24.04...
I installed arduino-cli, with the GIGA board...

Went through steps you mentioned earlier in other thread to rebuild debug.
Installed mbed os CLI - with virtual environment for installing python.

I ran the command line: ./mbed-os-to-arduino -a -g GIGA:GIGA

(venv) kurte@KurtXPS8950:~/Arduino/hardware/arduino-git/mbed$ ./mbed-os-to-arduino -a -g GIGA:GIGA

MBED_CLEAN=0
MBED_UPDATE=0
APPLY_PATCHES=1
RESTORE_GDB_INFO=1
LOCAL_REPO=
REMOTE_BRANCH=
MBED_CORE_LOCATION=/home/kurte/Arduino/hardware/arduino-git/mbed

VARIANT=GIGA BOARD=GIGA
Checking for prerequisites... done.
Creating MbedOS Application...[mbed] Working path "/tmp" (directory)
[mbed] Creating new program "mbed-os-program" (git)
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at branch/tag "latest"
[mbed] Updating reference "mbed-os" -> "https://github.com/ARMmbed/mbed-os/#17dc3dc2e6e2817a8bd3df62f38583319f0e4fed"
[mbed] Auto-installing missing Python modules (pyyaml, jsonschema, jinja2, mbed_ls, mbed_host_tests, mbed_greentea, pyelftools, pycryptodome, pyusb, cmsis_pack_manager, psutil, cryptography, click, cbor)...
 done.
Checking out preferred 'mbed-os' version... done.
Setting up Mbed Application...[mbed] Working path "/tmp/mbed-os-program" (program)
[mbed] GIGA 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...git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0001-PACKAGING-remove-gdb-exta-information-to-slim-librar.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0002-Portenta-enable-certificates-in-filesystem.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0003-I2CSlave.read-buf-count-returns-the-number-of-bytes-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0004-Add-AnalogIn-configure-function.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0005-HACK-avoid-10862-by-not-firing-the-assert.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0006-portentaH7-Change-BLE-public-address.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0006-portentaH7-Change-BLE-public-address.patch:21: trailing whitespace.
            uint8_t bdAddr[6] = { 0xFF, 0xFF, 0xFF, 0x0A, 0x61, 0xA8 };
warning: 1 line adds whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0007-TLSSocketWrapper-add-method-to-retrieve-certificates.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0008-TLSSocketWrapper-Add-unit-test-for-set_root_ca_cert_.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0009-TLSSocketWrapper-add-test-for-certificates-stored-in.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0010-Initial-support-Portenta-Beta.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0011-STM32-USB-allow-dynamic-USB-speed-configuration-base.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0012-Increase-Cordio-memory-pool-for-nRF52832.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0013-Cordio-Add-sendCmplt-Callback-for-updating-NumCmplPc.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0014-Add-support-for-Arduino-Edge-Control.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0014-Add-support-for-Arduino-Edge-Control.patch:139: trailing whitespace.

/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0014-Add-support-for-Arduino-Edge-Control.patch:182: trailing whitespace.

/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0014-Add-support-for-Arduino-Edge-Control.patch:197: trailing whitespace.
    QSPI_FLASH1_CSN = QSPI1_CSN,
warning: 3 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0015-RASPBERRYPI-import-pico-sdk.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0015-RASPBERRYPI-import-pico-sdk.patch:1045: trailing whitespace.
by the actual target `PICO_PLATFORM``
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0015-RASPBERRYPI-import-pico-sdk.patch:3450: trailing whitespace.
 *         // will try to sleep until timeout or the next processor event
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0015-RASPBERRYPI-import-pico-sdk.patch:5113: trailing whitespace.
This can be extremely useful for testing and debugging higher level application code, or porting code which is not yet small enough
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0015-RASPBERRYPI-import-pico-sdk.patch:5119: trailing whitespace.
It is possible however to inject additional SDK library implementations/simulations to provide
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0015-RASPBERRYPI-import-pico-sdk.patch:5120: trailing whitespace.
more complete functionality. For an example of this see the [pico-host-sdl](https://github.com/raspberrypi/pico-host-sdl)
warning: squelched 50 whitespace errors
warning: 55 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0016-RP2040-add-NANO_RP2040_CONNECT-target.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0016-RP2040-add-NANO_RP2040_CONNECT-target.patch:626: new blank line at EOF.
+
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0016-RP2040-add-NANO_RP2040_CONNECT-target.patch:820: new blank line at EOF.
+
warning: 2 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0017-RP2040-add-placeholder-files-for-includes-like-pico-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0018-RP2040-implement-serial-api.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0019-RP2040-add-pinmap-for-i2c-spi-pwm.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0020-RP2040-Mark-.init-section-as-KEEP.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0021-RP2040-implement-mbed-api-analogin.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0021-RP2040-implement-mbed-api-analogin.patch:80: trailing whitespace.
    if (!is_adc_initialized)
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0021-RP2040-implement-mbed-api-analogin.patch:54: new blank line at EOF.
+
warning: 2 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0022-RP2040-add-SPI-support.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0023-RP2040-prefix-pico-sdk-s-i2c_init-function-with-a-_.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0024-RP2040-add-I2C-peripheral-support.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0025-RP2040-implement-USBDevice.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0026-RP2040-avoid-float.h-first-level-inclusion.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0027-RP2040-don-t-initalize-contructors-during-runtime_in.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0028-RP2040-add-pwm-driver.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0029-RP2040-add-flow-control-to-SERIAL-object.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0030-RP2040-add-lp-and-us-timer.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0031-RP2040-implement-gpio_is_connected.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0032-RP2040-adapt-linker-script-to-mbed.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0033-RP2040-Start-adding-Flash-support.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0034-RP2040-Protect-flash-operations-in-critical-sections.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0035-RP2040-Check-alignment-avoid-passing-const-buf-to-fl.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0036-RP2040-Rename-pico-sdk-s-gpio_irq_handler-with-a-_-t.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0037-RP2040-Add-gpio-interrupt-support.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0038-RP2040-usb-fix-USB_DEVICE_ENUMERATION_FIX-linking.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0039-RP2040-usb-make-all-unhandled-conditions-a-no-op.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0040-RP2040-i2c-fix-addressing-mismatch.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0041-RP2040-SPI-check-SS-correctness-only-if-declared.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0042-RP2040-Add-I2C-slave.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0042-RP2040-Add-I2C-slave.patch:76: space before tab in indent.
                return;
warning: 1 line adds whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0043-RP2040-PWM-fix-asserts.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0044-RP2040-nano-connect-fix-pinmap.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0045-RP2040-add-Raspberry-Pico-target.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0046-RP2040-fix-analogin_read_u16-to-report-full-range.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0047-RP2040-fix-PwmOut-enable-command.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0048-RP2040-Implement-watchdog.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0049-RP2040-Implement-reset-reasons.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0050-RP2040-fix-spi.h-spurious-inclusion-in-case-insensit.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0051-RP2040-UART-baud-can-t-be-changed-at-runtime.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0052-RP2040-i2c-remove-debug-prints.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0053-RP2040-PICO-Add-CONSOLE_-X-defines.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0054-RP2040-FLASH-fix-multipage-write.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0055-RP2040-fix-include-paths.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0056-RP2040-silence-nasty-warning.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0057-RP2040-start-fixing-CMake-files-for-mbed-cli-2.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0057-RP2040-start-fixing-CMake-files-for-mbed-cli-2.patch:39: space before tab in indent.
        .
warning: 1 line adds whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0058-RP2040-fix-and-update-Raspberry-Pi-Pico-target.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0059-RP2040-USBPhy-implement-stall-and-unstall.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0060-RP2040-include-multicore-library-in-build.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0061-RP2040-USB-retry-handling-irqs-if-some-went-missing.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0062-Nano-RP2040-Connect-force-flash-size-to-16MB.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0063-Save-watchdog-timeout-in-a-static-variable-accessibl.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0064-RP2040-us_ticker-fix-missing-interrupts-after-32bit-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0065-Nano-RP2040-connect-use-standard-W25Q080-2nd-stage.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0066-RP2040-optimize-flash-ram-occupation.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0067-RP2040-Add-weak-aliases-for-ISR-handlers.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0068-RP2040-enable-led-indication-on-mbed_die.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0069-check-MISO-correctness-only-if-it-is-declared.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0070-rp2040-Fix-I2CSlave-synchronization-issue-by-adding-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0071-STM32-PWM-add-export-HRTIM-capable-pins-to-Periphera.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0071-STM32-PWM-add-export-HRTIM-capable-pins-to-Periphera.patch:88: trailing whitespace.

warning: 1 line adds whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0072-STM32H7-add-HRTIM-capable-pins.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0073-STM32-PWM-implement-HRTIM-based-PWM-APIs.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0074-STM32-HRTIM-greatly-simplify-corner-cases.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0075-Portenta-PWM-force-PA8-to-use-HRTIM.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0076-STM32H7-CM4-avoid-vtor-relocation-via-define.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0077-STM32-analogin-use-critical-section-to-protect-PLL-c.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0078-PortentaH7-implement-and-use-get_default_instance-fo.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0079-PortentaH7-Disable-WHD-WPRINT_MACRO.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0080-Add-NICLA-target.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0080-Add-NICLA-target.patch:57: trailing whitespace.
/*
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0080-Add-NICLA-target.patch:60: trailing whitespace.
 *
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0080-Add-NICLA-target.patch:63: trailing whitespace.
 *
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0080-Add-NICLA-target.patch:64: trailing whitespace.
 *   1. Redistributions of source code must retain the above copyright notice, this list
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0080-Add-NICLA-target.patch:67: trailing whitespace.
 *   2. Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA
warning: squelched 9 whitespace errors
warning: 14 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0081-NICLA-use-nfc-pins-as-GPIOs.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0082-Fix-cast-error-in-WHD.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0083-mbed-client-cli-ns_cmdline-make-cmd_class_t-cmd-priv.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0084-BlockDevice-add-mbed-namespace-to-function-signature.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0085-Use-ADC-clock-synchronous-with-AHB.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0086-RP2040-Add-basic-RTC-support.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0086-RP2040-Add-basic-RTC-support.patch:73: trailing whitespace.

/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0086-RP2040-Add-basic-RTC-support.patch:76: trailing whitespace.
    }
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0086-RP2040-Add-basic-RTC-support.patch:113: trailing whitespace.

warning: 3 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0087-RP2040-Watchdog-get_reload_value-returns-0-if-wd-is-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0088-RP2040-backport-p2040_usb_device_enumeration-fix.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0089-RP2040-correct-system-clock-frequency.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0090-Thales-mbed-library-porting.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0091-Implement-connect-and-get_context-functions-inside-G.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0092-Make-set_cid-protected-to-call-it-from-GEMALTO-stack.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0093-Implement-GEMALTO-subclass-of-CellularNetwork.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0094-Handle-missing-IP-address-resolution.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0095-Check-if-username-and-password-are-empty-strings.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0096-Overwrite-old-context-with-new-one-if-they-are-diffe.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0097-Fix-recv-implementation.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0098-Add-time-functions-to-Gemalto-stack.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0099-AT_CellularStack-return-NSAPI_ERROR_NO_CONNECTION-on.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0100-SerialBase-implement-sw-flow-control.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0101-GEMALTO-fix-some-corner-cases.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0102-Gemalto-properly-handle-SYSSTART-URC.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0103-Gemalto-TX62-handle-oob-before-closing-the-socket.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0104-GEMALTO-implement-GNSS.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0105-GEMALTO-TX62-tune-AT-configuration.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0106-Add-APIs-to-start-and-stop-gnss-functionality.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0107-Added-GNSS-Psm-management-and-bug-fixing.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0108-Implement-LNA_ENABLE-for-Thales-rev3.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0109-cmux-support.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0110-Implement-Udp_RemClient-for-TX62.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0111-Fix-HostByName-SISX-request.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0112-PwmOut-set-pwm-period-before-duty-cycle.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0113-Initial-add-Nicla-Vision-target.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0113-Initial-add-Nicla-Vision-target.patch:2382: trailing whitespace.
target_sources(mbed-portenta-whd-4343w-fw
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0113-Initial-add-Nicla-Vision-target.patch:2404: trailing whitespace.
        port/wiced_filesystem.cpp
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0113-Initial-add-Nicla-Vision-target.patch:2414: trailing whitespace.
/*
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0113-Initial-add-Nicla-Vision-target.patch:2416: trailing whitespace.
 * The MAC address of the Wi-Fi device may be configured in OTP and/or in NVRAM.
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0113-Initial-add-Nicla-Vision-target.patch:2417: trailing whitespace.
 * If both OTP and NVRAM contains the MAC address then OTP programmed MAC address will be used.
warning: squelched 30 whitespace errors
warning: 35 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0114-Nicla-Vision-Set-WiFi-as-default-interface.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0115-Nicla-Vision-enable-I2C_TIMING_VALUE_ALGO.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0116-Nicla-Vision-tune-LWIP-mem-size.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0117-Nicla-Vision-fix-wifi-bug-related-to-SDMMC2.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0118-Nicla-Vision-fix-LPUART-at-baudrates-higher-than-960.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0119-TEMP-Remove-log-from-.gitignore-file.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0120-Initial-import-of-plug-trust-library-to-COMPONENT_SE.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0120-Initial-import-of-plug-trust-library-to-COMPONENT_SE.patch:628: trailing whitespace.
Introduction on Plug & Trust Middleware Mini Package
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0120-Initial-import-of-plug-trust-library-to-COMPONENT_SE.patch:629: trailing whitespace.
====================================================================
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0120-Initial-import-of-plug-trust-library-to-COMPONENT_SE.patch:630: trailing whitespace.

/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0120-Initial-import-of-plug-trust-library-to-COMPONENT_SE.patch:631: trailing whitespace.
Plug and Trust middleware mini package contains the minimum files required to
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0120-Initial-import-of-plug-trust-library-to-COMPONENT_SE.patch:632: trailing whitespace.
connect to SE05x using t1oi2c protocol. The package is tested on
warning: squelched 344 whitespace errors
warning: 349 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0121-Port-sss-hostLib-to-mbed-os.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0121-Port-sss-hostLib-to-mbed-os.patch:904: trailing whitespace.
    if(se05x_i2c != NULL)
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0121-Port-sss-hostLib-to-mbed-os.patch:914: trailing whitespace.
    if(se05x_i2c != NULL)
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0121-Port-sss-hostLib-to-mbed-os.patch:937: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0122-Do-not-build-ecdh.c-from-mbedtls-stack-if-MBEDTLS_EC.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0123-Enable-MBEDTLS-alternative-implementation-over-SSS.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0124-Enable-DEBUG-log-by-default.-To-disable-it-define-FL.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0125-Add-1ms-delays-to-let-communication-work-also-with-d.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0126-Make-i2c-and-resets-pin-configurable.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0127-Add-missing-__MBED__-define-to-avoid-build-mbedtls-k.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0128-Moved-COMPONENT_SE050-from-TARGET_PORTENTA_H7-to-STM.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0129-NICLA_VISION-Enable-component-SE050.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0130-NICLA_VISION-Add-configuration-macros-used-for-APDU-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0131-NICLA_VISION-Add-configuration-for-reset-pin-and-i2c.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0132-NICLA_VISION-DISABLE-debug-log-with-FLOW_SILENT-macr.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0133-NICLA_VISION-Add-overload-for-TLSSocketWrapper-set_c.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0134-TLSSocketWrapper-store-SE050-keystore-pointer-and-ke.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0135-TLSSocketWrapper-Force-correct-cipher-suite-for-SE05.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0136-TLSSocketWrapper-Associate-SE050-ecdh-context-to-mbe.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0137-TLSSocketWrapper-Add-function-to-append-a-certificat.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0138-Initialize-sss_object-and-sss_keystore-to-nullptr.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0139-RP2040-fix-high-speed-uart-by-enabling-FIFO-timeout.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0140-Fix-Ethernet-pins-configuration.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0141-COMPONENT_SE050-Add-defines-to-exclude-DES-functions.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0142-Add-build-options-to-allow-to-disable-device-functio.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0143-MCUboot-PORTENTA_H7_M7-Change-ST-HAL-configuration-r.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0144-Add-build-option-to-allow-FATFS-customization-remove.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0145-Optimize-HAL_RCCEx_PeriphCLKConfig-using-only-HAL-en.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0146-MCUboot-PORTENTA_H7_M7-Remove-HSI-CSI-LSI-HSI48-supp.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0147-MCUBoot-PORTENTA_H7_M7-Add-linker-sections-to-store-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0148-Add-build-option-DEVICE_SERIAL_FC-preventing-build-i.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0149-MCUboot-PORTENTA_H7_M7-Remove-FATFS-mkdir-and-rename.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0150-Fix-Only-return-true-for-uart_is_writeable-if-the-TX.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0151-MCUboot-PORTENTA_H7_M7-Remove-LittleFS-format-reform.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0152-MCUboot-PORTENTA_H7_Move-libc-rodata-after-bootloade.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0153-NICLA_VISION-Add-device-name-in-target.json.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0154-MCUboot-NICLA_VISION-linker-file-Reserve-space-for-k.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0155-ST-CAN-allow-sending-CAN-remote-frames.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0156-Add-Portenta-X8-target.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0157-PortentaX8-remove-MPU-support.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0158-Enable-Watchdog-for-ARDUINO_NANO33BLE.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0159-Enable-Watchdog-for-NICLA.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0160-Port-pico-sdk-1.3.0-initial.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0160-Port-pico-sdk-1.3.0-initial.patch:2232: trailing whitespace.
#define PICO_DEFAULT_I2C 1
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0160-Port-pico-sdk-1.3.0-initial.patch:2238: trailing whitespace.
#define PICO_DEFAULT_I2C_SCL_PIN 7
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0160-Port-pico-sdk-1.3.0-initial.patch:2263: trailing whitespace.
#define PICO_FLASH_SPI_CLKDIV 2
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0160-Port-pico-sdk-1.3.0-initial.patch:2275: trailing whitespace.
#ifndef PICO_RP2040_B0_SUPPORTED
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0160-Port-pico-sdk-1.3.0-initial.patch:2778: trailing whitespace.
#ifndef PICO_RP2040_B0_SUPPORTED
warning: squelched 58 whitespace errors
warning: 63 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0161-RP2040-add-placeholder-files.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0162-RP2040-Fix-multiple-definitions-errors-and-clashes.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0163-RP2040-Restore-previous-divider.S-to-avoid-including.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0164-RP2040-Prepend-_-to-clashing-functions-names.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0165-RP2040-Change-standard-interrupt-names-and-linker-sc.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0166-RP2040-i2c-read-modification-to-make-it-compliant-wi.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0167-RP2040-Change-uart-is_writable-logic-to-handle-FIFO.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0168-RP2040-don-t-initalize-contructors-during-runtime_in.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0169-RP2040-adapt-linker-script-to-mbed.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0170-RP2040-watchdog-return-timeout-value-in-ms.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0171-can-stm32-use-FDCAN_IT_RX_FIFO0_NEW_MESSAGE-for-RX-i.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0172-RP2040-align-gpio_irq_init-API-with-mainline.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0173-STM32H7-arduino-give-full-2MB-flash-for-pure-CM7-app.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0174-WHD-force-disconnect-on-roamed-due-to-low-RSSI.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0175-STM32-lpticker-allow-dynamic-configuration.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0176-Portenta-use-LSE-for-low-power-ticker.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0177-QSPI-make-_qspi-object-protected-to-allow-subclassin.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0178-STM32H747-linker-set-bootloader_info-section-for-all.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0179-STM32-RTC-allow-runtime-clock-source-selection.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0180-Increase-the-default-EAPOL-key-messages-timeout.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0181-Portenta-WHD-add-function-to-mount-wlan-firmware-fs-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0182-STM32-fix-HRTIM-pwm-corner-cases-0-100.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0183-NiclaVision-WHD-add-function-to-mount-wlan-firmware-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0184-Cellular-add-API-to-set-Modem-bands.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0185-STM32H7-set-ADC-PLL-clock-for-various-source-configu.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0186-Opta-initial-Add-target.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0186-Opta-initial-Add-target.patch:2497: trailing whitespace.
target_sources(mbed-portenta-whd-4343w-fw
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0186-Opta-initial-Add-target.patch:2519: trailing whitespace.
        port/wiced_filesystem.cpp
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0186-Opta-initial-Add-target.patch:2529: trailing whitespace.
/*
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0186-Opta-initial-Add-target.patch:2531: trailing whitespace.
 * The MAC address of the Wi-Fi device may be configured in OTP and/or in NVRAM.
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0186-Opta-initial-Add-target.patch:2532: trailing whitespace.
 * If both OTP and NVRAM contains the MAC address then OTP programmed MAC address will be used.
warning: squelched 29 whitespace errors
warning: 34 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0187-QSPI-Disable-fast-mode-for-vendor-ID-0xc22018.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0188-Opta-enable-power-save-mode-on-SDIO-CLK-pin.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0189-QSPI-call-is_mem_ready-before-trying-to-set-write-en.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0190-QSPI-add-Adesto-quirks-and-adapt-QSPIFBlockDevice-fu.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0191-Opta-fix-bootloader-info.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0192-Opta-WHD-add-function-to-mount-wlan-firmware-fs-from.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0193-stm32h747-linker-set-bootloader_version-sectionat-th.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0194-MCUboot-PORTENTA_H7-Tune-rodata-to-fit-flash.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0195-QSPI-apply-Adesto-quirk-only-for-AT25SF128A.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0196-STM32-USBDevice-fix-USB_FS-on-H7.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0197-Fix-PWM-initialisation-when-using-both-channel-A-and.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0198-Giga-Initial-Add-target.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0198-Giga-Initial-Add-target.patch:2317: trailing whitespace.
target_sources(mbed-portenta-whd-4343w-fw
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0198-Giga-Initial-Add-target.patch:2339: trailing whitespace.
        port/wiced_filesystem.cpp
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0198-Giga-Initial-Add-target.patch:2349: trailing whitespace.
/*
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0198-Giga-Initial-Add-target.patch:2351: trailing whitespace.
 * The MAC address of the Wi-Fi device may be configured in OTP and/or in NVRAM.
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0198-Giga-Initial-Add-target.patch:2352: trailing whitespace.
 * If both OTP and NVRAM contains the MAC address then OTP programmed MAC address will be used.
warning: squelched 29 whitespace errors
warning: 34 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0199-Giga-WHD-add-function-to-mount-wlan-firmware-fs-from.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0200-MCUboot-Giga-reserve-space-for-keys-and-identificati.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0201-whd-portentah7-fix-dcache-maintenance.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0202-whd-giga-fix-dcache-maintenance.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0203-whd-nicla-vision-fix-dcache-maintenance.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0204-whd-opta-fix-dcache-maintenance.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0205-Nicla-Vision-add-HRTIM-pinmux.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0206-STM32-Fix-repeated-start-for-transactional-i2c.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0207-giga-fix-QSPI-initialization.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0208-STM32-fix-HRTIM-pwm-init-and-corner-case-31.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0209-gcc-callback-prevent-wrong-optimizations.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0209-portenta_h7-make-sure-configuration-is-only-executed.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0210-giga-remove-stray-function.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0211-stm32h7-dual-core-allow-override-of-HAL_RCC_GetSysCl.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0212-ble-remove-stray-specializations.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0213-stm32h747_m4-implement-a-standalone-target.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0213-stm32h747_m4-implement-a-standalone-target.patch:2236: trailing whitespace.
target_sources(mbed-portenta-whd-4343w-fw
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0213-stm32h747_m4-implement-a-standalone-target.patch:2258: trailing whitespace.
        port/wiced_filesystem.cpp
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0213-stm32h747_m4-implement-a-standalone-target.patch:2268: trailing whitespace.
/*
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0213-stm32h747_m4-implement-a-standalone-target.patch:2270: trailing whitespace.
 * The MAC address of the Wi-Fi device may be configured in OTP and/or in NVRAM.
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0213-stm32h747_m4-implement-a-standalone-target.patch:2271: trailing whitespace.
 * If both OTP and NVRAM contains the MAC address then OTP programmed MAC address will be used.
warning: squelched 28 whitespace errors
warning: 33 lines add whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0214-stm32h7-adc-use-CLKP-as-clock-source.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0215-Gemalto-Cinterion-Cellular-Disable-urcs-while-readin.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0216-AT_CellularContext-Fix-SCFG-commands-to-configure-ba.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0217-AT_CellularContext-move-enable_access_technology-at-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0218-GEMALTO_CINTERION_CellularContext-do-not-disable-all.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0219-GEMALTO_CINTERION_CellularContext-add-return-value-t.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0220-GEMALTO_CINTERION_CellularContext-connect-check-retu.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0221-TLSSocketWrapper-allow-appending-ca_cert-to-an-empty.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0222-STM32H7-fix-DUAL_PAD-value-to-avoid-ALTx-conflict.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0223-CellularDevice-avoid-callback-data-is-changed-before.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0224-ATHandler-do-not-temporarily-change-debug-options-to.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0225-CellularStateMachine-add-state-data-to-timeout-and-r.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0226-Gemalto-Cinterion-improve-trace-output.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0227-stm32h747-cm4-set-VTOR-at-boot.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0228-stm32h7-adc-DUAL_PAD-fix-definitions-for-GENERIC_M4-.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0229-NiclaVision-enable-red-blink-on-mbed_die.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0230-TLSSocketWrapper-do-not-force-close-to-block.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0231-RP2040-add-pico_rand-support.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0232-emac_stm32-properly-invalidate-DCache-before-disabli.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0233-emac-stop-start-dhcp-on-interface-bringup.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0234-emac-stm32-check-inteface-status-before-link_out.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0235-RP2040-add-second_stage_ota-section-to-linker-script.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0236-RP2040-add-simbols-to-linker-script-to-compute-.unin.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0237-Watchdog-kick-only-if-watchdog-is-running.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0238-WHD-reduce-the-number-of-join-retry.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0239-WHD-add-join-timeout-parameter-to-WiFiSTAInterface-a.patch
/home/kurte/Arduino/hardware/arduino-git/mbed/patches/0239-WHD-add-join-timeout-parameter-to-WiFiSTAInterface-a.patch:43: space before tab in indent.
                                                   (const uint8_t *)_pass, key_length, _timeout);
warning: 1 line adds whitespace errors.
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0240-TLSSocketWrapper-add-read-write-event-flags.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0241-Add-methods-for-setting-hostname.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0242-Request-hostname-through-DHCP.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0243-WhdSTA-allow-hostname-configuration.patch
git apply /home/kurte/Arduino/hardware/arduino-git/mbed/patches/0244-Add-user-network-interface-check-before-reading-host.patch
/tmp/mbed-os-program
 done.
Restoring gdb info (this increases libmbed binary size, not suitable for release)
Updated 1 path from the index
/tmp/mbed-os-program
Compiling Mbed Application.../tmp/mbed-os-program/mbed-os/tools/toolchains/mbed_toolchain.py:642: SyntaxWarning: invalid escape sequence '\:'
  buff[0] = re.sub('^(.*?)\: ', '', buff[0])
Traceback (most recent call last):
  File "/tmp/mbed-os-program/mbed-os/tools/make.py", line 40, in <module>
    from tools.options import get_default_options_parser
  File "/tmp/mbed-os-program/mbed-os/tools/options.py", line 25, in <module>
    from .toolchains import TOOLCHAINS, EXTRA_TOOLCHAIN_NAMES
  File "/tmp/mbed-os-program/mbed-os/tools/toolchains/__init__.py", line 20, in <module>
    from . import mbed_toolchain, arm, gcc, iar
  File "/tmp/mbed-os-program/mbed-os/tools/toolchains/mbed_toolchain.py", line 32, in <module>
    from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils'
[mbed] ERROR: "/home/kurte/Arduino/hardware/arduino-git/mbed/venv/bin/python3" returned error.
       Code: 1
       Path: "/tmp/mbed-os-program"
       Command: "/home/kurte/Arduino/hardware/arduino-git/mbed/venv/bin/python3 -u /tmp/mbed-os-program/mbed-os/tools/make.py -t GCC_ARM -m GIGA --source . --build ./BUILD/GIGA/GCC_ARM -v"
---
(venv) kurte@KurtXPS8950:

Which went a long way before it failed. Complaining about no module named distutils

@KurtE - I now have a rough draft of a working installation guide. It is tested on RPI5 with Raspbian so far. The libmbed.a that comes with the distribution has a size of 7.5MB without debug info. When recompile libmbed.a without debug info I get a size of 7.4MB and the "ScanNetworksAdvanced" sketch does not work. other sketches do work. Same results happen with debug info turned on. So here is what I have for a guide so far:

How to build or rebuild Arduino Mbed-os core library in Linux on RPI 5.

1. First step is to install all of the needed tools to build the mbed os. See the following web page as a guide.
   "https://os.mbed.com/docs/mbed-os/v6.16/build-tools/install-and-set-up.html".
   "sudo apt install python3 python3-pip git mercurial jq"

2. Now we need a arm64 cross compiler. The one provided with Raspbian or Ubuntu works.
     "sudo apt install gcc-arm-none-eabi"
   Test the installation with:
     "arm-none-eabi-gcc --version"
   Result should look something like:
     "arm-none-eabi-gcc (15:12.2.rel1-1) 12.2.1 20221205
      Copyright (C) 2022 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. "

3. Add some prerequisites:
      "sudo apt-get install python3-dev"

4. Next we are going to setup our Python venv (Virtual ENViroment).
   Here is the link to the documentaion:
     "https://www.raspberrypi.com/documentation/computers/os.html#use-python-on-a-raspberry-pi"
   First we create a private project enviroment with:
     "python -m venv mbed-env"
   Next we create a virtual environment configuration folder:   
     "python -m venv mbed-env --system-site-packages"
   The "--system-site-packages" flag pull in all of the current Python libraries.
   Then we activate it with: 
     "source mbed-env/bin/activate".
   You should see something like this:
     "(mbed-env) wwatson@wwatsonRPI5:~ $"
   instead of the normal prompt which in my case is this:
     "wwatson@wwatsonRPI5:~ $"
   To deactivate use:
     "deactivate"

5. With the mbed-env activated, do:
    "python -m pip install mbed-tools"
    "python3 -m pip install mbed-cli"

6. Now deactivate it with: 
     "deactivate"

7. Create "sketchbook/hardware/arduino-git/mbed" in your home directory with "mkdir -p sketchbook/hardware/arduino-git/mbed".

8. To avoid having to mess with a GitHub public key just Download
     "ArduinoCore-mbed.zip" from "https://github.com/arduino/ArduinoCore-mbed" and un-zip. Copy contents of
     "ArduinoCore-mbed" to "sketchbook/hardware/arduino-git/mbed"

9. Download "ArduinoCore-API.zip" from "https://github.com/arduino/ArduinoCore-API".

10. Extract "ArduinoCore-API.zip" to "ArduinoCore-API-master" and rename to "ArduinoCore-API".

11. Copy "ArduinoCore-API" to "skectbook/hardware/arduino-git".

12. Next you will create a symbolic link (shortcut) in "sketchbook/hardware/arduino-git/mbed/cores/arduino"
    to "ArduinoCore-API/api". Example:
    "ln -s ~/sketchbook/hardware/arduino-git/ArduinoCore-API/api  ~/sketchbook/hardware/arduino-git/mbed/cores/arduino"

13. Reactivate mbed-env with:
      "source mbed-env/bin/activate".

14. If not already there, "cd sketchbook/hardware/arduino-git/mbed"
    Then do "./mbed-os-to-arduino -a -g GIGA:GIGA". This builds the Arduino Mbed core library for the GIGA R1 board.
    You will get the following error:
       [mbed] ERROR: Missing Python modules were not auto-installed.
       The Mbed OS tools in this program require the following Python modules: colorama, urllib3, pyyaml,
       jsonschema, six, requests, idna, pyserial, jinja2, mbed_ls, mbed_host_tests, mbed_greentea, beautifulsoup4,
       pyelftools, pycryptodome, pyusb, cmsis_pack_manager, psutil, cryptography, click, cbor
       You can install all missing modules by running "pip install -r requirements.txt" in "/tmp/mbed-os-program/mbed-os"
       On Posix systems (Linux, etc) you might have to switch to superuser account or use "sudo".
    To correct, do the following:
       "pip freeze > requirements.txt"
       "pip install -r requirements.txt"
    then do "./mbed-os-to-arduino -g GIGA:GIGA" again without "-a" (apply patches).

16. The "-a" flag signals mbed to update and apply patches. So after the first use do "./mbed-os-to-arduino -g GIGA:GIGA"
    without the "-a" flag to avoid error messages. 

17. Usage listing:  

  Usage: mbed-os-to-arduino [-c] [-u] [-r /path/to/local/repo] [-b mbed/remote/branch] [-p /mbed/core/location] [VARIANT1:BOARD1 VARIANT2:BOARD1 VARIANT3:BOARD3 ... ]
   -c clean Mbed application BUILD directory
   -u update to latest mbed-os release
   -a apply patches
   -b specify remote mbed-os branch to checkout
   -r specify local mbed-os directory to link
   -p specify local mbed core directory (defaults to PWD)
   -g restores debug information
  Example:
     mbed-os-to-arduino -a ARDUINO_NANO33BLE:ARDUINO_NANO33BLE CHALLENGE_PMC_R2DX:ARDUINO_NANO33BLE

18. The resulting libmbed.a file is found in "~/sketchbook/hardware/arduino-git/mbed/variants/GIGA/libs/libmbed.a".
    Normal (none debug) file size is ~8MB and with debug turned on is ~44MB. You can copy this to"
    ".arduino15/packages/arduino/hardware/mbed_giga/4.1.5/variants/libs/libmbed.a". I would recommend renameing the existing "libmbed.a" to "libmbed.a.org"
    in case there is an issue.

19. If you reboot the RPI 5 you will need to do the following:
    "cd sketchbook/hardware/arduino-git/mbed"
    "source mbed-env/bin/activate"
    "./mbed-os-to-arduino -a -g GIGA:GIGA" and "./mbed-os-to-arduino -g GIGA:GIGA" thereafter.

20. There are some intermittent issues yet to be solved...

There is still something I am missing. I have an older version of "ArduinoCore-mbed" on one of my desktops that is working. Might ttry that on the RPI5 to see if it works.
Anyway this seems to be working somewhat so far :grinning:
Edit: Will be interesting to see what you come up with...

I got around this, by changing:
git clone git@github.com:arduino/ArduinoCore-mbed mbed
to
git clone https://github.com/arduino/ArduinoCore-mbed.git mbed
actually I believe I had it only do depth of 1...
git clone --depth 1 https://github.com/arduino/ArduinoCore-mbed.git mbed

I really think they should update their documentation (readme) to not use this
form of clone as I don't think it works for anyone any more...

Thanks for the info. I actually did not know about that. But then again there are a lot of things I don't know about :rofl:
I am getting ready to setup another drive with Ubuntu on it so I'll add your information to it.

Here is the kicker though, I copied my complete sketchbook folder with the older version of AdrduinoCore-mbed and Arduino-API from my desktop to the RPI5 and recompiled with and without debug turned on. I ran "ScanNetworksAdvanced.ino" and it worked as expected. This was with using arduino-1.8.19 and Arduino IDE 2.3.3. So I am am not sure if it was a coincidence or shear luck. I will hopefully find out after setting up the RPI 5 with Ubuntu 24.04 again. I did search the forum and the ArduinoCore-mbed issues but found nothing. Maybe one of the Arduino guru's have an idea or info...

@KurtE - Having issues with installation in Ubuntu. It's saying that there are several python3 modules that are not installed when I try to compile. But then when I try to install the ones that are missing it says that they are already installed :confused:
It's late here. Time to close the eyes...

I had some issues with the python stuff as well:

I was able to build on Raspberry OS...

With your step here

I found this did not help as much as doing:
pip install -r /tmp/mbed-os-program/mbed-os/requirements.txt
Which sometimes still showed some errors, but then the command
./mbed-os-to-arduino -a -g GIGA:GIGA

completed:

However I am having issues with trying to start up the debugger:
I am using one of the debug dongles that @ptillisch mentioned to me, back when I was trying to use the debugger with the UNO R4 (and I was using windows)

I have the upload set to CMIS-DAP

the GDB fails with errors like:


Waiting for gdb server to start...[2024-11-06T14:27:22.826Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
/home/kurte/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2/bin/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /home/kurte/github/Arduino_GIGA-stuff/sketches/GigaCameraDisplay_GFX_OV5640 -f /tmp/.mount_arduingr0Kfh/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f /home/kurte/Arduino/hardware/arduino-git/mbed/debugger/select_swd.cfg -f target/stm32h7x_dual_bank.cfg
[2024-11-06T14:27:22.911Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

Information from dmesg

[   79.667967] usb 1-2.4: New USB device found, idVendor=6666, idProduct=9901, bcdDevice= 1.00
[   79.667978] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   79.667981] usb 1-2.4: Product: Generic CMSIS-DAP Adapter
[   79.667983] usb 1-2.4: Manufacturer: Alex Taradov
[   79.667984] usb 1-2.4: SerialNumber: BA0ECAE1
[   79.737535] input: Alex Taradov Generic CMSIS-DAP Adapter as /devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-2/1-2.4/1-2.4:1.0/0003:6666:9901.0004/input/input9
[   79.737688] hid-generic 0003:6666:9901.0004: input,hidraw3: USB HID v1.11 Device [Alex Taradov Generic CMSIS-DAP Adapter] on usb-xhci-hcd.0-2.4/input0
[   80.791860] usb 1-2.1: new full-speed USB device number 4 using xhci-hcd
[   80.901152] usb 1-2.1: New USB device found, idVendor=2341, idProduct=0266, bcdDevice= 1.01
[   80.901159] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

Still wondering if I can for example copy some of this build to other system(s) to use
to debug... Will be curious to see how much different the install is versus the non-modified

I think if it is compiled for the GIGA which uses arm-none-eabi and the other system is debugging with the same it should work. MAYBE, haven't tried that yet. Got a failed heater control in my SUV I have to deal with today :grimacing:

@KurtE udev rules?

Maybe, I tried to hack one up to make it such that you don't need to use sudo to get to it, but not sure if that is needed and/or I did it wrong

@wwatson - I think I am getting the same errors trying to build on ubuntu...

The issue that I see is python modules are not being seen for some reason. When I go to install what they say is a missing module it comes back as already being installed :roll_eyes:
Guess I need to do more reading and searching...