Search found 7 matches

by manpowre
Fri Nov 12, 2021 11:48 am
Forum: Raspberry Pi microcontroller boards
Topic: Leveraging second core, code hangs
Replies: 10
Views: 4950

Re: Leveraging second core, code hangs

the threshold is set to -1 when I print out the default threashold. the highest threashold I could use before it crashes is gc.threshold(5423).
It crashes at 5424.

It could be as simple as the rp2 port doesnt have default threashold set.
by manpowre
Fri Nov 12, 2021 7:34 am
Forum: Raspberry Pi microcontroller boards
Topic: Leveraging second core, code hangs
Replies: 10
Views: 4950

Re: Leveraging second core, code hangs

I did recompile the firmware as armv6 for my arduino rp2040 connect instead of armv7m found in cmakelists.txt (manifest) but same happened. then I set the threshold to 4096, and the gc collects automatically those floats. from machine import Timer, Pin import random import time import _thread import...
by manpowre
Fri Nov 12, 2021 5:44 am
Forum: Raspberry Pi microcontroller boards
Topic: Leveraging second core, code hangs
Replies: 10
Views: 4950

Re: Leveraging second core, code hangs

replace int(RNDBOUND / 2) with this: RNDBOUND // 2 and it works. Basically the code is creating 4k floats every iteration, and it floods the memory. by just calculate with integer as you used the int() function to force the division to int anyway, the double // does the trick as true integer calcula...
by manpowre
Mon Oct 25, 2021 2:42 pm
Forum: ESP32 boards
Topic: Micropython bluetooth is not working !!!
Replies: 3
Views: 2038

Re: Micropython bluetooth is not working !!!

weird, I got my Arduino ro2040 connect to pair with my iphone with this code, still developing it. My plan is to send data over BT to the microcontroller to do stuff with motors and neopixels:)) import bluetooth bt = bluetooth.BLE() bt.active(True) UUID_HR = const(0x2A37) _IRQ_ALL = const(0xffff) HR...
by manpowre
Mon Oct 25, 2021 10:49 am
Forum: Raspberry Pi microcontroller boards
Topic: Arduino rp2040 connect wifi through SPI
Replies: 4
Views: 3200

Re: Arduino rp2040 connect wifi through SPI

I made my own branch of master, and merged https://github.com/micropython/micropython/pull/7668 and https://github.com/micropython/micropython/pull/7669 and voila, the esp32spi interface on the arduino rp2040 connect is working, and its working great. Unlike adafruit's circuitpython only supporting ...
by manpowre
Tue Oct 19, 2021 8:10 am
Forum: Raspberry Pi microcontroller boards
Topic: Arduino rp2040 connect wifi through SPI
Replies: 4
Views: 3200

Re: Arduino rp2040 connect wifi through SPI

Yeah I noticed. Even though adafruit is doing amazing with making all those libraries available, still the core is outdated and missing a few things,.. its like the best stuff is shared between openMV fork , circuitpython fork and Micropython. I got rest of my stuff working on Micropython, was just ...
by manpowre
Mon Oct 18, 2021 10:22 pm
Forum: Raspberry Pi microcontroller boards
Topic: Arduino rp2040 connect wifi through SPI
Replies: 4
Views: 3200

Arduino rp2040 connect wifi through SPI

Adafruit wrote some python libraries to communicate with the wifi chip on the Arduino Connect rp2040 board (the board also has a accelerometer and a microphone). Circuitpython is a few years old fork, so I would love to stay on micropython, which is why Im looking into writing this communication obj...