FYSETC / Nozzle-Input-Shaper

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

MCU Protocol Error #4

Closed Klaiii closed 6 months ago

Klaiii commented 6 months ago

Hello, i followed the guide on the github but i got stuck at point 5. I got an error while launching make flash FLASH_DEVICE=0483:df11 and i get:

orangepi@orangepi3-lts:~/klipper ‹master*›$ 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

I continued with the guide and i got the Serial. I compiled the config file for klipper but i get this error:

MCU Protocol error

This is frequently caused by running an older version of the
firmware on the MCU(s). Fix by recompiling and flashing the
firmware.

Your Klipper version is: v0.12.0-118-g18de421c-dirty
MCU(s) which should be updated:
mcu: Current version v0.12.0-118-g18de421c
NIS: Current version v0.12.0-36-g3417940f
Up-to-date MCU(s):

Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.

mcu 'NIS': Command format mismatch: query_adxl345 oid=%c rest_ticks=%u vs query_adxl345 oid=%c clock=%u rest_ticks=%u

How can i update the Input Shaper?


SOLUTION

I followed another modified guide, with slightly different commands. You can find it at this git. At point 7, be aware to do It with DFU Mode, so you can flash your input shaper. Maybe it fails but as it says in the original guide, if the download is successful, you can continue. It happened to me and as suggested in the error itself, I launched make flash FLASH_DEVICE=0483:df11 and It went all well.

Last thing, i modified the klipper.cfg section from [mcu NIS] to [mcu USB].