Search found 11 matches

by mpython
Wed Oct 12, 2022 9:43 am
Forum: Development of MicroPython
Topic: C module
Replies: 1
Views: 29520

C module

Hello, I have a problem with compilation of C module to micropython for stm32 port. With include library dynruntime.h. The error is: In file included from ../../extmod/Cled/cblik.c:2: ../../py/dynruntime.h:37:2: error: #error "dynruntime.h included in non-dynamic-module build." 37 | #error "dynrunti...
by mpython
Fri Jul 29, 2022 7:47 am
Forum: Programs, Libraries and Tools
Topic: nucleo F767 PWM
Replies: 4
Views: 1961

Re: nucleo F767 PWM

Hello, the timing is µs. I am not sure about firing single pulse timers.
by mpython
Wed Jul 20, 2022 9:41 pm
Forum: Programs, Libraries and Tools
Topic: nucleo F767 PWM
Replies: 4
Views: 1961

Re: nucleo F767 PWM

Thank you for your help. I am still not sure how to implement timer offset. Do you have some example?
I didn't find help for stm library.
by mpython
Mon Jul 18, 2022 12:30 pm
Forum: Programs, Libraries and Tools
Topic: nucleo F767 PWM
Replies: 4
Views: 1961

nucleo F767 PWM

Hello,
I use Nuclo F767 with micropython.
I need to set PWM in multiple timers, unfortunately, I noticed, that two different timers aren't synchronized.
Any help? And I also need to do PWM like in the picture below. and therefore I need some offset....
pwm.png
pwm.png (52.92 KiB) Viewed 1961 times
Thank you for any advice.
by mpython
Mon Jul 26, 2021 8:05 pm
Forum: Development of MicroPython
Topic: Nucleo H743ZI2 USB connect
Replies: 2
Views: 2639

Nucleo H743ZI2 USB connect

Hello, I have a problem with connecting to H743ZI2 via USB after deploying the micropython firmware.

The error from thonny:
Thony_repl.PNG
Thony_repl.PNG (13.43 KiB) Viewed 2629 times
Thank you for your advice.
by mpython
Fri Apr 23, 2021 6:26 am
Forum: Development of MicroPython
Topic: Nucleo F429ZI DAC/ADC
Replies: 2
Views: 3341

Re: Nucleo F429ZI DAC/ADC

Hello,
why isn't implemented PWM in the machine library for nucleo f429zi?

Thank you for your response.
by mpython
Sun Apr 04, 2021 9:22 pm
Forum: Development of MicroPython
Topic: Nucleo F429ZI DAC/ADC
Replies: 2
Views: 3341

Nucleo F429ZI DAC/ADC

Why isn't possible to run ADC on some pins in the yellow ring on the picture, but different pins yes? nucleo_adc_.jpg In the datasheet, it should work. Is it possible to repair it in firmware? #F3=pyb.ADC('PF3') #A3 #F5=pyb.ADC('PF5') #A4 #F10=pyb.ADC('PF10')#A5 Traceback (most recent call last): Fi...
by mpython
Wed Jan 27, 2021 8:34 pm
Forum: Development of MicroPython
Topic: firmware nucleo F767ZI
Replies: 1
Views: 1424

firmware nucleo F767ZI

Hello, I have a problem with build firmware for Nucleo F767ZI. report: CC mbedtls/mbedtls_port.c CC build-NUCLEO_F767ZI/pins_NUCLEO_F767ZI.c LINK build-NUCLEO_F767ZI/firmware.elf arm-none-eabi-ld: error: build-NUCLEO_F767ZI/firmware.elf uses VFP register arguments, /usr/lib/gcc/arm-none-eabi/4.9.3/l...
by mpython
Sat Dec 05, 2020 10:59 pm
Forum: Development of MicroPython
Topic: UART (Pin Alternate Functions)
Replies: 4
Views: 3807

Re: UART (Pin Alternate Functions)

Thank you for your response.
Now I can write to UART, but not read. Where could be the problem?

Code: Select all

>>> from machine import UART
>>> uart=UART(2,9600)
>>> uart.write ('444')
3
>>> response=uart.read(5)
>>> print (response)
None
by mpython
Wed Nov 18, 2020 8:18 pm
Forum: Development of MicroPython
Topic: UART (Pin Alternate Functions)
Replies: 4
Views: 3807

Re: UART (Pin Alternate Functions)

OK, I have to really call the stm32 pins.
So, when some pins don't have the alternate function, which is in the: Pin.af_list().
I can't add a new function to the pins?