Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
flashing-the-bootloader [2017/01/31 22:21]
88.100.162.56 add TXD->RXD and RXD->TXD, do not use USB to RS232
flashing-the-bootloader [2021/02/22 17:49] (current)
Line 4: Line 4:
 </callout> </callout>
  
-The SD bootloader is used to facilitate firmware updates : You only need to flash it once, and it makes the first firmware flashing and subsequent firmware updates much more simple.+The SD bootloader is used to facilitate firmware updates : You only need to flash it once, and it makes the first firmware flashing and subsequent firmware updates much more simple.
  
 Basically at boot/reset, it looks for the firmware.bin file on the SD card, and if found, flashes it to the board's FLASH memory ( then renames the file to firmware.cur, so check for that to see if it worked ). Basically at boot/reset, it looks for the firmware.bin file on the SD card, and if found, flashes it to the board's FLASH memory ( then renames the file to firmware.cur, so check for that to see if it worked ).
Line 14: Line 14:
 == LPCXpresso1769 or SmoothieBoard == LPCXpresso1769 or SmoothieBoard
  
-To flash the bootloader you need a Serial-USB ( can be a FTDI cable, an arduino, CP2102, etc ) cable connected to the UART0 pins of the LPC1769 ( 6-pin connector noted as "Serial" on a [[smoothieboard]] ), and the "reset" and "bootloader" (ISP) buttons connected.+To flash the bootloader you need a Serial-USB ( can be a FTDI cable, an arduino, CP2102, etc ) cable connected to the UART0 pins of the LPC1769 ( 6-pin connector noted as "Serial" on a [[smoothieboard]] ), and the "reset" and "bootloader" (ISP) buttons connected.
  
-If you have a Smoothieboard, all of this is already there, just connect the Serial-USB/FTDI cable. ( well actually if you have a SmoothieBoard it comes the with the bootloader pre-flashed, just move ahead to the actual firmware flashing. Except for the beta board where you might want to flash anyway to get SDHC support ).+If you have a Smoothieboard, all of this is already there, just connect the Serial-USB/FTDI cable. ( well actually if you have a SmoothieBoard it comes with the bootloader pre-flashed, just move ahead to the actual firmware flashing. Except for the beta board where you might want to flash anyway to get SDHC support ).
 If you have a LPCXpresso1769, you want to look at [[Smoothie On A Breadboard ]] for how to wire the serial cable and the buttons. If you have a LPCXpresso1769, you want to look at [[Smoothie On A Breadboard ]] for how to wire the serial cable and the buttons.
  
Line 23: Line 23:
  
 In order to flash the SD bootloader to the chip, you must first enter the Serial Bootloader mode. This mode allows you to write new code to the FLASH memory via UART0. In order to flash the SD bootloader to the chip, you must first enter the Serial Bootloader mode. This mode allows you to write new code to the FLASH memory via UART0.
-To enter this mode do the following : +To enter this mode do the following : 
  
  
-* Press the RESET button+* Press the RESET button
 * Press the BOOTLOADER (ISP) button * Press the BOOTLOADER (ISP) button
 * Release the RESET button * Release the RESET button
 * Release the BOOTLOADER (ISP) button * Release the BOOTLOADER (ISP) button
  
-=== Flashing the SD bootloader+=== Flashing the SD bootloader
  
 First install the [[http://sourceforge.net/projects/lpc21isp/|lpc21isp]] program if you are using linux, or the [[http://www.flashmagictool.com/|FlashMagic]] tool if you are using Windows.  For 64-bit OS X, lpc21isp is checked into Smoothie's git repository under the [[https://github.com/arthurwolf/Smoothie/tree/edge/build/osx64/lpc21isp|build/osx64/lpc21isp]] directory. First install the [[http://sourceforge.net/projects/lpc21isp/|lpc21isp]] program if you are using linux, or the [[http://www.flashmagictool.com/|FlashMagic]] tool if you are using Windows.  For 64-bit OS X, lpc21isp is checked into Smoothie's git repository under the [[https://github.com/arthurwolf/Smoothie/tree/edge/build/osx64/lpc21isp|build/osx64/lpc21isp]] directory.
Line 41: Line 41:
 Flashing pretty simple for windows, simply feed it the .hex file.  Flashing pretty simple for windows, simply feed it the .hex file. 
  
-For linux you want to do the following : +For linux you want to do the following : 
  
 <code> <code>
Line 47: Line 47:
 </code> </code>
  
-Change <kbd>/dev/ttyACM0</kbd> to whatever matches your Serial-USB cable.+Change <kbd>/dev/ttyACM0</kbd> to whatever matches your Serial-USB cable.
  
 Now flashing occurs, and that's it! Now flashing occurs, and that's it!
Line 53: Line 53:
 == Mbed == Mbed
  
-Because the mBed has its own USB flashing thing, you don't want to use the SD bootloader with it.+Because the mBed has its own USB flashing thing, you don't want to use the SD bootloader with it.
  
 Instead simply replace the file **mbed/src/vendor/NXP/cmsis/LPC1768/GCC_ARM/LPC1768.ld** , with [[https://gist.github.com/nullsub/10f4551eb0f3e2422409|this]] Instead simply replace the file **mbed/src/vendor/NXP/cmsis/LPC1768/GCC_ARM/LPC1768.ld** , with [[https://gist.github.com/nullsub/10f4551eb0f3e2422409|this]]