Getting orange pi 3 lts + klipper working with anycubic kobra 2 neo

about that last sentence. When I rename the bin file from klipper.bin to firmware-1.bin nothing happens. Only when the file is called firmware.bin the flashing process will start. But unfortunatelly is exactly the name that I used to reflash the original firmware back.

So what exactly should be the name of the file?

I think this is because you are using the - symbol in the file name. Try using characters only. Something like firmwarex.bin should work.

To help a bit here, the standard bootloader offset for the GD32F303 is 28Kib, not 8, and according to the Marlin source it’s likely using USART 2 for USB, considering that it is referenced as “SERIAL_PORT 2” in Marlin’s configuration.h, as well as the PA9 pin being used for stepper drivers in the “pins_AC_TRI_F1_V1.h” file. (Also, The printer will only update if the file on the SD card is “firmware.bin” nothing extra)

Perhaps the bootloader size is 36KiB?

hmm? i will receive my new replacement board soon, around 2nd january. I’ll try and test klipper too.
Merry christmas everyone!

i think that in the source code usb was defined to USART1 (PA10/PA9). All things considered current compile options would look something like this

image

grafik
no such an option

I tried this setup in my printer.
No luck.

For my own sanity i will retreat a couple of weeks from this subject, until there is enough information to have a working bin file and a working cfg.

Happy new year everybody. Thank you for your engagement and patience.

set this in .config
CONFIG_FLASH_APPLICATION_ADDRESS=0x8009000
But this won’t help currently, as it can’t be flashed for some reason

I dumped whole flash through debug interface and indeed the bootloader is 36KiB

Here is the dumped flash with original firmware installed
flash.bin.zip (178.9 KB)

I have a K2 Neo and just disassembled it to get to the motherboard, and the CH430 is definitely connected to PA2 RX, PA3 TX. And there is a 8Mhz and 12Mhz external clock source.

I may also try to flash Katapult using a SWD programmer to make Bootloader offset, USB pins, and baud rate a constant.

Got it working, I had to manually put addresses into linker script for some reason
bootloader 36KiB, usart2
Also added turning off lcd at startup to indicate when flashing is done


k2neo-klipper.zip (24.0 KB)

1 Like

image

Are you able to share the files from the mainsail?

you pasted firmware compilation configuration into printer configuration

Here is my initial printer.cfg, I tried to enable auto z offset using klipper plugin but not sure if it really does anything.
printer.cfg (2.4 KB)

Wha-
I really hope to receive the new mainboard very soon. Very good job!


jesteś geniuszem :slight_smile:

Second config after couple of prints, now with correct extruder rotation distance so should be a good starting point.
Now waiting for an accelerometer to calibrate input shaping correctly, even now quality looks better than in stock marlin, especially first layers.

printer.cfg (2.5 KB)

i’m klipping rn my 3d printer for the processor model what we need to use?

just received my new motherboard, i want ti post h-res scans of motherboard and then install it to my printer.

Totally not sure about switch_offset correct value, 1.5 seems okay for me but to be sure check manually the nozzle clearance to bed after z offset calibration to prevent dragging nozzle across the bed