Somehow I can't get it to work



#7

I have connected everything and tried to flash the calculator now. I believe I successfully put it into bootload mode, but the samba tool tells me it is unable to flash.
The Calculator RXD and TXD lines are both high. When clicking the "send file" button, I get a sequence of pulses on the RXD (coming from my RS232 com port).

70µs low, 18µs high, 70µs low, 18µs high, 8.5µs low, 18µs high, 25µs low, 9.5µs high, 18µs low.

This is then followed by 18µs low, 42µs high, 18µs low on the TXD.
Sorry, can't upload a pic from here. Will add this later.

Any idea what's wrong?

Cheers,
Harald


#8

This seems to be an answer from the SAM-BA boot loader that is not recognized by your PC. What make of a serial adapter on your PC do you use?

The 9 µs pulse is a single bit @ 110 kbit/s. Asynchronous serial communication is a start bit (low), 8 data bits, parity (optional) and at least one stop bit (high). Lets translate your sequence to data:

Quote:
70µs low, 18µs high, 70µs low, 18µs high, 8.5µs low, 18µs high, 25µs low, 9.5µs high, 18µs low.

This is 0_0000_0001_1 0_0000_0001_1 0_1100_0100_1. The first two are 0x80s, the third is a 0x23 ('#').

The answer from the device is 18µs low, 42µs high, 18µs low, which translates to 0_0111_1100_1 (slightly on the short side). The trouble is that the device isn't driven by a quartz. The boot loader tries to adjust the clock frequency to match the 110 kbit/s as closely as possible. The pattern reads 0x3e ('>') which is the supposed answer. The timing isn't correct and therefore the PC can't read it. Normally, the PC shall now repeat its request (0x80, 0x80, 0x23) and wait again for a new answer from the device at a slightly different rate.

All in all you can assume that your device is running the boot loader but the communication isn't working correctly.


#9

Hi Marcus,

thanks again for the quick reply.
I am not using an adaptor. This is a real com port on my laptop.
The computer does repeate the sequnece several times, but only gets an answer once (or maybe twice). I have already fitted a quartz to the calculator, but I guess the bootloader uses the internal resonator anyway.
Since I haven't got the HP cable yet, I used an adaptor I made for a TI controller years ago. Maybe that is responsible for the timing issuses as it is opto-isolated. I will try and bypass the optocouplers.

Thanks for your help, it is much appreciated.

Cheers,
Harald


#10

You were right Marcus, it was a timing issue. Although I am not sure if the optocouplers were resposible or the max232.
I now used an FTDI USB to RS485 converter. I connected TxD directly to the FTDI chip and RxD via a resistor divider to level shift down to 3V.
The 34s is allive now!!!!


#11

Your hardware skills are far beyond mine. :-)

Edited: 28 Feb 2012, 10:30 a.m.


#12

Quote:
Your hardware skills are far beyond mine. :-)


Maybe. But your software skills are way beyond mine :-)

It is just amazing what you guys have achieved here!


Possibly Related Threads…
Thread Author Replies Views Last Post
  emu48 - copy stack doesn't work (as expected) Thomas Radtke 2 2,018 11-11-2013, 02:19 PM
Last Post: Thomas Radtke
  Another Prime mystery - templates don't work anymore Michael de Estrada 2 1,404 11-02-2013, 11:34 AM
Last Post: Michael de Estrada
  Does the HP Prime software only work with Win 7/ 8 ? Michael de Estrada 3 1,711 10-12-2013, 02:52 PM
Last Post: John Ioannidis
  Back to School/Work/Other Calculator Poll Eddie W. Shore 63 17,304 09-12-2013, 06:03 AM
Last Post: bhtooefr
  How I use my HP50G at work. David Bengtson 7 2,565 05-06-2013, 02:57 PM
Last Post: Ingo
  Does IR printing not work on your converted WP34s? Then read on... Harald 3 1,683 04-04-2013, 05:46 PM
Last Post: Harald
  No luck getting flash disk to work in 95lx Harald 7 3,059 03-18-2013, 08:11 AM
Last Post: Harald
  35s refuses to work Silvio A. Bensi 19 5,832 10-18-2012, 12:48 AM
Last Post: Reth
  How does the HP-97 printer paper feed work? Harald 5 2,326 03-31-2012, 09:31 AM
Last Post: Harald
  How did the 28 work? Matt Agajanian 14 4,459 03-09-2012, 08:01 AM
Last Post: David Hayden

Forum Jump: