Search found 363 matches

by shaoziyang
Fri Feb 24, 2017 3:46 pm
Forum: Other Boards
Topic: REPL on STM32F429 DISC
Replies: 3
Views: 3673

Re: REPL on STM32F429 DISC

Plug in usb in both USB, miniUSB for STlink and macroUSB for pyboard.
by shaoziyang
Thu Feb 23, 2017 9:33 am
Forum: ESP8266 boards
Topic: Reading VCC without external components
Replies: 7
Views: 8474

Re: Reading VCC without external components

This may cause by your board.

In my board, ADC(0).read() is work, and ADC(1).read() return 65535
by shaoziyang
Thu Feb 23, 2017 8:49 am
Forum: ESP8266 boards
Topic: Reading VCC without external components
Replies: 7
Views: 8474

Re: Reading VCC without external components

ESP8266's ADC is 10-bit, so value is 0-1023.

you may read it as ADC(0).read()
by shaoziyang
Fri Feb 10, 2017 4:26 am
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7064

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 W...
by shaoziyang
Wed Feb 08, 2017 6:21 am
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7064

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 w...
by shaoziyang
Sun Feb 05, 2017 8:54 am
Forum: Development of MicroPython
Topic: stm32l4 port and cmake
Replies: 9
Views: 7064

Re: 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 ...
by shaoziyang
Mon Jan 30, 2017 1:21 pm
Forum: Other Boards
Topic: SPIFLASH for STM32L476DISC Speed is very slow
Replies: 2
Views: 3038

Re: SPIFLASH for STM32L476DISC Speed is very slow

2.jpg
2.jpg (19.21 KiB) Viewed 3016 times
file copy speed is below 1KB/s.
by shaoziyang
Mon Jan 30, 2017 1:14 pm
Forum: Other Boards
Topic: SPIFLASH for STM32L476DISC Speed is very slow
Replies: 2
Views: 3038

SPIFLASH for STM32L476DISC Speed is very slow

After enable internal spiflash in STM32L476DISC board, pybflash disk size is enlarged, but speed is became very slow.
by shaoziyang
Sat Jan 28, 2017 3:39 pm
Forum: MicroPython pyboard
Topic: Does pyboard support soft I2C?
Replies: 1
Views: 2250

Does pyboard support soft I2C?

Does pyboard may use any pin to implement soft I2C? Because hardware I2C pin can not use.
by shaoziyang
Thu Jan 19, 2017 2:07 am
Forum: Other Boards
Topic: Does pyboard support 3-wire mode SPI bus?
Replies: 2
Views: 3216

Re: Does pyboard support 3-wire mode SPI bus?

MicroPython doesn't directly support this, but the reference Manual for the STM32F405 says that it is supported. So I think that you can make it work by using the stm module to read/write the registers directly to tweak the SPI mode. Here's an example of using the stm module to set the HDSEL bit in...