blackbox on windows 7 - can't find prop
sssidney
Posts: 64
hi,
Has anyone tried payload, blackcat or blackbox on windows 7?· I appologize in advance if this is·known issue·that I missed. I can't connect to the prop. I can connect to the prop using the propeller tool on the same pc and usb com port i.e. get the usual:
Propeller chip version 1 found on COM7.
Propellent also works:
propellent "\program files\catalina\demos\blink.binary"
Here's what I tried:
C:\Program Files\catalina\demos>payload -p7 blink2
No Propeller found on port COM7
C:\Program Files\catalina\demos>payload -a1 blink2.binary
No Propeller found on any port
C:\Program Files\catalina\demos>catalina -lc -g -D DEMO blink2.c
Catalina Compiler 2.4
······· 1 file(s) moved.
Homespun Spin Compiler 0.27
parsing C:\Program Files\Catalina\target\lmm_blackcat.spin
parsing C:\Program Files\Catalina\target\Catalina.spin
parsing C:\Program Files\Catalina\target\Catalina_Common.spin
parsing C:\Program Files\Catalina\target\BlackCat_DebugCog.spin
parsing C:\Program Files\Catalina\target\Catalina_LMM.spin
parsing C:\Program Files\Catalina\target\Catalina_HMI_Plugin_HiRes_Tv.spin
parsing C:\Program Files\Catalina\target\Catalina_comboKeyboard.spin
parsing C:\Program Files\Catalina\target\Catalina_comboMouse.spin
parsing C:\Program Files\Catalina\target\Catalina_mouse.spin
parsing C:\Program Files\Catalina\target\Catalina_HiRes_TV_Text.spin
parsing C:\Program Files\Catalina\target\TV_Half_Height.spin
compiling lmm_blackcat.spin
compiling Catalina.spin
compiling BlackCat_DebugCog.spin
compiling Catalina_LMM.spin
compiling Catalina_HMI_Plugin_HiRes_Tv.spin
compiling Catalina_comboKeyboard.spin
compiling Catalina_comboMouse.spin
compiling Catalina_mouse.spin
compiling Catalina_HiRes_TV_Text.spin
compiling TV_Half_Height.spin
compiling Catalina_Common.spin
writing blink2.binary
Writing listing to blink2.lst
C:\Program Files\catalina\demos>payload -d -a1 blink2
Catalina Payload 2.4
diagnostic level 1
arg: -a1
switch: -a1
auto mode will start at port COM1
arg: blink2
executable name = payload
Loading Propeller binary blink2.binary
File size = 9632
baudrate = 115200
timeout = 250
sync timeout = 100
reset delay = 0
interfile delay = 500
Trying COM1 ... unable to open comport
Trying COM2 ... unable to open comport
Trying COM3 ... opened port
Error: lfsr data incorrect at 253 - received 255 (expected 254)
Trying COM4 ... unable to open comport
Trying COM5 ... unable to open comport
Trying COM6 ... unable to open comport
Trying COM7 ... opened port
Error: no lfsr data received
Trying COM8 ... unable to open comport
Trying COM9 ... unable to open comport
Trying COM10 ... unable to open comport
Trying COM11 ... unable to open comport
Trying COM12 ... unable to open comport
Trying COM13 ... unable to open comport
Trying COM14 ... unable to open comport
Trying COM15 ... unable to open comport
Trying COM16 ... unable to open comport
No Propeller found on any port
C:\Program Files\catalina\demos>blackbox -p7 blink2
Catalina BlackBox Debugger 2.4
communications error - check port and baudrate, and that
the binary program loaded was compiled with -g or -g3
error - could not set virtual breakpoint
thanks!
Has anyone tried payload, blackcat or blackbox on windows 7?· I appologize in advance if this is·known issue·that I missed. I can't connect to the prop. I can connect to the prop using the propeller tool on the same pc and usb com port i.e. get the usual:
Propeller chip version 1 found on COM7.
Propellent also works:
propellent "\program files\catalina\demos\blink.binary"
Here's what I tried:
C:\Program Files\catalina\demos>payload -p7 blink2
No Propeller found on port COM7
C:\Program Files\catalina\demos>payload -a1 blink2.binary
No Propeller found on any port
C:\Program Files\catalina\demos>catalina -lc -g -D DEMO blink2.c
Catalina Compiler 2.4
······· 1 file(s) moved.
Homespun Spin Compiler 0.27
parsing C:\Program Files\Catalina\target\lmm_blackcat.spin
parsing C:\Program Files\Catalina\target\Catalina.spin
parsing C:\Program Files\Catalina\target\Catalina_Common.spin
parsing C:\Program Files\Catalina\target\BlackCat_DebugCog.spin
parsing C:\Program Files\Catalina\target\Catalina_LMM.spin
parsing C:\Program Files\Catalina\target\Catalina_HMI_Plugin_HiRes_Tv.spin
parsing C:\Program Files\Catalina\target\Catalina_comboKeyboard.spin
parsing C:\Program Files\Catalina\target\Catalina_comboMouse.spin
parsing C:\Program Files\Catalina\target\Catalina_mouse.spin
parsing C:\Program Files\Catalina\target\Catalina_HiRes_TV_Text.spin
parsing C:\Program Files\Catalina\target\TV_Half_Height.spin
compiling lmm_blackcat.spin
compiling Catalina.spin
compiling BlackCat_DebugCog.spin
compiling Catalina_LMM.spin
compiling Catalina_HMI_Plugin_HiRes_Tv.spin
compiling Catalina_comboKeyboard.spin
compiling Catalina_comboMouse.spin
compiling Catalina_mouse.spin
compiling Catalina_HiRes_TV_Text.spin
compiling TV_Half_Height.spin
compiling Catalina_Common.spin
writing blink2.binary
Writing listing to blink2.lst
C:\Program Files\catalina\demos>payload -d -a1 blink2
Catalina Payload 2.4
diagnostic level 1
arg: -a1
switch: -a1
auto mode will start at port COM1
arg: blink2
executable name = payload
Loading Propeller binary blink2.binary
File size = 9632
baudrate = 115200
timeout = 250
sync timeout = 100
reset delay = 0
interfile delay = 500
Trying COM1 ... unable to open comport
Trying COM2 ... unable to open comport
Trying COM3 ... opened port
Error: lfsr data incorrect at 253 - received 255 (expected 254)
Trying COM4 ... unable to open comport
Trying COM5 ... unable to open comport
Trying COM6 ... unable to open comport
Trying COM7 ... opened port
Error: no lfsr data received
Trying COM8 ... unable to open comport
Trying COM9 ... unable to open comport
Trying COM10 ... unable to open comport
Trying COM11 ... unable to open comport
Trying COM12 ... unable to open comport
Trying COM13 ... unable to open comport
Trying COM14 ... unable to open comport
Trying COM15 ... unable to open comport
Trying COM16 ... unable to open comport
No Propeller found on any port
C:\Program Files\catalina\demos>blackbox -p7 blink2
Catalina BlackBox Debugger 2.4
communications error - check port and baudrate, and that
the binary program loaded was compiled with -g or -g3
error - could not set virtual breakpoint
thanks!
Comments
Blink is a plain-old LMM program, so if Payload is not working you can load it with Propellent and still use BlackBox. If Blackbox still doesn't work once the program is loaded, then I must have a serious comms problems with Windows 7.
I'll investigate.
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
Also, can you tell me what Propeller platform you have? I noticed Payload has an occasional problem when loading the Morpheus platform, but it works 100% with all my other Prop platforms (but admittedly I've only tested it under XP and Linux).
Ross.
Edit: sorry, just noticed the -D DEMO, which means you must have a Demo board!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
Post Edited (RossH) : 4/5/2010 2:16:03 AM GMT
wow. It seems OK now. This worked:
catalina -lc -g -D DEMO blink2.c
(power cycle the board)
propellent /port com7 .\blink2.binary
blackbox -p7 blink2
Do I need to power cycle before each download?
Thanks for your help! I hope I didn't waste your time.
Dave
No, you shouldn't have to power cycle the board. But I notice you used Propellent to load the binary this time, not Payload. Did Payload still not work correctly?
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
Here is what I got when I tried it yesterday:
C:\Program Files\catalina\demos>payload -d -a1 blink2
Catalina Payload 2.4
diagnostic level 1
arg: -a1
switch: -a1
auto mode will start at port COM1
arg: blink2
executable name = payload
Loading Propeller binary blink2.binary
File size = 9632
baudrate = 115200
timeout = 250
sync timeout = 100
reset delay = 0
interfile delay = 500
Trying COM1 ... unable to open comport
Trying COM2 ... unable to open comport
Trying COM3 ... opened port
Error: lfsr data incorrect at 253 - received 255 (expected 254)
Trying COM4 ... unable to open comport
Trying COM5 ... unable to open comport
Trying COM6 ... unable to open comport
Trying COM7 ... opened port
Error: no lfsr data received
Trying COM8 ... unable to open comport
Trying COM9 ... unable to open comport
Trying COM10 ... unable to open comport
Trying COM11 ... unable to open comport
Trying COM12 ... unable to open comport
Trying COM13 ... unable to open comport
Trying COM14 ... unable to open comport
Trying COM15 ... unable to open comport
Trying COM16 ... unable to open comport
No Propeller found on any port
Anyone else with Windows 7 or Vista having problems using Payload?
Has anyone with these platforms managed to use it successfully?
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
The stuff about COM3 just means the program could open that com port - if it can open the port it sends some data to it and then reads the response to see if it looks like there is a Propeller on the other end. If it decides it is not a Propeller it just closes the port and moves on. To stop this behaviour, use the command line switch -a4 to start auto-scanning at port 4. But then if you know your Prop is connected to port 4 you can just say -p4 and the program will not auto-scan at all.
Please try a couple of different values of the reset delay parameter (e.g. -r 100, -r 500 or -r 1000) and see if this makes any difference. All this does is delay the time between opening the port and toggling the DTR line to reset the Prop. I don't really expect this to work, but it is worth a try - it seems more likely that the code I use to toggle DTR is just not working at all on Windows 7 or Vista - if you hava a scope handy, can you verify that the DTR line is being toggled, and/or that the Prop is receiving a reset request when Payload starts up?
Thanks,
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
What may be happening is that Windows 7 and Vista do not give control back to the program fast enough after it requests the toggling of the DTR line (which does the Prop reset). In that case, the program may not be getting a chance to initiate the comms to the Prop before the Prop times out and proceeds to load a program from EEPROM. If that's what's happening, it could be a real $#@$#@! to fix because it means going deeper than just the normal serial comms API to get the timing accurate enough.
I'll do a bit of of thinking and maybe post a new executable for you to try tomorrow.
Anyone with a scope who can tell me what's actually happening with the signal timing under Windows 7 (or Vista)?
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
Something that may help if it is indeed a timing issue is raising the priority of payload. Can someone run it under Windows 7 or Vista using a command similar to the following?
Thanks,
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
Has no effect here (Vista).
Ok - I may have found the problem.
Can someone please try the enclosed payload executable under Windows 7 and/or Vista?
It seems to run very slowly for some reason, but I believe it should work this time. If so, I will prepare a patch release for Catalina.
Thanks,
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
I'll see if I can also get a positive report on Windows 7 before I release it.
I'm not exactly sure why its so slow. You could try adding '-b 256000; or '-b 4680800' to increate the baud rate - but I only ever test it at 115200.
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
I finally managed to track down a Windows 7 system and can confirm that the new version of Payload (posted above) works on that as well.
This means Payload now works on all the versions of Windows I can find.
I will post an "official" updated version tonight.
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina