Welcome! Log In Create A New Profile

Advanced

compiling errors

Posted by Herr_Schmitzel 
compiling errors
September 27, 2019 07:28AM
Hi im not entirily new to 3d printing, but im new to firmware configuration. I want to change my firmware because i would like to have a 32 bit mainboard in my ender 3 pro. so I downloaded the skr mini e3 preconfigured firmware and only wanted to enable bl touch and then this happened.

sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:65:20: fatal error: U8glib.h: No such file or directory

compilation terminated.

exit status 1
Fehler beim Kompilieren für das Board Arduino/Genuino Mega or Mega 2560.
what is wrong and how can i fix it?
Re: compiling errors
September 27, 2019 08:06AM
In platformio.ini is

[platformio]
src_dir      = Marlin
boards_dir   = buildroot/share/PlatformIO/boards
default_envs = BIGTREE_SKR_MINI

#
# BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
#
[env:BIGTREE_SKR_MINI]
platform          = ststm32
framework         = arduino
board             = genericSTM32F103RC
platform_packages = tool-stm32duino
extra_scripts     = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
build_flags       = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  ${common.build_flags} -std=gnu++14
  -DDEBUG_LEVEL=0
build_unflags     = -std=gnu++11
lib_deps          = ${common.lib_deps}
lib_ignore        = Adafruit NeoPixel, SPI
src_filter        = ${common.default_src_filter} +
monitor_speed     = 115200
upload_protocol   = stlink
debug_tool        = stlink

In Configuration.h is
// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_BIGTREE_SKR_MINI_E3
#endif


This is a STM32F1 based board
It should not be compiling for a Board Arduino/Genuino Mega or Mega 2560.


If your using atom, one common issue is having multiple projects open at once (multiple top level directories in the Project panel) right click the extras and select remove project folder.

Edited 2 time(s). Last edit at 09/27/2019 08:57AM by Dust.
Re: compiling errors
September 27, 2019 04:29PM
i cant find an option for the stm board in arduino ide, how do i change it to the right type?
Re: compiling errors
September 27, 2019 09:26PM
You cannot use Arduino IDE for this (yet) "Arduino IDE can only build Marlin for AVR, Due, and Teensy++ 2.0"

You must use Atom or VSCode with PlatformIO support see [marlinfw.org]
Re: compiling errors
September 28, 2019 04:10PM
ok i think it worked, i downloaded atom and imported paltformio, then i imported my marlin configuratin clicked on PID build, it says it was a success, so nw i have to put the file called firmware.bin on a micro sd card and start the printer. it shoud all work then right ?
Re: compiling errors
September 28, 2019 09:53PM
If the manufacturer has done their job correctly and setup configuration.h properly, yes it should work.
Re: compiling errors
September 29, 2019 03:53AM
i think the manufator dd everything right, because its bigtreetech
Sorry, only registered users may post in this forum.

Click here to login