Search found 10 matches

by stiege
Thu Feb 09, 2017 10:22 pm
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7085

Re: stm32l4 port and cmake

Thanks for that. I still have some problems with the stm32l4 port. If I use `dfu-util -a 0 -s :mass-erase:force -D firmware.dfu` then I no longer get the dir() hard fault. I can also see that on first boot the LEDs stay on for longer (presumably initialising the file system). Unfortunately though Wi...
by stiege
Tue Feb 07, 2017 11:53 pm
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7085

Re: stm32l4 port and cmake

I think my issue may be: In order to connect the OTG_FS_VBUS and OTG_FS_ID signals from the connector CN7 to the OTG FS hardware IP of STM32L476VGT6, remove the LCD from its socket U5, and close SB24 and SB25. Unsure though. I managed to connect via the ST link USB instead. I get a serial port with ...
by stiege
Tue Feb 07, 2017 11:44 pm
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7085

Re: stm32l4 port and cmake

Hi @shaoziyang, I just tried uploading a port to the STM32L476 discovery board that I ordered and it almost seems to work - unfortunately Windows is having a problem with the USB device (Invalid Device Desciptor, Code 43). I can't see immediately why this would have any problems while the pyboard wo...
by stiege
Tue Feb 07, 2017 9:29 pm
Forum: General Discussion and Questions
Topic: pyb.stop on REPL
Replies: 8
Views: 5813

Re: pyb.stop on REPL

Thanks for your help on this. In the end I did use pyb.standby() and went to sleep for 10 seconds at a time before waking to read just one output from the GPS. This meant that the MCU power consumption was now small when compared to the GPS constant draw of 25 - 30 mA or so, so good enough for my pu...
by stiege
Tue Feb 07, 2017 8:40 am
Forum: General Discussion and Questions
Topic: pyb.stop on REPL
Replies: 8
Views: 5813

Re: pyb.stop on REPL

Thanks @pythoncoder; I've perused those already but I suspect I'll be studying them in detail soon...
by stiege
Tue Feb 07, 2017 8:07 am
Forum: General Discussion and Questions
Topic: pyb.stop on REPL
Replies: 8
Views: 5813

Re: pyb.stop on REPL

Thanks so much. If I'm interpreting the datasheet correctly it looks like my options are: [*] Use UART4 and configure the SYSCFG_EXTICR1 register accordingly to gate PA1 as an event [*] Use wfi [*] Find another way Using wfi seems to increase current consumption for me, so I guess I'm stuck with the...
by stiege
Tue Feb 07, 2017 5:41 am
Forum: General Discussion and Questions
Topic: pyb.stop on REPL
Replies: 8
Views: 5813

Re: pyb.stop on REPL

Hi, Thanks so much for your prompt response. I am a bit confused now: pyb.stop() Put the pyboard in a “sleeping” state. This reduces power consumption to less than 500 uA. To wake from this sleep state requires an external interrupt or a real-time-clock event. Upon waking execution continues where i...
by stiege
Tue Feb 07, 2017 5:15 am
Forum: General Discussion and Questions
Topic: pyb.stop on REPL
Replies: 8
Views: 5813

pyb.stop on REPL

MicroPython v1.8.7 on 2017-02-07; PYBv1.1 with STM32F405RG Type "help()" for more information. >>> def test(): ... pyb.RTC().wakeup(1000) ... print("Before") ... pyb.stop() ... print("after") ... pyb.RTC().wakeup(None) ... >>> test() <REPL hangs> I would expect "Before" to be printed, then a wait o...
by stiege
Sun Feb 05, 2017 7:43 am
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7085

Re: stm32l4 port and cmake

Oops!

Thanks for pointing that out!
by stiege
Sat Feb 04, 2017 7:38 am
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7085

stm32l4 port and cmake

Hi all, Have just started using micropython and very keen to work on a port for the STM32Lxxx series (the low power range for ST). Any ideas about why this would be a bad idea or things to watch out for? I created a cmake build of the pyboard v11 at https://github.com/stiege/cmake_micropython ; it s...