-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SKR Mini v1.1: USB Device descriptor request failed #12
Comments
I have fried my only F103 so I cannot check this. Can you connect with Marlin firmware? |
I can still upload the Marlin firmware and it will work with CNCJs, at least I believe that the board is still ok. I am guessing that either the firmware is not running properly or the native USB driver is not working properly. With Marlin, it uses the maple device driver Here is my my_machine.h //#define BTT_SKR_MINI_E3_V20
#define BTT_SKR_MINI_V11
//#define BOARD_MY_MACHINE // Add my_machine_map.h before enabling this!
// Configuration
// Uncomment to enable.
#define USB_SERIAL_CDC 1 // Serial communication via native USB. Comment out for UART communication.
//#define SDCARD_ENABLE 1 // Run gcode programs from SD card, requires sdcard plugin. Here is my platformio build env. [env:BTT_SKR_MINI_V11]
board = genericSTM32F103RC
board_build.ldscript = STM32F103RCTX_FLASH.ld
build_flags = ${common.build_flags}
# See Inc/my_machine.h for options
-D BTT_SKR_MINI_V11=
#-D EEPROM_ENABLE=3
-D USB_SERIAL_CDC=1
# Relocate the vector table where the boot loader expects to find them
-D VECT_TAB_OFFSET=0x7000
-Wl,--defsym=LD_VECT_TAB_OFFSET=0x7000
lib_deps = ${common.lib_deps}
eeprom
trinamic
#USBComposite for STM32F1@==0.91
lib_extra_dirs = ${common.lib_extra_dirs}
# Upload is not supported for this board since BOOT0 is tied to GND.
# With the default boot loader, you must deploy new firmware by copying
# .pio/build/<env name>/firmware.bin (produced by `pio run`) to the SD card.
|
You need to change the code a bit and use a different loader script. Change these lines: Lines 1021 to 1026 in 942afe0
to:
and add Add this loader script in the same folder as the original and change platformio build env to use it: STM32F103RCTX_BL28K_FLASH .zip With luck that should make it work. |
Thanks @terjeio, got it working now. At least I know that the firmware is uploaded and that the PC and controller are communicating. I will proceed with the actual hardware test later.
|
Hi. I have successfully compiled this driver for the SKR Mini v1.1 after playing around with the mapping. In my_machine.h, USB_SERIAL_CDC is enabled, also in the platformio.ini as a build flags. I can confirm the the firmware is uploaded because the firmware.bin is now renamed to BIGTREETECH.bigtreetech, which is what happens when I upload Marlin firmware. What could possibly causes this error that I am getting here.
I am not that good in coding but if given some hint then I can try to find the issue.
The text was updated successfully, but these errors were encountered: