Search found 2715 matches

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: 2655

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: 54
Views: 17453

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: 54
Views: 17453

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: 54
Views: 17453

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: 234

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: 197

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.
by Roberthh
Tue Jun 22, 2021 7:55 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 54
Views: 17453

Re: Teensy 4.0 & 4.1

@RobH The speed drop comes with commit bbdc98f72, from version 1.15-182 to v1.15-183, causing the pystone numbers to drop from ~5500 to 2300. But that commit "just" add most of the Python features. Nothing that is really needed for the pystone test. It increases the code size quite a bit from 195552...
by Roberthh
Mon Jun 21, 2021 8:23 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 54
Views: 17453

Re: Teensy 4.0 & 4.1

The timing should be fine. In my tests it said it lasted 2.1 seconds, and that matches the observation. At a figure of 4200 it was 1.1 second, and that's a noticeably difference. I was considering whether the fast speed was a lucky memory layout which makes best use of the cache. The difference betw...
by Roberthh
Mon Jun 21, 2021 6:36 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 54
Views: 17453

Re: Teensy 4.0 & 4.1

No major change. i have built v1.15-216. Pystone values ~2800.
V1.16-3, Values at ~2300.
Plain Makefile. Double precision float. With single precision float the numbers for V1.16.3 are ~2800.