IPM ImportError on AVR

48 views
Skip to first unread message

Vasco

unread,
Aug 30, 2012, 10:15:29 AM8/30/12
to python-o...@googlegroups.com
Hello,

after some problems, I was able to run p14p on ATMega1284P. I used latest source from repository (version from Jun-22-2012). I modified source in src/platform/avr for m1284p and program it into chip. The simple python code is running, I'm able to control output pins and I can print strings to UART.

But, if I try to import ipm and then run ipm.ipm() i get this traceback:

Error: 0xE6
Release: 0x08
FileId: 0x00
LineNum: 0
Traceback (top first):
main()
<module>.

According to ErrorsAndExceptions.txt file the 0xE6 error is ImportError. I have absolutely no idea what is wrong. Where can i start to debug? How can I get more information or more detailed traceback?

Dean Hall

unread,
Sep 3, 2012, 11:26:54 PM9/3/12
to python-o...@googlegroups.com
I haven't done this, but you might run in the AVR simulator, set a breakpoint on plat_reportError() in src/platform/avr/platform.c and view the C function call stack to see where the exception was launched.

!!Dean
> --
> 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

Reply all
Reply to author
Forward
0 new messages