xC0000005 / Marlin

Optimized firmware for RepRap 3D printers based on the Arduino platform.
http://www.marlinfw.org/
GNU General Public License v3.0
22 stars 5 forks source link

Unified stm32 bootloader support #11

Closed jmz52 closed 4 years ago

jmz52 commented 4 years ago

I've changed bootloader handling somewhere along the way. Bootloader support and encryption were separated to create a single unified bootloader script for HAL STM32.

Bootloader script handles linker's variables used in .ld file, sets VECT_TAB_OFFSET build parameter and optionally creates unencrypted firmware with custom name (needed for SKR Mini and Alfawise Ux0 boards). Firmare offset is defined by build.offset board's parameter. This parameter can be configured in json file with board definition or in platformio.ini

Firmware's filename parameter was moved from build parameters to board's parameter build.firmware. Encryption script uses this parameter to save encrypted firmware into specific file. I've created mks_encrypt.py scrypt to handle encryption for all variants on MKS Robin boards.

Please test this code before merging. I've tested it on SKR Mini and MSK Robin boards but I have no hardware to test Lerdge environments.

xC0000005 commented 4 years ago

Tested on X and K, it's working fine.

xC0000005 commented 4 years ago

@mapfde can test Lerdge S - there won't be LCD support with this, but you should be able to build and flash for Lerdge S and connect to serial (you are welcome to reinstate your pins changes for the thermocouple).

mapfde commented 4 years ago

Works for Lerdge-S (build with LERDGES environment). @jmz52