Connect a USB (or RS-232) to TTL serial converter to the J2 connector. e.g. FTDI Friend, RLC3 Again, pin 4 "TX" is data FROM the USB/Host going TO the PID controller. RX is TO USB/Host FROM PID controller. Configure your serial terminal program (e.g. Hyperterm, RealTerm, PuTTY, etc...) for whatever COM/TTY port shows up, and 38,400 baud, No parity, 8 data bits, and 2 stop bits. Select X-ON / X-OFF handshaking if available.
When the BOB P.I.D. first starts, with a terminal program attached, you should see:
Type "Boot" to start bootloader.9876543210
If you don't see this, power cycle the BOB P.I.D. You may need to disconnect the USB converter from the BOB, don't disconnect it from your PC. If you type Boot before it finishes that countdown you will get a small menu:
PIC18F14K22 BootLoader v0.63 installed at 0x3A40. ©2013 by email@example.com Commands: [P] Program FLASH and EEPROM [W] Write EEPROM [E] Erase EEPROM [R] Read EEPROM [?] Help [X] Reset MCU BL>
Reprogram the device by pressing P and the enter key. Confirm your choice, and then it will be ready to accept the new file.
Here is the trick: You must have X-ON/X-OFF enabled when sending the new firmware. This allows the processor time to program one line of data before receiving the next line.
You should see a long series of lines
and that should end with
and the BL> prompt should re-appear. Now you can hit X or just power cycle and then do not go back into the boot loader mode, like the countdown finish. You should see the new welcome message from the updated firmware version.
If you see likes starting with NA: RE: SQ: or anything else besides OK: there is a problem. It probably won't come back to the menu at the end. You can try sending :00000001FF to get back to the menu or just power cycle it and start over. The firmware will NOT be updated. Check to make sure you have XON/XOFF flow control enabled, try increasing line delay, and make sure the file is valid.
Worse comes to worse, send me back the chip along with a few dollars for the return shipping cost and I'll do it for you.
|file: /Techref/io/SERVO/BOBPIDFirmUp.htm, 4KB, , updated: 2017/9/27 15:14, local time: 2023/9/22 22:41,
|©2023 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.massmind.org/Techref/io/SERVO/BOBPIDFirmUp.htm"> Updating BOB P.I.D. Firmware</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to www.massmind.org!