Whitespace cleanup

This commit is contained in:
Scott Lahteine 2020-09-25 18:54:01 -05:00
parent c394e14621
commit 21ecc0e43b
4 changed files with 20 additions and 20 deletions

View file

@ -498,7 +498,7 @@
//#define DEFAULT_Kp 40.00 //#define DEFAULT_Kp 40.00
//#define DEFAULT_Ki 0.70 //#define DEFAULT_Ki 0.70
//#define DEFAULT_Kd 50.00 //#define DEFAULT_Kd 50.00
// ET4 Autotune PID results // ET4 Autotune PID results
#define DEFAULT_Kp 18.62 #define DEFAULT_Kp 18.62
#define DEFAULT_Ki 1.38 #define DEFAULT_Ki 1.38

View file

@ -71,7 +71,7 @@ Report bugs to the [Issues section of my Marlin fork](https://github.com/davidtg
- DRIVERS: TMC2208 (silent) / A4988 (noisy) - DRIVERS: TMC2208 (silent) / A4988 (noisy)
- USB TO SERIAL CONVERTER: [CH340G](https://www.mpja.com/download/35227cpdata.pdf) - USB TO SERIAL CONVERTER: [CH340G](https://www.mpja.com/download/35227cpdata.pdf)
- FLASH: [WINBOND W25Q128JVSQ](https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf) (128M-bit) Serial Flash memory - FLASH: [WINBOND W25Q128JVSQ](https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf) (128M-bit) Serial Flash memory
- EEPROM: [AT24C04C](https://datasheet.lcsc.com/szlcsc/1809192313_Microchip-Tech-AT24C04C-SSHM-T_C6205.pdf) (ATMLH744 04CM) 4 Kb - EEPROM: [AT24C04C](https://datasheet.lcsc.com/szlcsc/1809192313_Microchip-Tech-AT24C04C-SSHM-T_C6205.pdf) (ATMLH744 04CM) 4 Kb
- LCD: [ST7789V](https://www.crystalfontz.com/controllers/- Sitronix/ST7789V/470/) | [STP320240_0280E2T](https://a.aliexpress.com/_dV4Bghv) (40P/1,5): ST7789 (YT280S008) - LCD: [ST7789V](https://www.crystalfontz.com/controllers/- Sitronix/ST7789V/470/) | [STP320240_0280E2T](https://a.aliexpress.com/_dV4Bghv) (40P/1,5): ST7789 (YT280S008)
- TOUCH: [XPT2046](https://ldm-systems.ru/f/doc/catalog/HY-TFT-2,8/XPT2046.pdf) - TOUCH: [XPT2046](https://ldm-systems.ru/f/doc/catalog/HY-TFT-2,8/XPT2046.pdf)
- MOSFETS (BED/HOTEND): G90N04 - MOSFETS (BED/HOTEND): G90N04

View file

@ -29,44 +29,44 @@ USB and SDCARD Firmware flashing for the ARDUINO ATMEGA 2560 and ADK
--------------------------------------------------------------------- ---------------------------------------------------------------------
The bootloader looks for byte in eeprom at address 0x3FF: The bootloader looks for byte in eeprom at address 0x3FF:
-if it is set to 0xF0 bootloader will look for a bin file on the sdcard named -if it is set to 0xF0 bootloader will look for a bin file on the sdcard named
firmware.bin and use it to flash the firmware then reset the byte to 0xFF so it firmware.bin and use it to flash the firmware then reset the byte to 0xFF so it
does this only once does this only once
-otherwise no action is taken and bootloader works as a arduino bootloader except -otherwise no action is taken and bootloader works as a arduino bootloader except
some of the debugging functions are missing some of the debugging functions are missing
Setup Setup
ADAFruit micro sdcard 5V ready: ADAFruit micro sdcard 5V ready:
SDCARD on ATMEGA 2560 or ADK SDCARD on ATMEGA 2560 or ADK
pin 50 - DO pin 50 - DO
pin 51 - DI pin 51 - DI
pin 52 - CLK pin 52 - CLK
pin 53 - CS pin 53 - CS
Generate BIN file for firmware update: Generate BIN file for firmware update:
To generate a bin file you need issue the following command on you apps elf executable: To generate a bin file you need issue the following command on you apps elf executable:
avr-objcopy -I elf32-avr -O binary firmware.cpp.elf firmware.bin avr-objcopy -I elf32-avr -O binary firmware.cpp.elf firmware.bin
this generates firmware.bin which can be put on the sd for flashing your firmware. You can find the elf this generates firmware.bin which can be put on the sd for flashing your firmware. You can find the elf
file in you apps build directory. file in you apps build directory.
Using olimex usb to upload bootloader: Using olimex usb to upload bootloader:
avrdude -c stk500v2 -p m2560 -P /dev/tty.usbmodemfd131 -B 500 -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U efuse:w:0xFF:m -F avrdude -c stk500v2 -p m2560 -P /dev/tty.usbmodemfd131 -B 500 -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U efuse:w:0xFF:m -F
avrdude -p m2560 -c stk500v2 -P /dev/tty.usbmodemfa131 -F -U flash:w:stk500boot.hex -b 115200 -B1 -U lock:w:0x0F:m avrdude -p m2560 -c stk500v2 -P /dev/tty.usbmodemfa131 -F -U flash:w:stk500boot.hex -b 115200 -B1 -U lock:w:0x0F:m
avrdude -p m168 -c usbtiny -e -u -U lock:w:0x3f:m -U efuse:w:0x00:m -U hfuse:w:0xDD:m -U lfuse:w:0xFF:m avrdude -p m168 -c usbtiny -e -u -U lock:w:0x3f:m -U efuse:w:0x00:m -U hfuse:w:0xDD:m -U lfuse:w:0xFF:m
avrdude -p m2560 -c stk500v2 -P /dev/tty.usbmodemfd131 -U flash:w:stk500boot_v2_mega2560.hex -U lock:w:0x0F:m -v avrdude -p m2560 -c stk500v2 -P /dev/tty.usbmodemfd131 -U flash:w:stk500boot_v2_mega2560.hex -U lock:w:0x0F:m -v
avrdude -c stk500v2 -p m2560 -P /dev/tty.usbmodemfd131 -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U lfuse:w:0xFF:m -e -v avrdude -c stk500v2 -p m2560 -P /dev/tty.usbmodemfd131 -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U lfuse:w:0xFF:m -e -v

View file

@ -23,7 +23,7 @@ Use these example config files (adjusted to your needs) and build Marlin as usua
Move jumper **SW1** to **USB**. Move jumper **SW1** to **USB**.
- **JP1** is connected to the **BOOT0** pin which blocks programming. - **JP1** is connected to the **BOOT0** pin which blocks programming.
Remove the **JP1** jumper. Remove the **JP1** jumper.
### 3. Get STM32 Flasher ### 3. Get STM32 Flasher
Download the _STM32 Flasher_ software at the ST Micro [download page](https://www.st.com/en/development-tools/flasher-stm32.html#get-software). Use _STM32 Flasher_ to flash your Marlin binary file to the board following the procedure shown in the video. Download the _STM32 Flasher_ software at the ST Micro [download page](https://www.st.com/en/development-tools/flasher-stm32.html#get-software). Use _STM32 Flasher_ to flash your Marlin binary file to the board following the procedure shown in the video.