Page 3 of 3

Re: bare metal Raspberry Pi Zero port

Posted: Sat Dec 07, 2019 11:31 pm
by boochow
Since I have been adding no code to my repo this year, the code you see on the github is the latest one.

Re: bare metal Raspberry Pi Zero port

Posted: Sat Dec 14, 2019 7:50 pm
by Trekintosh
How difficult would it be to bring the code up to the current version of MicroPython?

Re: bare metal Raspberry Pi Zero port

Posted: Sun Dec 15, 2019 4:11 am
by boochow
How difficult would it be to bring the code up to the current version of MicroPython?
No difficulties.
I just have updated the repository and now it can be built with MicroPython v1.11.

Re: bare metal Raspberry Pi Zero port

Posted: Mon May 04, 2020 5:11 pm
by ZuluSpl0it
I've updated to MicroPython 1.12 on my fork:
https://github.com/ZuluSpl0it/micropython-raspberrypi
and I've put in a pull request to get it on the parent repo.

I was trying to enable the Native emitter by changing the options in mpconfigport.h. I've tried

#define MICROPY_EMIT_THUMB (1)
and
#define MICROPY_EMIT_ARM (1)

the @micropython.native decorator is now recognized, but the raspi Zero W hangs.

While running a performance test (just incrementing a variable in a loop for 1 second and then reporting the total):

On a ESP8266 I get:
No Optimization Count: 30278
Just preloading class Count: 45119
Native emitter only Count: 45440
Preload class plus Native emitter Count: 81750


On the raspi Zero W I get:
No Optimization Count: 43886
Just preloading class Count: 71338
then it just hangs for the function with the @micropython.native decorator

Any ideas on what I can try? Or am I enabling the wrong options?

Re: bare metal Raspberry Pi Zero port

Posted: Thu May 07, 2020 4:44 pm
by PH1LJ
can you please help

I'm trying to create a bare-metal usd card for my Pi zero, I'm pretty sure I created the usd card as per the detail
but all I see is the rainbow screen on the pi.

Just to confirm - all I have on the USD is shown below :-

build folder with firmware.img
bootcode.bin
config.txt
start.elf

Any ideas

Re: bare metal Raspberry Pi Zero port

Posted: Fri May 08, 2020 1:08 pm
by ZuluSpl0it
Are you able to connect via the REPL? Did you use the main repo or a fork to build?