sammielove45 / propgcc

Automatically exported from code.google.com/p/propgcc
1 stars 1 forks source link

propeller-load over bluetooth module #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HI

I'm trying to use propeller-load on linux to communicate 
with propeller over a bluetooth adapter, and need some help

I placed a propeller DIP-40 on a protoboard
connected bare minimum

0V to pin 9, 10 (VSS, BOEn)
+3.3V to pin 12 (VDD)
bluetooth TX to pin 40 (RX P31)
bloetooth RX to pin 39 (TX P30)
bluetooth carrier detect to pin 11 (RESn)

no quartz, no eeprom 

when bluetooth connection is established,
carrier detect goes high, so reset pin goes from 0V to 
3.3V and stays at 3.3V during the bluetooth connection
am I doing right?
I can't get propeller-load to detect chip

propeller-load -p/dev/rfcomm25 -r -t -v hello.elf
propeller-load -p/dev/rfcomm25 -brcfast  -r -t -v hello.elf
propeller-load -p/dev/rfcomm25 -brcfast -S1000 -r -t -v hello.elf
error: no propeller chip on port '/dev/rfcomm25'

I tried to delay reset with 2.2uF capacitor parallen and 390 ohm
series, same thing, except once I got message about ignoring 10 bytes:

propeller-load -p/dev/rfcomm25 -brcfast -r -t -v -S1  hello.elf 
Ignored 10 bytes. 
error: no propeller chip on port '/dev/rfcomm25'

Original issue reported on code.google.com by vor...@gmail.com on 18 Jul 2012 at 8:50

GoogleCodeExporter commented 9 years ago
I modified propeller-load to retry 10 times.
I need to start propeller-load, press reset manually
twice (first to detect chip, second to start upload)

It is far from comfortable (idea is to remotely upload the code)
but at least something works (I don't know why hello doesnt print
anything on terminal, but obviously here's some progress)

$ bin/linux/propeller-load -vvvvv -p/dev/rfcomm25 -brcfast /tmp/hello.elf -r -t
propeller-load
Initport will check port now
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Propeller Version 1 on /dev/rfcomm25
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Timeout waiting for first response bit. Propeller not found
hwfind..
Loading /tmp/hello.elf to hub memory
5872 bytes sent                  
Verifying RAM ... OK
[ Entering terminal mode. Type ESC or Control-C to exit. ]

Original comment by vor...@gmail.com on 22 Jul 2012 at 8:37

GoogleCodeExporter commented 9 years ago
This patch seems to work for me.

My board cannot control reset, (there's reset
after opening serial port, caused by carrier detect 
going high after establishing the bluetooth 
connection)

A series 390 ohm resistor and parallel 2.2uF capacitor
to the reset is needed to slightly delay reset.

in propeller-load, I skipped first detection of propeller version and
assumed it is version = 1, then proceeding with upload

it works for me

hopefully this can be integrated somehow in board config

Original comment by vor...@gmail.com on 22 Jul 2012 at 9:18

Attachments: