Search found 8 matches

by r.finkers
Wed Sep 16, 2020 8:21 am
Forum: Development of MicroPython
Topic: Error building port for STM32WB55
Replies: 5
Views: 2996

Re: Error building port for STM32WB55

I've added a if defined in the micropython/ports/stm32/led.c file. That was the solution for me. Now it builds successful. :D case 2: __TIM2_CLK_ENABLE(); break; #if defined(TIM3) case 3: __TIM3_CLK_ENABLE(); break; #endif default: assert(0);
by r.finkers
Wed Sep 16, 2020 6:45 am
Forum: Development of MicroPython
Topic: Error building port for STM32WB55
Replies: 5
Views: 2996

Re: Error building port for STM32WB55

Yes I have. My mpconfigboard.mk: MCU_SERIES = wb CMSIS_MCU = STM32WB55xx AF_FILE = boards/stm32wb55_af.csv LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o # MicroPython settings MICROPY_PY_BLUETOOTH = ...
by r.finkers
Wed Sep 16, 2020 6:13 am
Forum: Development of MicroPython
Topic: Error building port for STM32WB55
Replies: 5
Views: 2996

Re: Error building port for STM32WB55

The board is custom made. There is a RGB led connected to Timer 2 CH1,2 and 4.
A non PWM build does succeed.

I've already tried to build the NUCLEO_WB55 and the USBDONGLE_WB55 and they succeed, but they don't have PWM leds.
by r.finkers
Tue Sep 15, 2020 12:03 pm
Forum: Development of MicroPython
Topic: Error building port for STM32WB55
Replies: 5
Views: 2996

Error building port for STM32WB55

Hello, I'm getting errors when building for STM32WB55VGQ6. The errors i get: CC led.c In file included from ../../lib/stm32lib/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_def.h:31:0, from ../../lib/stm32lib/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_dma.h:29, from ./boards/stm32wbxx_hal_conf_base.h:30, from ...
by r.finkers
Wed Dec 18, 2019 4:26 pm
Forum: Other Boards
Topic: [STM32L496] interrupt not working after entering low power mode
Replies: 6
Views: 3416

Re: [STM32L496] interrupt not working after entering low power mode

shaoziyang wrote:
Wed Dec 18, 2019 3:45 pm
rtc.wake() need a irq function:

Code: Select all

def rtc_irq(t):
    return

rtc.wakeup(4 * 1000, rtc_irq)
machine.sleep()
And it is better use machine.sleep() or machine.deepsleep() instaed of pyb.stop().
Okay I'll try this tomorrow. Why is it better to use machine.x ?
by r.finkers
Wed Dec 18, 2019 2:20 pm
Forum: Other Boards
Topic: [STM32L496] interrupt not working after entering low power mode
Replies: 6
Views: 3416

Re: [STM32L496] interrupt not working after entering low power mode

Is sw pin an wakeup pin? You may try wakeup use RTC or wakeup pin. Thanks for your reply. Yes the switch is connected to PA0. I've also tried the mcu to wakeup with the following code: import pyb led = pyb.Pin.board.LED rtc = pyb.RTC() rtc.wakeup(4000) # wakeup every 4000 ms (4 seconds) while True:...
by r.finkers
Wed Dec 18, 2019 12:50 pm
Forum: Other Boards
Topic: [STM32L496] interrupt not working after entering low power mode
Replies: 6
Views: 3416

Re: [STM32L496] interrupt not working after entering low power mode

I've found the solution. You can find it here.https://github.com/micropython/micropython/issues/5435.
The HSE clock is not enabled after waking up.
by r.finkers
Wed Dec 18, 2019 8:16 am
Forum: Other Boards
Topic: [STM32L496] interrupt not working after entering low power mode
Replies: 6
Views: 3416

[STM32L496] interrupt not working after entering low power mode

Hello, I have a problem with the interrupts on the STM32L496. I can't get out of any low power mode. I've tested the following code: import pyb sw = pyb.Switch() sw.callback(lambda:None) # do nothing except wake up pyb.stop() # pressing the USR switch will now wake the MCU and it'll continue executi...