micropython on STM32G0B1CC #16685
Replies: 5 comments 13 replies
-
The difference between the two devices is flash size and pin count. The lower flash size of the CC part is the major problem. The firmware size is about 300k at the moment. So you have to drop quite a few packages for a fit to get the firmware size below 256k, or below 200k to get a small file on board system. |
Beta Was this translation helpful? Give feedback.
-
Hi @robert-hh it works at 99%. I think CTRL C doesn't work when my program is launched in RAM (my main.py is empty)
in REPL mode CTRL C works
do you have any ideas? Thanks |
Beta Was this translation helpful? Give feedback.
-
In test.py there is from time import sleep
While True:
print("test")
sleep(0.5) I use mpremote but I have the same problem with thonny I always have a connection problem with mpremote when I first connect. On the other hand, Then Tomorrow I'm going to change my FTDI 3.3V cable No more USB hub I don't understand some of the macros in mpconfigboard.h #define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE What's your role? Have I forgotten something in mpconfigboard.h? Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi @robert-hh I investigated and here are my observations This is my test.py import time
from machine import UART
uart = UART("LP1", 57600)
while True:
print("test")
uart.write('abc')
time.sleep(0.5) with this code my REPL is stuck, if I remove this is my mpconfigboard.h
if I look in stm32g0b1_af.csv, I wonder if I don't have a conflict between LPUART1 and my REPL on USART3 micropython/ports/stm32/boards/stm32g0b1_af.csv Lines 27 to 30 in 112f657 And maybe I no longer have access to the REPL (USART3) when I loop on LPUART1 Thank you |
Beta Was this translation helpful? Give feedback.
-
Thank you @robert-hh my problem is really with LPUART1 but I can't solve it
This code works (UART = 1 or 4) import time
from machine import UART, Pin
#pb11 = Pin("B11", mode=Pin.ALT, alt=Pin.AF1_LPUART1)
#pb10 = Pin("B10", mode=Pin.ALT, alt=Pin.AF1_LPUART1)
uart = UART(1, 57600)
while True:
print("test")
uart.write('abc')
time.sleep(0.5) with UART LP1 stuck (with mpremote and thonny) import time
from machine import UART, Pin
pb11 = Pin("B11", mode=Pin.ALT, alt=Pin.AF1_LPUART1)
pb10 = Pin("B10", mode=Pin.ALT, alt=Pin.AF1_LPUART1)
uart = UART("LP1", 57600)
while True:
print("test")
uart.write('abc')
time.sleep(0.5) is this how you change the alernative function ? Thank you |
Beta Was this translation helpful? Give feedback.
-
Hello,
I need to run micropython on an STM32G0B1CC and I would like to know which files to modify.
micropython STM32G0B1RE exists, I suppose that it should not have much modification.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions