Search found 6 matches
- Thu Mar 07, 2024 11:06 am
- Forum: Other Boards
- Topic: Micropython Unix port on Raspberry Pi - I2C/SPI?
- Replies: 3
- Views: 6389
Re: Micropython Unix port on Raspberry Pi - I2C/SPI?
I did this a few months ago for a personal project: https://github.com/AsensioL/smbus2/blob/master/smbus2/smbus2.py I only recently got a chance to upload it. Check the last 2 commits. In the most recent one I add some support for the existing machine.i2c functions. Maybe it can help. Good luck Edit...
- Fri Feb 11, 2022 4:59 pm
- Forum: Other Boards
- Topic: STM32 NUCLEO F767ZI PWM
- Replies: 2
- Views: 4558
Re: STM32 NUCLEO F767ZI PWM
This is what has worked for me in the past on STM32 L4s and F0s: import pyb timer2 = pyb.Timer(2, freq=1000) ch1 = timer2.channel(1, pyb.Timer.PWM, pin=pyb.Pin.board.PA0, pulse_width_percent=50) Note that, the information about which pins are connected to each combination of Timer+Channel is availab...
- Fri Feb 11, 2022 4:51 pm
- Forum: Hardware Projects
- Topic: How do you configure MicroPython for a custom board?
- Replies: 11
- Views: 80778
Re: How do you configure MicroPython for a custom board?
After a few weeks of work, I finally got the STM32 G0 port working on the NUCLEO_G0B1RE.
I will be working over the next few days to make it available for everyone.
I haven't done this before, so any help/guidance would be greatly appreciated.
I will be working over the next few days to make it available for everyone.
I haven't done this before, so any help/guidance would be greatly appreciated.
- Fri Feb 04, 2022 3:36 am
- Forum: Development of MicroPython
- Topic: Can't find library for UART while compiling STM32 G0
- Replies: 2
- Views: 4916
Re: Can't find library for UART while compiling STM32 G0
I found the issue.
I was copying the stm32g0xx_hal_conf_base.h too closely from the template provided by ST.
The LL UART headers are normally imported through stm32##_hal_conf_base.h.
I was copying the stm32g0xx_hal_conf_base.h too closely from the template provided by ST.
The LL UART headers are normally imported through stm32##_hal_conf_base.h.
- Thu Feb 03, 2022 12:25 am
- Forum: Development of MicroPython
- Topic: Can't find library for UART while compiling STM32 G0
- Replies: 2
- Views: 4916
Can't find library for UART while compiling STM32 G0
Hi, I am working on porting the MicroPython to the STM32G0B1 Nucleo64 board (now that we finally have a 512 KB flash ROM). After several days, I have gotten stuck in the UART/USART module ... CC uart.c arm-none-eabi-gcc -I. -I../.. -Ibuild-NUCLEO_G0B1RE -I../../lib/cmsis/inc -I../../lib/stm32lib/CMS...
- Thu Jan 13, 2022 4:46 pm
- Forum: Hardware Projects
- Topic: How do you configure MicroPython for a custom board?
- Replies: 11
- Views: 80778
Re: How do you configure MicroPython for a custom board?
Hi,
There is a new 512 KB of flash STM32 G0 MCU (see NUCLEO-G0B1RE).
Are there any hard limitations that would prevent me from getting MicroPython running on it?
Thank you
There is a new 512 KB of flash STM32 G0 MCU (see NUCLEO-G0B1RE).
Are there any hard limitations that would prevent me from getting MicroPython running on it?
Thank you