BIGTREETECH-OCTOPUS-V1.0 icon indicating copy to clipboard operation
BIGTREETECH-OCTOPUS-V1.0 copied to clipboard

USB thumb drive support, Marlin, Octopus 1.1

Open roschme opened this issue 2 years ago • 2 comments

Hi,

i'm in trouble compiling Marlin-bugfix-2.0.9.2.x with activated " #define USB_FLASH_DRIVE_SUPPORT " and " #define USE_OTG_USB_HOST "for an Octopus 1.1 under VSC/Platformio. What i'm doing wrong? Would be very grateful for your hints and help. (USB Host Support/Pronterface works as everything else but the support for usb thumbs fails)
thx bob

platformio.ini ... [platformio] src_dir = Marlin boards_dir = buildroot/share/PlatformIO/boards default_envs = BIGTREE_OCTOPUS_V1_USB ... Marlin\configuratin.h ... #define MOTHERBOARD BOARD_BTT_OCTOPUS_V1_1 ...

Marlin\configuration_adv.h ... #define USB_FLASH_DRIVE_SUPPORT #if ENABLED(USB_FLASH_DRIVE_SUPPORT) ... #define USE_OTG_USB_HOST ...

first rows of the compilerlog:

Processing BIGTREE_OCTOPUS_V1_USB (platform: ststm32@~12.1; board: marlin_BigTree_Octopus_v1; framework: arduino)

Verbose mode can be enabled via -v, --verbose option UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 79482: character maps to : File "C:\Users\xyz.platformio\penv\lib\site-packages\platformio\builder\main.py", line 179: env.SConscript(item, exports="env") File "C:\Users\xyz.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597: return _SConscript(self.fs, *files, **subst_kw) File "C:\Users\xyz.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "C:\BIGTREETECH-OCTOPUS-V1.0-master\Firmware\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 253: compute_build_signature(env) File "C:\BIGTREETECH-OCTOPUS-V1.0-master\Firmware\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\signature.py", line 83: defines = extract_defines(header) File "C:\BIGTREETECH-OCTOPUS-V1.0-master\Firmware\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\signature.py", line 15: f = open(filepath).read().split("\n") File "C:\Users\xyz.platformio\python3\lib\encodings\cp1252.py", line 23: return codecs.charmap_decode(input,self.errors,decoding_table)[0] ======================================================================================================= [FAILED] Took 2.78 seconds =======================================================================================================

Environment Status Duration


BIGTREE_OCTOPUS_V1_USB FAILED 00:00:02.778

roschme avatar Dec 13 '21 19:12 roschme

USB Flash Disk finally working on the Octopus V1.1: Just use the ORIGINAL! https://github.com/MarlinFirmware/Marlin/archive/2.0.x.zip

platformio.ini: ... [platformio] src_dir = Marlin boards_dir = buildroot/share/PlatformIO/boards default_envs = BIGTREE_OCTOPUS_V1_USB include_dir = Marlin
...

configuration.h: ... #define CONFIGURATION_H_VERSION 02000902 ... #define MOTHERBOARD BOARD_BTT_OCTOPUS_V1_1 ... #define SDSUPPORT ...

configuration_adv.h : ... #define USB_FLASH_DRIVE_SUPPORT ... #define USE_OTG_USB_HOST ... #define NO_SD_HOST_DRIVE //Disable SD Card access over USB (for security). (otherwise problems with pronterface under win)

roschme avatar Dec 15 '21 22:12 roschme

i downloaded Marlin-bugfix-2.1.x.. remember to download bugfix..this file will be larger than the rest.

[platformio] src_dir = Marlin boards_dir = buildroot/share/PlatformIO/boards default_envs = STM32F446ZE_btt_usb_flash_drive include_dir = Marlin

in Configuration.h :

#ifndef MOTHERBOARD #define MOTHERBOARD BOARD_BTT_OCTOPUS_V1_1 #endif

#define SERIAL_PORT -1 #define SERIAL_PORT_2 1

#ifndef MOTHERBOARD #define MOTHERBOARD BOARD_BTT_OCTOPUS_V1_1 #endif

#define SDSUPPORT

configuration_adv.h : ... #define USB_FLASH_DRIVE_SUPPORT ... #define USE_OTG_USB_HOST ... #define NO_SD_HOST_DRIVE //Disable SD Card access over USB (for security). (otherwise problems with pronterface under win)

usama0300854 avatar Feb 09 '24 15:02 usama0300854