micropython-raspberrypi icon indicating copy to clipboard operation
micropython-raspberrypi copied to clipboard

Rainbow Screen on RPi Zero

Open nogleo opened this issue 3 years ago • 10 comments

I'm trying to make it work but no success... Follow the instructions and just rainbow... help please

nogleo avatar Jul 31 '20 21:07 nogleo

Hi @nogleo, if you got the binary from v1.0.0, the main.py need to be edited to enable the frame buffer console. If you already edited the main.py as described in the README.txt and still couldn't get the frame buffer enabled, try to replace main.py with this single-file alternative.

boochow avatar Aug 02 '20 14:08 boochow

Screenshot from 2020-08-05 10-57-07 sadly I've tried both cases and got nothing...

maybe I'm just noobing on something

nogleo avatar Aug 04 '20 15:08 nogleo

is it really all I have to put into de SD to make it work?

nogleo avatar Aug 05 '20 15:08 nogleo

Your files seem OK. To test whether the boot process is succeeded or not, try this:

The attached file is a simple bare-metal program that blinks Pi's LED eternally. (source code is here.) Extract blink_led.img from zip and copy it to your SD card. Edit config.txt and replace the line kernel=firmware.img to kernel=blink_led.img then save the file. If your Pi's LED blinks, then your bootcode.bin and start.elf have no problem.

I know there are some compatibility issues between some SD cards and the SD card driver in micropython. Using other SD cards may solve the problem.

blink_led.zip

boochow avatar Aug 05 '20 16:08 boochow

Tested it with 2 different SDcards ando no hope, not even the rainbow was appearing anymore

nogleo avatar Aug 05 '20 21:08 nogleo

I made the disk image of my SD card that runs correctly. Try writing this image to your SD card with Raspberry Pi Imager. The disk size will become 128MB regardless of the actual size of your SD card, but don't mind. It is because I set the size of the first partition to 128MB.

upyrpi_usb.zip

boochow avatar Aug 06 '20 12:08 boochow

IT'S ALIIIIIIVE!!!

Thank you very much!!! I'm still not sure what is the thing that made it work hahahahaha. Maybe working on linux has something to do with that? Actually the usb host is not working and gives me erros

Just one question now, can it work through repl?

nogleo avatar Aug 06 '20 13:08 nogleo

Congratulations! Some USB keyboards works, others not. If you could find one that works, it would work with REPL. I have tested several USB keyboards, but have not yet found the conditions that determine whether a keyboard works or not. I'm using this keyboard for testing. => https://www.amazon.com/dp/B00W7WSIKS/

boochow avatar Aug 06 '20 15:08 boochow

when I ask about repl I mean run the repl in the PC like with a ESP32. Is it possible?

nogleo avatar Aug 06 '20 22:08 nogleo

Yeah, it is possible, but you need a USB-UART adapter. Most of the ESP32 development boards have a USB-serial converter chip on board, but RPi doesn't. An external USB-serial module should be connected to your PC and Pi like the attached image. rpi-zero-serial

boochow avatar Aug 06 '20 23:08 boochow