FYSETC / Nozzle-Input-Shaper

FYSETC - Nozzle Input Shaper (NIS)
GNU General Public License v3.0
13 stars 2 forks source link

error when flashign compiled fo #1

Open kot0005 opened 10 months ago

kot0005 commented 10 months ago

image

image

at the last step i am gettign an error. attached images

gello22 commented 8 months ago

I get the exact same error web search reveals no solution no such file or directory stm32f0xx.h

gluon99 commented 8 months ago

I had similar issue and it appeared to be related to Klipper version or hardware i was using to make.

It failed with Klipper v0.12.0-61-gb50d6669 on BTT Pi v1.2 Armbian 23.11.1 Bookworm with Linux 6.1.43-legacy-sun50iw9-btt

pi@bigtreetech-cb1:~/klipper$ 
pi@bigtreetech-cb1:~/klipper$ make flash FLASH_DEVICE=0483:df11
  Compiling out/src/pwmcmds.o
  Compiling out/src/lcd_st7920.o
  Compiling out/src/lcd_hd44780.o
  Compiling out/src/i2c_software.o
In file included from src/i2c_software.c:10:
out/board/internal.h:8:10: fatal error: stm32f0xx.h: No such file or directory
    8 | #include "stm32f0xx.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:64: out/src/i2c_software.o] Error 1
pi@bigtreetech-cb1:~/klipper$ 

I was able successfully make flash with Klipper v0.12.0-85-gd785b396 on Libre LePotato Armbian 23.11.1 Jammy with Linux 6.1.11-meson64

lepotato:klipper:% make flash FLASH_DEVICE=0483:df11
  Compiling out/src/lcd_st7920.o
  Compiling out/src/lcd_hd44780.o
  Compiling out/src/i2c_software.o
  Compiling out/src/sensor_lis2dw.o
  Building out/compile_time_request.o
Version: v0.12.0-85-gd785b396
  Linking out/klipper.elf
  Creating hex file out/klipper.bin
  Flashing out/klipper.bin to 0483:df11
sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8000000:leave -D out/klipper.bin

dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08000000, size = 28344
Download        [=========================] 100%        28344 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status

Failed to flash to 0483:df11: Error running dfu-util

If the device is already in bootloader mode it can be flashed with the
following command:
  make flash FLASH_DEVICE=0483:df11
  OR
  make flash FLASH_DEVICE=1209:beba

If attempting to flash via 3.3V serial, then use:
  make serialflash FLASH_DEVICE=0483:df11

make: *** [src/stm32/Makefile:111: flash] Error 255
lepotato:klipper:% 
lepotato:klipper:% ls /dev/serial/by-id/*
/dev/serial/by-id/usb-Klipper_stm32f042x6_06002000134330534E373720-if00
/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
lepotato:klipper:%  
sledwina commented 8 months ago

image

image

at the last step i am gettign an error. attached images

I get the same error. Someone found a fix?