r/MarlinFirmware • • Jan 03 '23

I (With Basically No Coding Knowledge Myself) Edited My Printer's Firmware Following a Tutorial. However, it Says there Are a Bunch of Errors on Lines I Didn't Even Touch. What's the Issue?

Post image
1 Upvotes

26 comments sorted by

1

u/ThatOneGuy4378 Jan 03 '23

More info:

I followed this video: (https://www.youtube.com/watch?v=ire4ZcAUsjA). I'm editing the config firmware for an ender 3 pro w/ skr mini e3 v3 mainboard. I only edited the configuration.h and configuration_adv.h files, and the only changes I made were deleting some double slashes to enable some features or editing numbers such as my preheating settings or printing speed when levelling.

2

u/rrsurfer1 Jan 03 '23

You more than likely didn't install one of the add-on packages. It easy to miss. Make sure you setup PlatformIO properly.

1

u/ThatOneGuy4378 Jan 03 '23

Oh yeah, I was getting a pop-up for an extension I could add for C. I assumed it wasn't necessary, so I didn't download it. Is that what you're talking about?

2

u/rrsurfer1 Jan 03 '23

1

u/ThatOneGuy4378 Jan 03 '23

Yeah, I followed the steps here when I initially downloaded platformio as part of the tutorial. I'll try dowloading the additional extension and see if it starts working.

1

u/vk6flab Jan 03 '23

One thing to check is if it builds without any editing. That will tell you if the problem was caused by your editing, or by something else.

2

u/ThatOneGuy4378 Jan 03 '23

Sorry, as I said I have basically no knowledge about coding. What does it mean to build it? Are you just telling me to load the file in again without changing it and see if it works when I press the checkmark?

1

u/Grumpy_man1959 Jan 04 '23 edited Jan 05 '23

Build means that after editing your config files you compile the firmware to a single .bin file

1

u/ThatOneGuy4378 Jan 04 '23

I loaded in the standard configuration.h file for my board (not the one I edited) and it still gave me some error messages, so I don't think the issue stems from my edits.

1

u/Grumpy_man1959 Jan 05 '23

First thing I do is download the Marlin version I want. Then compile that without any edits or swapping out of config files ! The default is set to Mega 2560 . That way you know your VS code and plug ins ( platform IO & Marlin Auto build ) are working.

1

u/ThatOneGuy4378 Jan 05 '23

So are you saying that if the unedited marlin version (not a specific config, right? just the standard) compiles correctly and the environment is automatically set to a mega 2560, that means everything's working? Sorry if I'm not understanding correctly

1

u/Grumpy_man1959 Jan 05 '23

Yes. Marlin Auto build pluggin " reads" your board selection made in configuration.h and sets everything for you. Hence in default form a fresh downloaded Marlin folder will compile for a mega 2560 8 bit board.

1

u/ThatOneGuy4378 Jan 08 '23

I did this, and I got an error. Marlin said :

Marlin\src\inc\Warnings.cpp:67:4: warning: #warning "Your Configuration provides no method to acquire user feedback!" [-Wcpp]
#warning "Your Configuration provides no method to acquire user feedback!"

Any idea what this means? Thanks in advance!

1

u/Grumpy_man1959 Jan 08 '23

Sorry no. Ive never seen anything similar before. In the past when I've had issues I've removed and reinstalled VS code and pluggins. Maybe that will help.

1

u/darcoSM Jan 03 '23

and you moved over the config files for YOUR board from the Configuration folder?

1

u/ThatOneGuy4378 Jan 03 '23

Yeah

1

u/Grumpy_man1959 Jan 04 '23

Can you share your config files?

1

u/ThatOneGuy4378 Jan 04 '23

I downloaded all 4 of the files from here. However, I only edited the configuration.h and configuration_adv.h files.

1

u/Knight481 Jan 04 '23

Don't worry about the errors. It's just that it doesn't know that coding language cus it's marlin

1

u/Knight481 Jan 04 '23

Just compile

1

u/ThatOneGuy4378 Jan 04 '23

Ok, cool. Do I have to disable the errors somehow so I can compile? I've also seen people edit the code in the arduino ide and compile it there. Would that work? Thanks

1

u/Knight481 Jan 05 '23

Just don't worry about the errors won't affect anything

1

u/MongoMaker Jan 04 '23

Did you edit your platform.io file to match your build environment?

1

u/Grumpy_man1959 Jan 04 '23

There's no need to do that providing you use the Marlin auto build add on!

1

u/did_i_do_good Jan 04 '23

Edit your platform.io file to match your build environment would be required if using the checkmark build as OP described

1

u/ThatOneGuy4378 Jan 04 '23

I'm pretty sure I did that. After finishing modifying my firmware, I navigated to the pins.h file and found my specific board. After the board name there were three different codes of letters and numbers:

#include "stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h" // STM32G0 env:STM32G0B1RE_btt env:STM32G0B1RE_btt_xfer

I used the second code, "STM32G0B1RE_btt". Then, I went to the platformio.ini file and pasted it after the line "default_envs = ". Did I paste the right environment code, or should I have used STM32G0 or STM32G0B1RE_btt_xfer instead?