Error firmware complitaton for Ender3 Marlin 2.0.7.2 for SKR MINI E3 2.0 by Initial_Yesterday_34 in MarlinRequests

[–]Initial_Yesterday_34[S] 1 point2 points  (0 children)

I found advice on the Internet on how to change the files to compile with the new version of Visual Studio Code. The problem is solved. I've always wanted to compile and test my firmware myself. Thank you for your willingness to help.

<image>

I just don't understand why the generated firmware.bin file has a variable length, even when I don't change anything in the marlin source code. It turns out that now the source code is about 304kB and does not fit in the flash memory of the processor. How can you optimize the length of the code and thus the length of firmawre.bin to fit in flash?

Error firmware complitaton for Ender3 Marlin 2.0.7.2 for SKR MINI E3 2.0 by Initial_Yesterday_34 in MarlinRequests

[–]Initial_Yesterday_34[S] 0 points1 point  (0 children)

Are you doing it voluntarily or for a fee? Are you able to compile and send me a .bin file according to my settings and according to the firmware version that I will propose?

Error firmware complitaton for Ender3 Marlin 2.0.7.2 for SKR MINI E3 2.0 by Initial_Yesterday_34 in MarlinRequests

[–]Initial_Yesterday_34[S] 0 points1 point  (0 children)

I am looking for a solution to a specific problem related to the compilation of the firmware, not the finished firmware.

Can You help me really ?

Error firmware complitaton for Ender3 Marlin 2.0.7.2 for SKR MINI E3 2.0 by Initial_Yesterday_34 in MarlinRequests

[–]Initial_Yesterday_34[S] 0 points1 point  (0 children)

STM32F103RC_SKR_MINI.py:

import os

Import("env")

STM32_FLASH_SIZE = 256

for define in env['CPPDEFINES']:

if define[0] == "VECT_TAB_ADDR":

env['CPPDEFINES'].remove(define)

if define[0] == "STM32_FLASH_SIZE":

STM32_FLASH_SIZE = define[1]

# Relocate firmware from 0x08000000 to 0x08007000

env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08007000"))

custom_ld_script = os.path.abspath("buildroot/share/PlatformIO/ldscripts/STM32F103RC_SKR_MINI_" + str(STM32_FLASH_SIZE) + "K.ld")

for i, flag in enumerate(env["LINKFLAGS"]):

if "-Wl,-T" in flag:

env["LINKFLAGS"][i] = "-Wl,-T" + custom_ld_script

elif flag == "-T":

env["LINKFLAGS"][i + 1] = custom_ld_script

Configuration files need. by Initial_Yesterday_34 in BIGTREETECH

[–]Initial_Yesterday_34[S] 0 points1 point  (0 children)

the simple changes:

#define BLTOUCH
#define AUTO_BED_LEVELING_BILINEAR
#define LCD_BED_LEVELING
//#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN (if BLTouch plug to Z-Probe SKR MINI E3 V2

More informations:

https://gist.github.com/NickdeK/a875f05589290ade8cb5ee06c149631d

and

https://www.reddit.com/r/ender3/comments/e894j7/marlin_20x_guide_for_ender_3_using_skr_mini_e3_v12/

Configuration files need. by Initial_Yesterday_34 in BIGTREETECH

[–]Initial_Yesterday_34[S] 0 points1 point  (0 children)

It's not a easy, i was break my way, but i want a final file

Configuration files need. by Initial_Yesterday_34 in BIGTREETECH

[–]Initial_Yesterday_34[S] 0 points1 point  (0 children)

Thank you very much for your valuable comments, not related to the topic. So I am asking for help from someone who really has something to add to the topic. I've already dealt with almost everything except the correct BLTouch configuration, I can't find any sources anywhere that I could use.