please, step by step :-D
This a good bunch of technologies and system blend
path, cross compilation, usb communication and so on.
If you how to debug you can do what ever you want. because
ipm.py is just another python programm (a little bit more complicate
but that's all)
first check your device with putty and a simple main.py
check you've got the right to access your device
putty -serial -sercfg 57600 /dev/ttyUSB0
google it about device rights and configuration etc ...
check you're using 3.3V for FOCA and check your connection
cable (sorry for this stupid question, but ... sometime we miss
:D )
then just use your FOCA to get log with
putty -serial -sercfg 57600 /dev/ttyUSB0
don't use ipm for the moment.
modify your main.py to add some print
see code modification at the bottom.
The function "default_demo"
wait that you click on blue button and loop
over a simple demo (glowing led, playing with axel
and so on ...)
and print things on FOCA. normally
tx should be green when something is emitted by STM32F4
on FOCA. check the green light :). I've put
a print in the while loop so you will have immediate print
if it's correct you 've got 2 links with 2 usb cables
one on foca and one on debug part of stm32f4.
use scons -c and scons -c PLATFORM=stm32f4
to clean.
===================================
def default_demo():
"""
"""
while True:
print "hello"
wait_BTN_release()
x.AXEL(0)
LED_all();
while 0==x.BTN(): # until push USER BUTTON
print "button 1"
LED_glow_seq(i)
wait_a_bit()
wait_BTN_release()
x.AXEL(1)
print "button 2"
while 0==x.BTN(): # until push USER BUTTON
axel= x.AXEL()
LED_axel_indicate(axel)
wait_a_bit()
def main():
"""
"""
#launch_ipm()
default_demo()
#gpio_demo()
Le 03/12/2013 16:37, kittipon meesompop a �crit :
> --
> --
> You are subscribed to the "python-on-a-chip" (or p14p for short)
> Google Group.
> Site:
http://groups.google.com/group/python-on-a-chip
>
> ---
> You received this message because you are subscribed to the Google
> Groups "python-on-a-chip" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
python-on-a-ch...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.