Search found 2759 matches

by Roberthh
Sun Jun 27, 2021 8:25 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

Here is a firmware package that includes the FAT support. You can use that with SPI to connect a SD card. It also support a regular SD card at the SD card pins on the bottom side. But that is still under development. https://hidrive.ionos.com/lnk/P4CAiRPM Teensy 4.0 https://hidrive.ionos.com/lnk/n4C...
by Roberthh
Sun Jun 27, 2021 6:22 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

SDCard support is still under construction. You can use it with SoftSPI and the Python driver. But for that, FAT support has to be included.
by Roberthh
Sat Jun 26, 2021 7:54 pm
Forum: Raspberry Pi microcontroller boards
Topic: File size differences
Replies: 4
Views: 343

Re: File size differences

For the Adafruit boards the board definition seems wrong. The are all listed wih 8 MByte flash. Maybe Adafruit changed the board specs. The Raspberry Pi Pico has 2 MB flash, at least the devices I have here. So 1.3MB is fine.
by Roberthh
Fri Jun 25, 2021 6:59 am
Forum: ESP32 boards
Topic: Can I configure I2C frequency?
Replies: 1
Views: 180

Re: Can I configure I2C frequency?

Indeed. I can set it to 100_000, but not to 400_000. The way the frequency is set is by dividing 500_000 by an integer, with 1 as the smallest value. Therefore, resultingl values are 500_000, 250_000, 166_000, 125_000, ......
by Roberthh
Thu Jun 24, 2021 1:07 pm
Forum: Programs, Libraries and Tools
Topic: rshell & Raspberry Pi Pico - date & time sync
Replies: 10
Views: 3320

Re: rshell & Raspberry Pi Pico - date & time sync

You can set the rp2 rtc with rtc.datetime(). Use:

from machine import RTC
rtc=RTC()
rtc.datetime((year, month, day, weekday, hour, minute, second, 0))

The two brackets are essential, and it has to be an 8 element tuple.
by Roberthh
Wed Jun 23, 2021 6:43 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

I am almost sure that the differences we see are related to the Python dynamic memory management. I ran another test which was provided a while ago by @pythoncoder, which just does arithmetic and a little bit of looping. There, the numbers are consistent over all versions. That matches my observatio...
by Roberthh
Wed Jun 23, 2021 4:01 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

Generally i do the same: git checkout <hash-value> make clean make BOARD=TEENSY40 -j5 deploy The code size is reported at the end of the build. It is a table like this: Memory region Used Size Region Size %age Used m_flash_config: 512 B 4 KB 12.50% m_ivt: 48 B 4 KB 1.17% m_interrupts: 1 KB 1 KB 100....
by Roberthh
Wed Jun 23, 2021 10:13 am
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 78
Views: 19942

Re: Teensy 4.0 & 4.1

Yes. That's still strange. What I will do is writing a little test script that dumps the values of all internal clocks. Maybe that gives a hint about what is changing. The speed change between -182 and -183 is repeatable forth and back with today's builds.
by Roberthh
Wed Jun 23, 2021 6:17 am
Forum: Raspberry Pi microcontroller boards
Topic: Size of multiple PIO state machines
Replies: 3
Views: 436

Re: Size of multiple PIO state machines

There are two PIO bloxks. The first four and the second four state machine each share the same 32 word area of these two PIOs. So one optimization would be to put the state machines in the different groups. Unloading a single state machine from the 32 Word area is tricky. What could be achieved is r...
by Roberthh
Wed Jun 23, 2021 6:11 am
Forum: ESP32 boards
Topic: SPI is not working with Infineon current sensor TLI4970
Replies: 1
Views: 287

Re: SPI is not working with Infineon current sensor TLI4970

Usually the CS active state is a low level. p5.on() sets p5 to a high level. So better use p5.value(0) or p5(0) to set it to a low level, and p5.value(1) or p5(1) for a high level.