Search found 244 matches

by shaoziyang
Sat Apr 30, 2016 2:02 pm
Forum: Other Boards
Topic: Build STM32L476DISC error
Replies: 1
Views: 1094

Build STM32L476DISC error

I build STM32L476DISC, and get below error message. CC ../lib/utils/printf.c CC main.c In file included from hal/l4/inc/stm32l4xx_hal_def.h:49:0, from hal/l4/inc/stm32l4xx_hal_rcc.h:47, from boards/STM32L476DISC/stm32l4xx_hal_conf.h:194, from hal/l4/inc/stm32l4xx_hal.h:48, from ./mpconfigport.h:216,...
by shaoziyang
Tue Apr 19, 2016 2:17 am
Forum: Other Boards
Topic: help DS18x20 sensor in STM32F7DISC
Replies: 1
Views: 1051

Re: help DS18x20 sensor in STM32F7DISC

I have solve this problem. It cause by onewire delay. Open onewire.py, and modify

self.write_delays = (1, 40, 40, 1)
self.read_delays = (1, 1, 40)

to

self.write_delays = (6, 64, 60, 10)
self.read_delays = (6, 9, 55)

then DS1820 will work in STM32F7DISC now.
by shaoziyang
Mon Apr 18, 2016 8:48 am
Forum: Other Boards
Topic: I2C1 is not work correctly in STM32F7DISC
Replies: 0
Views: 1669

I2C1 is not work correctly in STM32F7DISC

I use I2C1 in STM32F7DISC to control a RTC chip (DS1307), I2C may work, but data is not correctly. Same chip and code is work fine with PYB v1.0.
by shaoziyang
Sun Apr 17, 2016 2:04 pm
Forum: Other Boards
Topic: help DS18x20 sensor in STM32F7DISC
Replies: 1
Views: 1051

help DS18x20 sensor in STM32F7DISC

I build micropython 1.7 with STM32F7DISC board, it works fine. When I connect a DS1820 sensor, it is not work, but Same DS1820 sensor is work in pyboard v1.0. >>> # STM32F7DISCO >>> from pyb import Pin >>> Pin('D2', Pin.OUT_PP).low() >>> Pin('D0', Pin.OUT_PP).high() >>> pyb.delay(100) >>> >>> from d...