Search found 3821 matches

by dhylands
Thu Jan 06, 2022 8:46 pm
Forum: Other Boards
Topic: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?
Replies: 4
Views: 10509

Re: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?

It looks like the NUCLEO_H743ZI2 includes most of the definitions from the NUCLEO_H743ZI board and it has this line in it: https://github.com/micropython/micropython/blob/b96318ab612dff4b09e0e0437a8d2bbefa25668b/ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.h#L16 So yeah - it looks like 400 MHz is ...
by dhylands
Thu Jan 06, 2022 6:25 pm
Forum: Other Boards
Topic: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?
Replies: 4
Views: 10509

Re: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?

To be honest, I don't understand how you could get different results from rshell versus thonny. rshell doesn't reconfigure anything related to frequency on the board, so you should get the exact same results with rshell as you should with a simple serial terminal like picocom/minicom etc.
by dhylands
Thu Jan 06, 2022 6:00 pm
Forum: Development of MicroPython
Topic: how to determine needed flash size
Replies: 2
Views: 12678

Re: how to determine needed flash size

When you build the firmware, it prints the size, something like this: LINK build-PYBV11/firmware.elf text data bss dec hex filename 368392 16 27424 395832 60a38 build-PYBV11/firmware.elf The size of the "text" section is the amount of space needed for code. The "data" section corresponds to global v...
by dhylands
Thu Jan 06, 2022 5:55 pm
Forum: General Discussion and Questions
Topic: Copying from Pyboard to C drive with rshell
Replies: 3
Views: 7329

Re: Copying from Pyboard to C drive with rshell

Under windows, / will be the root of the current drive. So you have 2 options. When you launch rshell, the current directory will be the directory that you were in when you launched. You could then use: cp /pyboard/main.py main.py or if you had already changed the current directory to say /pyboard: ...
by dhylands
Tue Jan 04, 2022 10:05 pm
Forum: Development of MicroPython
Topic: Problem with minimal Micropython firmware
Replies: 3
Views: 14596

Re: Problem with minimal Micropython firmware

It looks like the default setting for the sys module to be included by default is that MICROPY_CONFIG_ROM_LEVEL need to to set to at least MICROPY_CONFIG_ROM_LEVEL_CORE_FEATURES. For the minimal port, this is set to MICROPY_CONFIG_ROM_LEVEL_MINIMUM. You can either explicitly enable MICROPY_PY_SYS in...
by dhylands
Thu Dec 30, 2021 7:35 pm
Forum: Other Boards
Topic: [Nucleo-H743ZI2]Servo Object/Library
Replies: 2
Views: 16336

Re: [Nucleo-H743ZI2]Servo Object/Library

Did you mean pyb.Servo(1) (i.e. capital S) That corresponds to this documentation: https://docs.micropython.org/en/latest/library/pyb.Servo.html The arguments to pyb.servo() are the servo number and the position. I'm going to guess that this is an older function that only exists for backwards compat...
by dhylands
Thu Dec 30, 2021 7:16 pm
Forum: Development of MicroPython
Topic: Attain the master repository
Replies: 1
Views: 12790

Re: Attain the master repository

You may want to look at this thread: https://forum.micropython.org/viewtopic.php?f=3&t=742&p=4320#p4319 There is also github documentation om creating a pull request here: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/crea...
by dhylands
Mon Dec 20, 2021 7:46 pm
Forum: ESP32 boards
Topic: ESP32 library for displays 1602, 2004, MT-20S4M (I2C interface) with Russian letters (Cyrillic)
Replies: 11
Views: 16403

Re: ESP32 library for displays 1602, 2004, MT-20S4M (I2C interface) with Russian letters (Cyrillic)

According to the datasheet, switching code pages is just single bit change at initialization time. The initialization routines (called __init__) all have something like this near the end of the routine: cmd = self.LCD_FUNCTION if num_lines > 1: cmd |= self.LCD_FUNCTION_2LINES self.hal_write_command(...
by dhylands
Mon Dec 20, 2021 2:15 am
Forum: ESP32 boards
Topic: ESP32 library for displays 1602, 2004, MT-20S4M (I2C interface) with Russian letters (Cyrillic)
Replies: 11
Views: 16403

Re: ESP32 library for displays 1602, 2004, MT-20S4M (I2C interface) with Russian letters (Cyrillic)

The hex data that you printed is the UTF-8 encoding of the string. The Cyrillic alphabet can be seen on this page: https://en.wikipedia.org/wiki/ISO/IEC_8859-5 If you iterate through each of the characters of the string character by character and subtract 864 from the unicode value, you'll see somet...
by dhylands
Sun Dec 19, 2021 5:07 am
Forum: General Discussion and Questions
Topic: Epoch date/time is the same for all MCU's..?
Replies: 10
Views: 23567

Re: Epoch date/time is the same for all MCU's..?

Micropython small ints are 31-bit signed.

So you get 30-bits of positive and 30-bits of negative values.