Browse Source

🔨 Melzi with OptiBoot build (#22630)

DerAndere 2 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,7 +329,7 @@
329 329
 #elif MB(OMCA)
330 330
   #include "sanguino/pins_OMCA.h"               // ATmega644P, ATmega644                  env:sanguino644p
331 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 333
 #elif MB(SETHI)
334 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,8 +86,24 @@
86 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 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 107
 #endif
92 108
 
93 109
 #define BOARD_INFO_NAME "Anet 1.0"

+ 1
- 0
ini/avr.ini View File

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

Loading…
Cancel
Save