Browse Source

🔨 Melzi with OptiBoot build (#22630)

DerAndere 3 years ago
parent
commit
88816548b6
No account linked to committer's email address
3 changed files with 19 additions and 2 deletions
  1. 1
    1
      Marlin/src/pins/pins.h
  2. 17
    1
      Marlin/src/pins/sanguino/pins_ANET_10.h
  3. 1
    0
      ini/avr.ini

+ 1
- 1
Marlin/src/pins/pins.h View File

329
 #elif MB(OMCA)
329
 #elif MB(OMCA)
330
   #include "sanguino/pins_OMCA.h"               // ATmega644P, ATmega644                  env:sanguino644p
330
   #include "sanguino/pins_OMCA.h"               // ATmega644P, ATmega644                  env:sanguino644p
331
 #elif MB(ANET_10)
331
 #elif MB(ANET_10)
332
-  #include "sanguino/pins_ANET_10.h"            // ATmega1284P                            env:sanguino1284p env:sanguino1284p_optimized
332
+  #include "sanguino/pins_ANET_10.h"            // ATmega1284P                            env:sanguino1284p env:sanguino1284p_optimized env:melzi_optiboot
333
 #elif MB(SETHI)
333
 #elif MB(SETHI)
334
   #include "sanguino/pins_SETHI.h"              // ATmega644P, ATmega644, ATmega1284P     env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p
334
   #include "sanguino/pins_SETHI.h"              // ATmega644P, ATmega644, ATmega1284P     env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p
335
 
335
 

+ 17
- 1
Marlin/src/pins/sanguino/pins_ANET_10.h View File

86
  *   Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
86
  *   Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
87
  */
87
  */
88
 
88
 
89
+/**
90
+ * OptiBoot Bootloader:
91
+ *   Optiboot is an alternative bootloader that can be flashed on the board to free up space for a larger firmware build.
92
+ *   See https://github.com/Optiboot/optiboot for more information.
93
+ *
94
+ * Install Marlin with Arduino IDE:
95
+ *   For a board with the stock bootloader, select 'Sanguino' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.'
96
+ *   For a board with OptiBoot, select 'Sanguino (Optiboot)' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.'
97
+ *
98
+ * Install Marlin with PlatformIO IDE:
99
+ *   (NOTE: You can set a default build environment by editing the value of 'default_env' in 'platformio.ini'.
100
+ *          For the best user experience install the "Auto Build Marlin" extension.)
101
+ *   For a board with the stock bootloader use Build / Upload under the 'sanguino1284p' or 'sanguino1284p_optimized' target.
102
+ *   For a board with OptiBoot, use Build / Upload under the 'melzi_optiboot' target.
103
+ */
104
+
89
 #if NOT_TARGET(__AVR_ATmega1284P__)
105
 #if NOT_TARGET(__AVR_ATmega1284P__)
90
-  #error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.' (For PlatformIO, use 'melzi' or 'melzi_optiboot.')"
106
+  #error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.' (For PlatformIO, use 'sanguino1284p' or 'sanguino1284p_optimized'. With optiboot, use 'melzi_optiboot.')"
91
 #endif
107
 #endif
92
 
108
 
93
 #define BOARD_INFO_NAME "Anet 1.0"
109
 #define BOARD_INFO_NAME "Anet 1.0"

+ 1
- 0
ini/avr.ini View File

141
 extends      = common_avr8
141
 extends      = common_avr8
142
 board        = sanguino_atmega1284p
142
 board        = sanguino_atmega1284p
143
 upload_speed = 115200
143
 upload_speed = 115200
144
+board_upload.maximum_size = 130048
144
 
145
 
145
 #
146
 #
146
 # Melzi and clones (Zonestar Melzi2 with tuned flags)
147
 # Melzi and clones (Zonestar Melzi2 with tuned flags)

Loading…
Cancel
Save