Gen7 Board-ARM 2.0

From RepRap
Revision as of 14:34, 14 November 2015 by Traumflug (talk | contribs)
Jump to: navigation, search
Gen7 Board History   --   Gen7 Board is part of Generation 7 Electronics
Crystal Clear action run.png
Generation 7 Electronics Board

Release status: experimental

Gen7 Board-ARM 2.0.jpeg
Description
Generation 7 Electronics based on an 32-bit ARM Cortex-M0
License
Author
Contributors
Based-on
[[]]
Categories
CAD Models
External Link
(none)


Infobox info icon.svg.png Gen7 has moved
This page shows just the early beginnings of Gen7-ARM. Documentation has moved since then to RepRap DIY.


Serial Line Troubleshooting

In case your serial line doesn't work as expected, here are hints for finding the cause.

Connecting to the Bootloader Manually

Even with a factory fresh chip, you can connect to the chip using a serial terminal (PuTTY, GtkTerm, ...).

  • Connect the USB-TTL adapter as usual. You should get an additional serial port on your host's operating system. Baud rate doesn't matter, I've tested 9600 and 115200 baud.
  • Connect with the serial terminal to this port.
  • Connect PIO0_1 to GND. On the Gen7-ARM, this is also the Z axis Step signal, so you can use the Pololu's header's pin for this.
  • Press and release the Reset button.
  • In the serial terminal, enter a question mark ( '?', 0x3F ).
  • The LPC1114 should answer with "Synchronized" in clear text.
  • Send back the same text ("Synchronized"), followed by Enter.
  • The LPC1114 should answer with "OK".
  • ... etc. etc. The protocol is described on p408ff of the LPC1114 User Manual.

If you don't get a response from the chip, press Reset again and start over. If it still doesn't work, it's time to grab the voltage meter or logic analyzer to find out what's going on.

Basic example

Here's a transscript of the first successful attempt to upload a firmware:

$ git svn clone https://lpc21isp.svn.sourceforge.net/svnroot/lpc21isp
[...]
$ cd lpc21isp/
$ make
[...]
$ ./lpc21isp -control -bin /tmp/build3402789950117874614.tmp/Blink.cpp.bin \
  /dev/ttyUSB0 115200 12000
lpc21isp version 1.85
File /tmp/build3402789950117874614.tmp/Blink.cpp.bin:
  loaded...
  image size : 9752
Image size : 9752
Synchronizing (ESC to abort). OK
Read bootcode version: 1
7
Read part ID: LPC1114.../102, 32 kiB ROM / 4 kiB SRAM (0x1A40902B)
Will start programming at Sector 1 if possible, and conclude with Sector 0 to ensure that checksum is written last.
Erasing sector 0 first, to invalidate checksum. OK 
Sector 1: ...........................|.........................|.........................|.........................
Sector 2: ...........................|.............
Sector 0: ..........................|.........................|.........................|.........................
Download Finished... taking 1 seconds
Now launching the brand new code

History

bobc was the first RepRapper to run his printer with a Gen7-ARM, see also the RepRap wiki:

<videoflash type="youtube">C57Tim6LcPA</videoflash>