Search found 22 matches

by stmfresser
Tue Aug 16, 2016 5:38 am
Forum: General Discussion and Questions
Topic: KeyboardInterrupt Ctrl+c does not work
Replies: 8
Views: 9210

Re: KeyboardInterrupt Ctrl+c does not work

It works fine, when i switched to the old commit 27.07.2016 with same mpconfig and same code. I think it's a bug. Strange

the code ist simple

Code: Select all

while 1:
      print('hello')
      pyb.delay(100)
by stmfresser
Tue Aug 16, 2016 5:04 am
Forum: General Discussion and Questions
Topic: KeyboardInterrupt Ctrl+c does not work
Replies: 8
Views: 9210

Re: KeyboardInterrupt Ctrl+c does not work

what happened if you don't use Switch Button. I'm using STM32F407 on my modified Board similar to Discovery Board without Switch.

Before built, i've disabled has_switch to 0 on mpconfig, I think, it would nothing happen if you press ctrl +c during while loop without using switch button there.
by stmfresser
Tue Aug 16, 2016 1:44 am
Forum: General Discussion and Questions
Topic: KeyboardInterrupt Ctrl+c does not work
Replies: 8
Views: 9210

KeyboardInterrupt Ctrl+c does not work

Hello,

i have tested recent build of micropython on STM32F407 Discovery Board, Unfortunately the KeyboardInterrupt 'ctrl+c' does not work, no effect. The build about 3 weeks ago, it worked well. I've using minicom on OSX10.5

Does anyone know, how to solve it.

Thanks in advance.
by stmfresser
Sun Jul 31, 2016 7:04 pm
Forum: General Discussion and Questions
Topic: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?
Replies: 7
Views: 6702

Re: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?

LOL , i have still connected BOOT0 to VDD. now it works thanks!! Welcome to minicom 2.7 OPTIONS: Compiled on Oct 17 2015, 05:42:37. Port /dev/tty.usbmodem6442, 21:03:14 Press Meta-Z for help on special keys MicroPython v1.8.2-77-gbc39129 on 2016-07-31; F4DISC with STM32F407 Type "help()" for more in...
by stmfresser
Sun Jul 31, 2016 7:00 pm
Forum: General Discussion and Questions
Topic: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?
Replies: 7
Views: 6702

Re: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?

i've deployed as you suggest make USE_PYDFU=0 BOARD=STM32F4DISC deploy Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. Writing build-STM32F4DISC/firmware.dfu to the board dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010...
by stmfresser
Sun Jul 31, 2016 6:36 pm
Forum: General Discussion and Questions
Topic: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?
Replies: 7
Views: 6702

Re: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?

in the meantime i tried with

Code: Select all

sudo make deploy-stlink
Now i see 2 removable devices. "DIS_F407VG and PYBFLASH". Should i deploy the firmware as you suggest?

Thanks.
by stmfresser
Sun Jul 31, 2016 6:09 pm
Forum: General Discussion and Questions
Topic: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?
Replies: 7
Views: 6702

Re: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?

That should no longer be the case. The PWM LED support is now configurable, and the STM32F4DISC board definition doesn't enable PWM for any of the LEDs, so all of the timers should be available. Are you using recent firmware? Thanks for reply. i'm using "Micro Python v1.4.4-11-gc8870b7-dirty". I ju...
by stmfresser
Sun Jul 31, 2016 5:30 pm
Forum: General Discussion and Questions
Topic: use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?
Replies: 7
Views: 6702

use TIM3 for PWM PB4, PB5 on STM32F407 Discovery Board possible?

Hello,

micropython build on STM32F407 Discovery Board does not support TIM3 for PB4, PB5. Micropython says, TIM3 is used for System Timer.

Is it possible to change the Sys Timer as TIM2, or TIM4 ? I have to use PB4, PB5 as PWM :(

Thanks in advance. Sorry for my bad english.
by stmfresser
Tue Jun 23, 2015 7:45 pm
Forum: General Discussion and Questions
Topic: I2C write and read sequence Problem
Replies: 1
Views: 2168

Re: I2C write and read sequence Problem

done!!

for write:

data = bytearray()
data.append(0x90)
data.append(0x47)
data.append(0xFF)

i2c.send(data, SLAVE)

for read:

data = bytearray()
data.append(0x10)
data.append(0x47)

i2c.send(data, SLAVE)
i2c.recv(1, SLAVE)
by stmfresser
Tue Jun 23, 2015 7:27 pm
Forum: General Discussion and Questions
Topic: I2C write and read sequence Problem
Replies: 1
Views: 2168

I2C write and read sequence Problem

Hello, i'm trying to understand the write and read sequence of I2C implementiation on micropython and i would implement the following write and read sequence of an sensor on the image. read.png i2c.mem_write(0x47, 0b1010000, 0x90) i2c.send(0xFF, 0b1010000) write.png i2c.mem_write(0x47, 0b1010000, 0x...