Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

SDK • Re: Different gcc versions

$
0
0
Of course, one of the challenges with MicroPython is battling with documentation and trying to find others who have already walked the path.

This looked promising Minimal MicroPython firmware and just five files do seem to have got something significantly MicroPython built. But it doesn't run as the documentation describes -

Code:

pi@Pi4B:~/pico/micropython/ports/pi $ make...LINK build/firmware.elf   text    data     bss     dec     hex filename 289909     400    4580  294889   47fe9 build/firmware.elf

Code:

pi@Pi4B:~/pico/micropython/ports/pi $ file build/firmware.elfbuild/firmware.elf: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked,interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=ede65fce660eda8c27806eae4b1d40e6e64224ce,for GNU/Linux 3.2.0, not stripped

Code:

pi@Pi4B:~/pico/micropython/ports/pi $ ./build/firmware.elfMicroPython v1.27.0-preview.282.g4963ae72bf.dirty on 2025-10-09; Pi SBC with Various CPU>>> import sysimport sys^Cpi@Pi4B:~/pico/micropython/ports/pi $
It just seems to be buffering a line then echoing its characters rather than doing anything useful. Still, not bad for five minutes effort.

And I might have got further if I were an experienced C developer. And in that respect, having retaken a look at Circle, I was reminded it's C++ which I have even less experience of.

I suppose the next step would be to get that Minimal MicroPython working at the command line, then built as bare metal using a UART.

Update : Better joy with building the 'minimal' port. If I run './build/firmware.elf' it's the same as earlier -

Code:

pi@Pi4B:~/pico/micropython/ports/minimal-clone $ ./build/firmware.elfMicroPython v1.27.0-preview.282.g4963ae72bf.dirty on 2025-10-10; Pi SBC with Various CPU>>> import sysimport sys^C
But if I run with 'make run' it applies its magic, et viola ...

Code:

pi@Pi4B:~/pico/micropython/ports/minimal-clone $ make runUse make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.MicroPython v1.27.0-preview.282.g4963ae72bf.dirty on 2025-10-10; Pi SBC with Various CPU>>> import sys>>> sys.implementation('micropython', (1, 27, 0, 'preview'), 'Pi SBC with Various CPU')>>>
Whoo, hoo!

Statistics: Posted by hippy — Thu Oct 09, 2025 10:23 pm



Viewing all articles
Browse latest Browse all 7503

Trending Articles