Open selvakumaran2016 opened 2 years ago
Have you tried selecting the environments rather than the auto build? I can get it to complile using the defined environments: mks_eagle_usb_flash_drive and mks_eagle_usb_flash_drive_msc but not mks_eagle. The auto build option under default seems to select "mks_eagle_usb_flash_drive" and reliably fails when commenting out
Have you tried starting with the default firmware https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware and making minimal changes:
Leaving #define USB_FLASH_DRIVE_SUPPORT enabled?
Multiple issues with MKS Eagle board:
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 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:271: 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::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 tobulk' 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 to
BulkStorage::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 toBulkStorage::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 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::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 to
BulkStorage::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 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::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 toUSBHost::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 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::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 to
USBHost::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 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:212: undefined reference to
BulkStorage::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 tousb' 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 to
bulk' collect2.exe: error: ld returned 1 exit status * [.pio\build\mks_eagle\firmware.elf] Error 1Then we disabled the USB_FLASH drive support. // #define USB_FLASH_DRIVE_SUPPORT After that, it compiled successfully. But we are facing some other issues:
Board is not connecting with Pronterface. Showing the below error. 'Starting USB Host. The revision register appears incorrect on MAX3421E initialization. Got 255 failed'
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.
When we are connecting the pen drive automatically the screen is restarting
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).