ANYCUBIC-3D / Kobra2_Neo

GNU General Public License v3.0
23 stars 4 forks source link

[BUG] Missing platformio.ini file #2

Open daksh7011 opened 9 months ago

daksh7011 commented 9 months ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Can not compile the latest marlin. platformio.ini file is missing. If that is intentional, Please update the readme.md to provide information on how to compile the firmware with the latest marlin.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

N/A

Printer model

Anycubic Kobra 2 Neo

Electronics

No response

Add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

Additional information & file uploads

No response

daksh7011 commented 9 months ago

Configuration.zip Configuration

gutoandreollo commented 9 months ago

For some reference, from looking through the upstream Marlin, my best guess is fork seems to be based on commit 7c0b465754 (it has the date set to 2023-02-03 on version.h, but doesn't have the sdcard-related changes in the following commit). But, this might've been rebased, since there's a few other files present here that aren't there (

Comparing this repo's head to that commit, these seem to have been removed:

 % diff -rqd --exclude .git Marlin_upstream Kobra2_Neo | grep "Only in Marlin_upstream" 
Only in Marlin_upstream/buildroot/etc: udev
Only in Marlin_upstream/buildroot/share/PlatformIO/scripts: jgaurora_bootloader.bin
Only in Marlin_upstream: ini
Only in Marlin_upstream/Marlin: config.ini
Only in Marlin_upstream/Marlin/src/lcd: extui
Only in Marlin_upstream: platformio.ini

From that, that looks we're also missing at least Marlin/config.ini as well, but perhaps any customisation under ini/ too.

FLSchempp commented 8 months ago

After hundreds of attempts...(different Marlin versions, config files, etc.)

Using the platformio.ini and ini folder of Marlin-bugfix-2.1.x I got the following error:

Library Manager: Installing +<src/lcd/tft_io>
VCSBaseException: VCS: Unknown repository type +<src/lcd/tft_io>:
gutoandreollo commented 8 months ago

I haven't checked the differences yet (not on my dev computer), but two days ago it looks like this repo got force-pushed again, and there might be differences the only difference I could find was the branch name (main then vs master now). Happy to be shown wrong here, though!

If you tested with this newer one, can you also test that with the previous version? I had forked upstream Marlin in this repo, and manually added the content of the previous version of this repo into it as a single commit.

gutoandreollo commented 8 months ago

Also, do you have any suggestion on a build env to use for this? I'd love to just have it in a docker container to be fairly easy to reproduce.

FLSchempp commented 8 months ago

I have tested several builds based on different versions (using Windows 10, MacOS and Ubuntu), adapting the necessary changes (sometimes adding files, code, etc.).

Mainly the errors I have are related to uncommon parts of the Marlin code, for example, syntax of some expressions in some libraries...

Regarding the build env I have also tested different options. In the Vyper repo you can find a platformio.ini that includes the environment for this motherboard:

Anycubic boards (STM32F103RET6)

[env:ac_tri_f1]
platform             = ${common_stm32.platform}
extends              = common_stm32
board                = ac_tri_f103re
board_build.firmware = ac_tri_f1.bin
lib_ignore           = SoftwareSerialM
build_type           = debug
build_flags          = ${common_stm32.build_flags}
  -DDEBUG_LEVEL=0
  -DVECT_TAB_OFFSET=0x8000
  -DLD_FLASH_OFFSET=0x8000
  -DSTM32F1xx
  -DMCU_STM32F103RE
  -DHSE_VALUE=8000000U
  -DHAL_SD_MODULE_ENABLED
  -O0
upload_protocol      = jlink
monitor_speed        = 115200

I also tried with simplified versions such as:

platform             = ststm32
board                = ac_tri_f103re
monitor_speed        = 115200

Even forcing multiple versions of ststm32: platform = ststm32@~12.1.1

In addition, in the Vyper Wiki you can find how to build it, which includes the necessary files (framework-arduinoststm32_vyper including the AC_TRI_F103RE variant). In this case, I could compile it successfully.

fylhtq7779 commented 8 months ago

I have tested several builds based on different versions (using Windows 10, MacOS and Ubuntu), adapting the necessary changes (sometimes adding files, code, etc.).

  • Kobra2Neo New version (2 days ago)
  • Kobra2Neo Previous version
  • Your commit
  • Marlin 2.1.2.1
  • Marlin-bugfix-2.1.x
  • Vyper version

Mainly the errors I have are related to uncommon parts of the Marlin code, for example, syntax of some expressions in some libraries...

Regarding the build env I have also tested different options. In the Vyper repo you can find a platformio.ini that includes the environment for this motherboard:

Anycubic boards (STM32F103RET6)

[env:ac_tri_f1]
platform             = ${common_stm32.platform}
extends              = common_stm32
board                = ac_tri_f103re
board_build.firmware = ac_tri_f1.bin
lib_ignore           = SoftwareSerialM
build_type           = debug
build_flags          = ${common_stm32.build_flags}
  -DDEBUG_LEVEL=0
  -DVECT_TAB_OFFSET=0x8000
  -DLD_FLASH_OFFSET=0x8000
  -DSTM32F1xx
  -DMCU_STM32F103RE
  -DHSE_VALUE=8000000U
  -DHAL_SD_MODULE_ENABLED
  -O0
upload_protocol      = jlink
monitor_speed        = 115200

I also tried with simplified versions such as:

platform             = ststm32
board                = ac_tri_f103re
monitor_speed        = 115200

Even forcing multiple versions of ststm32: platform = ststm32@~12.1.1

In addition, in the Vyper Wiki you can find how to build it, which includes the necessary files (framework-arduinoststm32_vyper including the AC_TRI_F103RE variant). In this case, I could compile it successfully.

Hi Did you manage to compile the firmware for 2 neo? I did everything as you described, but I still get an error when compiling

FLSchempp commented 8 months ago

I have not been able to compile it yet. I think I'm a little closer now. Creating a new project using PIO home (attached image):

Screenshot 2024-01-15 at 17 53 57

And adding the following in the platformio.ini file:

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

[env:ac_tri_f103re]
platform = ststm32
board = ac_tri_f103re
framework = arduino
board_build.mcpu = cortex-m4
lib_ldf_mode = chain+

I get the following error:

In file included from Marlin/src/HAL/LPC1768/tft/tft_spi.cpp:27:
Marlin/src/HAL/LPC1768/tft/tft_spi.h:27:10: fatal error: lpc17xx_ssp.h: No such file or directory

*********************************************************************
* Looking for lpc17xx_ssp.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:lpc17xx_ssp.h"
* Web  > https://registry.platformio.org/search?q=header:lpc17xx_ssp.h
*
*********************************************************************

Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/u8g/LCD_I2C_routines.cpp.o
   27 | #include <lpc17xx_ssp.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/ac_tri_f103re/src/src/HAL/LPC1768/tft/tft_spi.cpp.o] Error 1
=============================================================== [FAILED] Took 36.86 seconds ===============================================================

At least there are a lot of files successfully compiled before the error...

Executing task: platformio run --environment ac_tri_f103re 

Processing ac_tri_f103re (platform: ststm32; board: ac_tri_f103re; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/ac_tri_f103re.html
PLATFORM: ST STM32 (17.2.0) > STM32F103RE (64k RAM. 512k Flash)
HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32 @ 4.20701.0 (2.7.1) 
 - framework-cmsis @ 2.50900.0 (5.9.0) 
 - toolchain-gccarmnoneeabi @ 1.120301.0 (12.3.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
Dependency Graph
|-- SPI @ 1.1.0
|-- IWatchdog @ 1.0.0
|-- EEPROM @ 2.0.1
|-- SoftwareSerial @ 1.0.0
|-- Wire @ 1.0.0
|-- Servo @ 1.1.2
Building in release mode
Compiling .pio/build/ac_tri_f103re/FrameworkArduinoVariant/PeripheralPins.c.o
Compiling .pio/build/ac_tri_f103re/FrameworkArduinoVariant/PeripheralPins_AC_TRI_F103RE.c.o
Compiling .pio/build/ac_tri_f103re/FrameworkArduinoVariant/variant_AC_TRI_F103RE.cpp.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_adc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_adc_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_can.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_cec.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_comp.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_comp_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_cordic.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_cortex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_crc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_crc_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_cryp.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_cryp_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dac.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dac_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dcache.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dma.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dma2d.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dma_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dsi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_dts.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_eth.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_eth_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_exti.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_fdcan.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_firewall.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_flash.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ramfunc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_fmac.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_gfxmmu.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_gfxtim.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_gpio.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_gpio_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_gpu2d.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_gtzc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_hash.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_hash_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_hcd.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_hrtim.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_hsem.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_i2c.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_i2c_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_i2s.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_i2s_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_i3c.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_icache.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_ipcc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_irda.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_iwdg.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_jpeg.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_lcd.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_lptim.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_mdf.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_mdios.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_mdma.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_mmc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_mmc_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_nand.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_nor.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_opamp.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_opamp_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_ospi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_otfdec.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_pccard.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_pcd.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_pcd_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_pka.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_pssi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_pwr.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_pwr_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_qspi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_ramcfg.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_ramecc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_rcc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_rcc_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_rng.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_rng_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_rtc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_rtc_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_sai.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_sai_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_sd.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_sd_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_sdadc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_sdram.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_smbus.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_smbus_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_spdifrx.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_spi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_spi_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_sram.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_subghz.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_swpmi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_tim.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_tim_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_tsc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_uart.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_uart_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_usart.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_usart_ex.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_wwdg.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HAL/stm32yyxx_hal_xspi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/HardwareTimer.cpp.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_adc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_bdma.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_comp.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_cordic.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_crc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_crs.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_dac.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_delayblock.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_dlyb.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_dma.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_dma2d.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_exti.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_fmac.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_fmc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_fmpi2c.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_fsmc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_gpio.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_hrtim.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_i2c.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_i3c.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_icache.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_lpgpio.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_lptim.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_lpuart.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_mdma.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_opamp.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_pka.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_pwr.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_rcc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_rng.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_rtc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_sdmmc.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_spi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_swpmi.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_tim.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_ucpd.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_usart.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_usb.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/LL/stm32yyxx_ll_utils.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/new.cpp.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/PortNames.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/analog.cpp.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/bootloader.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/clock.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/core_callback.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/dwt.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/hw_config.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/interrupt.cpp.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/otp.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/pinmap.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/stm32_def.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/system_stm32yyxx.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/timer.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/stm32/uart.c.o
Compiling .pio/build/ac_tri_f103re/SrcWrapper/src/syscalls.c.o
Compiling .pio/build/ac_tri_f103re/src/Marlin.ino 2.cpp.o
Compiling .pio/build/ac_tri_f103re/src/Marlin.ino.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/HAL.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/HAL_SPI.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/MarlinSerial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/Servo.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/eeprom.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/fast_pwm.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/fastio.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/AVR/u8g_com_HAL_AVR_sw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/HAL.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/HAL_SPI.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/InterruptVectors.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/MarlinSerial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/MarlinSerialUSB.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/MinSerial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/Servo.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/Tone.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/dogm/u8g_com_HAL_DUE_shared_hw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/dogm/u8g_com_HAL_DUE_st7920_sw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi_shared.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/eeprom_flash.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/eeprom_wired.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/fastio/G2_PWM.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/timers.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/ctrl_access.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/sd_mmc_spi_mem.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/sysclk.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/udc.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/udi_cdc.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/udi_cdc_desc.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/udi_composite_desc.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/udi_msc.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/uotghs_device_due.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/DUE/usb/usb_task.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/FlushableHardwareSerial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/HAL.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/HAL_SPI.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/Servo.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/Tone.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/WebSocketSerial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/eeprom.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/i2s.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/ota.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/spiffs.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/timers.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/u8g_esp32_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/web.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/ESP32/wifi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/HAL.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/arduino.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/eeprom.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/hardware/Clock.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/hardware/Gpio.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/hardware/Heater.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/hardware/IOLoggerCSV.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/hardware/LinearAxis.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/hardware/Timer.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/include/pinmapping.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/main.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LINUX/timers.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/HAL.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/HAL_SPI.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/MarlinSerial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/MinSerial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/eeprom_flash.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/eeprom_sdcard.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/eeprom_wired.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/fast_pwm.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/include/digipot_mcp4451_I2C_routines.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/include/i2c_util.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/main.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/tft/tft_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/tft/xpt2046.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/timers.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/u8g/LCD_I2C_routines.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/u8g/LCD_pin_routines.c.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_hw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_st7920_hw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_st7920_sw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_sw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/LPC1768/usb_serial.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/NATIVE_SIM/u8g/LCD_I2C_routines.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/NATIVE_SIM/u8g/LCD_pin_routines.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/NATIVE_SIM/u8g/u8g_com_st7920_sw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/NATIVE_SIM/u8g/u8g_com_sw_spi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/HAL.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/HAL_SPI.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/QSPIFlash.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/Servo.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/eeprom_flash.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/eeprom_qspi.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/eeprom_wired.cpp.o
Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/timers.cpp.o
In file included from Marlin/src/HAL/LPC1768/tft/tft_spi.cpp:27:
Marlin/src/HAL/LPC1768/tft/tft_spi.h:27:10: fatal error: lpc17xx_ssp.h: No such file or directory

*********************************************************************
* Looking for lpc17xx_ssp.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:lpc17xx_ssp.h"
* Web  > https://registry.platformio.org/search?q=header:lpc17xx_ssp.h
*
*********************************************************************

Compiling .pio/build/ac_tri_f103re/src/src/HAL/SAMD21/u8g/LCD_I2C_routines.cpp.o
   27 | #include <lpc17xx_ssp.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/ac_tri_f103re/src/src/HAL/LPC1768/tft/tft_spi.cpp.o] Error 1
=============================================================== [FAILED] Took 36.86 seconds ===============================================================
fylhtq7779 commented 8 months ago

I have no way to test this, I don't have this machine Anyone brave want to try it? download from https://github.com/ellensp/Marlin/tree/add_kobra2_neo

I tried to compile the firmware, but it didn't work out. I get a lot of yellow errors, and in the end i get error изображение_2024-01-16_190054404

zamonary1 commented 8 months ago

I can't see any reason why would you need to use marlin on kobra 2 neo when you can just use klipper. You can try. https://klipper.discourse.group/t/getting-orange-pi-3-lts-klipper-working-with-anycubic-kobra-2-neo/11278

zamonary1 commented 8 months ago

we have managed to use non-supported firmware on undocumented board faster than anycubic allowed us to use stock firmware on their own printer, that just makes me laugh.

FLSchempp commented 8 months ago

I have no way to test this, I don't have this machine Anyone brave want to try it? download from https://github.com/ellensp/Marlin/tree/add_kobra2_neo

Compiled successfully on my laptop. However, after about 20 minutes with the UpdateFirmware black screen I turned off the printer and removed the SD card. When I turned it back on, I hear the fan, but the screen does not turn on.

I have gone back to the original firmware.

note: the internet tells me this controller has a GD32F303 RGT6 in which case it has more ram and flash than this env allows for, can anyone confirm what the MPU is on this controller?

Yes, at least in my case is GD32F303 RGT6.

FLSchempp commented 8 months ago

I can't see any reason why would you need to use marlin on kobra 2 neo when you can just use klipper. You can try. https://klipper.discourse.group/t/getting-orange-pi-3-lts-klipper-working-with-anycubic-kobra-2-neo/11278

This is a really good new! Thank you for sharing. I am definitely going to try adding a laser to the printer with klipper.

fylhtq7779 commented 8 months ago

I can't see any reason why would you need to use marlin on kobra 2 neo when you can just use klipper. You can try.

I think if there were instructions, it would be easier

FLSchempp commented 8 months ago

You can find a guide here: https://www.reddit.com/r/anycubic/comments/1987n78/kobra_2_neo_running_klipper_with_config_and_guide/?share_id=zeV_736-GOJgpmOyMa5rM&utm_content=1&utm_medium=ios_app&utm_name=ioscss&utm_source=share&utm_term=1

It seems that the printer.cfg is a little different, so please use the one you consider.

On 17. Jan 2024, at 11:19, fylhtq7779 @.***> wrote:

I can't see any reason why would you need to use marlin on kobra 2 neo when you can just use klipper. You can try.

I think if there were instructions, it would be easier

— Reply to this email directly, view it on GitHub https://github.com/ANYCUBIC-3D/Kobra2_Neo/issues/2#issuecomment-1895506417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS6FC53KDJEIXYS27QAZBI3YO6QUZAVCNFSM6AAAAABBCYRZ5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVGUYDMNBRG4. You are receiving this because you commented.

fylhtq7779 commented 8 months ago

You can find a guide here:

Thanks a lot I will try

zamonary1 commented 8 months ago

To succesfully compile you should consider the bootloader offset to be 36kb. This was discovered by kvgx12 on klipper discourse group after dumping the firmware from the printer.

FLSchempp commented 8 months ago

This is only needed if you want to compile your version, right?

Regarding the warning that you posted: "Also, don’t forget to name your bed mesh “main” or change the start gcode.” Could you please indicate how to do it?

Thanks

On 18. Jan 2024, at 08:44, zamonary1 @.***> wrote:

To succesfully compile you should consider the bootloader offset to be 36kb. This was discovered by kvgx12 on klipper discourse group after dumping the firmware from the printer.

— Reply to this email directly, view it on GitHub https://github.com/ANYCUBIC-3D/Kobra2_Neo/issues/2#issuecomment-1897958487, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS6FC5Y7KOCCEOSEL33YLVLYPDHFFAVCNFSM6AAAAABBCYRZ5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJXHE2TQNBYG4. You are receiving this because you commented.