Search found 2754 matches

by Roberthh
Sun Jul 18, 2021 7:58 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico Mounting SD Card
Replies: 16
Views: 1771

Re: Pico Mounting SD Card

FAT support is included in v1.16. otherwise VfsFat would not exist. I mounted already SD card on RP2, so it's possible. Error 19 indicates that the file system could not be detected. The SD card must only have a single FAT partition. Sometimes new cards have another small partition as the first one....
by Roberthh
Sat Jul 17, 2021 8:13 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 73
Views: 19347

Re: Teensy 4.0 & 4.1

Thanks for confirming that things run well. There are still a lot of peripherals to support. Next on my list is PWM. I2C looks, good, CAN as well. FLEXIO is also a very interesting I/O device. Or support for SPIRAM or additional Flash Memory. Especially helpful for Teensy. USB host is surely another...
by Roberthh
Sat Jul 17, 2021 8:03 pm
Forum: Raspberry Pi microcontroller boards
Topic: Trivial code sometimes takes 5ms and interrupts are missed
Replies: 10
Views: 252

Re: Trivial code sometimes takes 5ms and interrupts are missed

Even a non-complex gabage collection will take some time, if many objects have to get collected. A common approach to make the timing more predictable would be to manually force garbage collection when there seems time to do some, like in the main loop. If there a only a few objects to collect, it w...
by Roberthh
Sat Jul 17, 2021 3:25 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 73
Views: 19347

Re: Teensy 4.0 & 4.1

Cudos must go to @alphaFred, who started the effort. Without him I would not have considered working at that port, and would not have been able to do that. Being busy with his familiy and his daytime work, he might appear silent. But he is working on the port at every minute he can spare.
by Roberthh
Sat Jul 17, 2021 1:40 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 73
Views: 19347

Re: Teensy 4.0 & 4.1

After having stalled for a while, it is extended now. You can download actual builds from the MicroPython web site, at https://micropython.org/download/all/, which include quit a few of the machine class. >>> dir(machine) ['__class__', '__name__', 'ADC', 'I2C', 'LED', 'Pin', 'RTC', 'SDCard', 'SPI', ...
by Roberthh
Fri Jul 16, 2021 3:56 pm
Forum: Raspberry Pi microcontroller boards
Topic: Raspberry Pi Pico factory reset
Replies: 4
Views: 176

Re: Raspberry Pi Pico factory reset

There is a special .uf2 image which just wipes out the whole flash. I could not find the link again, but IO have a copy of that file. After running it, you must install the firmware .uf file again.
flash_nuke.zip
(8.87 KiB) Downloaded 8 times
by Roberthh
Thu Jul 15, 2021 7:29 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 73
Views: 19347

Re: Teensy 4.0 & 4.1

File changed now to display the changed frequency.
by Roberthh
Thu Jul 15, 2021 7:24 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 73
Views: 19347

Re: Teensy 4.0 & 4.1

That might be just the display, where the change has not be noted back to the config. Did you look at the bus?
by Roberthh
Thu Jul 15, 2021 4:46 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 73
Views: 19347

Re: Teensy 4.0 & 4.1

Just for a test, I made a version of mimxrt/machine_i2c.c, which supports the init() method with the keywords freq and drive . You 'll find it here: https://github.com/robert-hh/micropython/tree/mimxrt_i2c_init. You can simply copy over the file mimxrt/machine_i2c.c for testing. Generally I would sa...
by Roberthh
Thu Jul 15, 2021 3:25 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 73
Views: 19347

Re: Teensy 4.0 & 4.1

Both Hardware and Software I2c share the same dictionary. The hardware i2c has no init() method, that's why you get that message. You can simply instantiate the I2c again for a frequency change. That is not an expensive operation. I was thinking of implementing a separate init() method, but followed...