Search found 197 matches

by HermannSW
Sun Mar 21, 2021 8:52 pm
Forum: Raspberry Pi microcontroller boards
Topic: Wireless Pico Micropython REPL
Replies: 3
Views: 10470

Wireless Pico Micropython REPL

Details and animations in this thread: https://www.raspberrypi.org/forums/viewtopic.php?f=146&t=307527 Basically ESP01 with flashed WiFiTelnetToSerial ESP8266 Arduino demo allows for wireless telnet session into Pico REPL: https://www.raspberrypi.org/forums/download/file.php?id=45782 Sample telnet s...
by HermannSW
Fri Mar 12, 2021 11:55 am
Forum: Programs, Libraries and Tools
Topic: Advantages of REPL in Thonny
Replies: 0
Views: 2540

Advantages of REPL in Thonny

Today I did use Thonny for the very first time. First I went to Regular mode and selected execution on Raspberry Pi Pico: https://www.raspberrypi.org/forums/viewtopic.php?f=146&t=306736 Without having written any script with Thonny yet, I can see two advantages over running Pico Micropython REPL wit...
by HermannSW
Tue Mar 09, 2021 4:49 pm
Forum: Raspberry Pi microcontroller boards
Topic: When will daily Pico Micropython build switch to use new V1.1.0 pico-sdk?
Replies: 1
Views: 1504

When will daily Pico Micropython build switch to use new V1.1.0 pico-sdk?

On weekend V1.1.0 pico-sdk was published: https://www.raspberrypi.org/forums/viewtopic.php?f=144&t=300372#p1831643 It contains new features, the one I am interested in is baudrate switch entering bootsel mode. If micropython/lib/pico-sdk would be updated before creating daily build http://micropytho...
by HermannSW
Fri Mar 05, 2021 5:12 pm
Forum: Raspberry Pi microcontroller boards
Topic: External "machine.reset()"
Replies: 1
Views: 1422

External "machine.reset()"

I don't know how useful this feature is, but you can reboot Pico Micropython as if "machine.reset()" was called, without having a Micropython session open, or during eg. a while loop is active. Only 8 lines of C code needed to be added once to "pico/micropython/lib/tinyusb/src/tusb.c". After that th...
by HermannSW
Thu Mar 04, 2021 11:31 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico Micropython overclocked twice (250MHz) works fine
Replies: 13
Views: 14894

Re: Pico Micropython overclocked twice (250MHz) works fine

Thanks. Works as expected, measured with consecutive microsecond timestamp differences (10/125/250MHz): MicroPython v1.14-83-g680ce4532-dirty on 2021-03-04; Raspberry Pi Pico with RP20 Type "help()" for more information. >>> import machine, time >>> tus=time.ticks_us >>> machine.freq(10000000) >>> p...
by HermannSW
Thu Mar 04, 2021 5:25 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico Micropython overclocked twice (250MHz) works fine
Replies: 13
Views: 14894

Re: Pico Micropython overclocked twice (250MHz) works fine

Hi Roberthh, after I was able to build Micropython, I did copy your changed file and rebuilt for machine.freq() support: https://raw.githubusercontent.com/robert-hh/micropython/rp2_freq/ports/rp2/modmachine.c Then I did enable UART REPL in ports/rp2/mpconfigport.h: #define MICROPY_HW_MCU_NAME "RP204...
by HermannSW
Thu Mar 04, 2021 4:37 pm
Forum: Raspberry Pi microcontroller boards
Topic: How to build MicroPython for Pico (rp2)?
Replies: 10
Views: 60369

Re: How to build MicroPython for Pico (rp2)?

Thanks @st42, I followed the instructions and it worked well. I have built Micropython some time ago, perhaps following those instructions. @taPIQoLEHUMA your steps update submodule lib/pico-sdk twice. But I took the "-j4" from your last step, works well, and in "1.3. Building MicroPython From Sourc...
by HermannSW
Wed Mar 03, 2021 10:14 pm
Forum: Raspberry Pi microcontroller boards
Topic: Boochow's FBconsole on SSD1306
Replies: 0
Views: 1504

Boochow's FBconsole on SSD1306

Boochow did add missing os.dupterm() for Pico, allowing his FBconsole to run REPL and SSD1306 in parallel to UART and USB: https://www.raspberrypi.org/forums/viewtopic.php?f=146&t=304410 https://www.raspberrypi.org/forums/download/file.php?id=45080 I am struggling building MicroPython for the Pico, ...
by HermannSW
Wed Mar 03, 2021 10:08 pm
Forum: Raspberry Pi microcontroller boards
Topic: main.py isn't running when Pico connected to external power
Replies: 8
Views: 13160

Re: main.py isn't running when Pico connected to external power

I used rshell to copy files onto Pico MicroPython flash filesystem (cp main.py /pyboard). Today I copied boot.py and main.py, and both get executed, on powering as well as on soft reboot: https://www.raspberrypi.org/forums/viewtopic.php?f=146&t=301927&p=1830113#p1830113 https://www.raspberrypi.org/f...