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 [2018/03/02 12:35]
80.63.59.242 [Entering bootloader mode]
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 31: Line 31:
 * 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]]