digidotcom / DCRabbit_9

This repository is the Open Source release of the libraries and sample code from Dynamic C 9, an integrated development environment for Digi International's embedded systems based on the Rabbit 2000 and 3000 microprocessors.
http://www.digi.com
Mozilla Public License 2.0
10 stars 11 forks source link

Bootstrapping sequence documentation improvement #4

Closed spth closed 3 years ago

spth commented 4 years ago

I've read the documentation (https://github.com/digidotcom/DCRabbit_9/commit/4e527a939a54a77e0a0eca342690978b13d1adad) and found it helpful.

A few small suggestions:

Philipp

spth commented 4 years ago

There is another problem in the bootstrapping documentation:

  • Write "Set Baud Rate" command to increase baud rate to maximum (460800 = 0x00070800): 7e 02 00 00 06 04 00 26 0c 00 08 07 00 b5 4d
  • Read the ACK: 7e 02 00 00 86 00 00 9f 88 78 b0
  • Change baud rate to 460800, RTS and DTR still cleared.

How would a NAK look like? How to handle it? I actually do see NAK for 460800 on the RCM2200 board (it has a Rabbit 2000 at 22.1 MHz, and the pilot.bin from DC9 decides that it can't handle 460800. However, it will work at 230400). According to the Rabbit 2000 User manual, a Rabbit 2000 at 20.3 MHz would only be able to handle up to 57600.

tomlogic commented 4 years ago

See line 53 for NAK: Responses start the same way, ORing subtype with 0x80 for ACK and 0x40 for NAK .

If you get a NAK, try a lower baud rate (230400, then 115200) until you get an ACK (or give up and remain at 57600).

tomlogic commented 3 years ago

I believe I addressed your suggestions. Let me know if there's additional room for improvement.