makerbase-mks / MKS-Robin-Nano-V3.X

Robin nano V3 is an upgraded version of Robin Nano V2.0. The upgrade changes are quite large, including upgrading the MCU to the M4 core, and adding support for USB disk.
GNU General Public License v3.0
135 stars 63 forks source link

MKS Eagle issues #94

Open selvakumaran2016 opened 2 years ago

selvakumaran2016 commented 2 years ago

Multiple issues with MKS Eagle board:

  1. We tried to use the Marlin from the following sources:
    1. https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware
    2. Original Marlin 2.0 and also Marlin Bugfix.

We followed the instructions given by you. MKS Eagle build and update firmware 1.Build config: platformio.ini: default_envs = mks_eagle_usb_flash_drive Configuation.h:

define SERIAL_PORT -1

define MKS_TS35_V2_0

define MOTHERBOARD BOARD_MKS_EAGLE

define TFT_LVGL_UI

define TOUCH_SCREEN

Configuation_adv.h: After 2021.6.7, you can use the multi-volume function. Use the TF card and USB disk together:

define USB_FLASH_DRIVE_SUPPORT

Only use TF card: // #define USB_FLASH_DRIVE_SUPPORT We have enabled the USB_FLASH_DRIVE_SUPPORT.

In Auto build Marlin, it is showing only one environment. (mks_eagle) When compiling it is showing the following error: *c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/mks_eagle/src/src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp.o: in function DiskIODriver_USBFlash::isReady()': C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:271: undefined reference toUSBHost::getUsbTaskState()' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:271: undefined reference to usb' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/mks_eagle/src/src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp.o: in functionDiskIODriver_USBFlash::cardSize()': C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:301: undefined reference to bulk' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:299: undefined reference toBulkStorage::GetCapacity(unsigned char)' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/mks_eagle/src/src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp.o: in function `DiskIODriver_USBFlash::readBlock(unsigned long, unsigned char)': C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:314: undefined reference to BulkStorage::Read(unsigned char, unsigned long, unsigned short, unsigned char, unsigned char*)' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:304: undefined reference tobulk' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/mks_eagle/src/src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp.o: in function DiskIODriver_USBFlash::writeBlock(unsigned long, unsigned char const*)': C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:328: undefined reference toBulkStorage::Write(unsigned char, unsigned long, unsigned short, unsigned char, unsigned char const*)' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:318: undefined reference to bulk' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/mks_eagle/src/src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp.o: in functionDiskIODriver_USBFlash::usbStartup()': C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:127: undefined reference to USBHost::start()' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:142: undefined reference tousb' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/mks_eagle/src/src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp.o: in function DiskIODriver_USBFlash::idle()': C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:154: undefined reference toUSBHost::Task()' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:156: undefined reference to USBHost::getUsbTaskState()' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:212: undefined reference toBulkStorage::LUNIsGood(unsigned char)' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Mc:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:257: undefined reference to usb' c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\Downloads\Mks-Robin-Nano-Marlin2.0-Firmware-master\Mks-Robin-Nano-Marlin2.0-Firmware-master/Marlin\src\sd\usb_flashdrive/Sd2Card_FlashDrive.cpp:257: undefined reference tobulk' collect2.exe: error: ld returned 1 exit status * [.pio\build\mks_eagle\firmware.elf] Error 1

Then we disabled the USB_FLASH drive support. // #define USB_FLASH_DRIVE_SUPPORT After that, it compiled successfully. But we are facing some other issues:

  1. Board is not connecting with Pronterface. Showing the below error. 'Starting USB Host. The revision register appears incorrect on MAX3421E initialization. Got 255 failed'

  2. In one board if you are connecting to Pronterface, then switching on the power supply automatically the board is disconnecting from the computer. If we are switching on the power supply and connecting the USB cable to the computer, the board is not getting connected. (If power is connected, Serial port is not working) We have kept the jumper in USB ON only.

  3. When we are connecting the pen drive automatically the screen is restarting

  4. In one board, if we are trying to move the axis, automatically the screen is restarting

Now I have 3 Eagle boards all the boats are having different issues. (These boards are bought from a local vendor in India). I have to deliver these machines by this coming Thursday. Please support it's very urgent. see all the above errors and give a stable firmware

We used the same firmware for Robin Nano V3.

Here it is showing 3 Environments. (In Eagle only one Environment is coming).

MKS-hosiey commented 2 years ago

Is your switching power supply working properly? Only when the usb power supply is set to on can it be connected, and the mobile Z-axis screen is started, and the power supply of the motherboard is also normal?