bigtreetech / BIGTREETECH-Stepper-Motor-Driver

134 stars 55 forks source link

BTT S42B V2 Firmware Compiler errors #14

Open rob-mcinerney opened 2 years ago

rob-mcinerney commented 2 years ago

Not a very good programmer!!! When I compile the files from this repository get a firmware.bin file but is doesn't work correctly. It runs very slow on the motor. Here is the VSCode Terminal output.


Executing task: C:\Users\Rob.platformio\penv\Scripts\platformio.exe run <

Warning! env_default configuration option in section [platformio] is deprecated and will be removed in the next release! Please use default_envs instead Processing BIGTREE_S42B_V1_2 (platform: ststm32; framework: cmsis; board: genericSTM32F103CB) -------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103CB.html PLATFORM: ST STM32 (15.1.0) > STM32F103CB (20k RAM. 128k Flash) HARDWARE: STM32F103CBT6 72MHz, 20KB RAM, 128KB Flash DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:

Close_loop\src\system\usart.c: In function 'USART1_IRQHandler': Close_loop\src\system\usart.c:426:13: warning: variable '_data' set but not used [-Wunused-but-set-variable] uint8_t _data; ^~~~~** Linking .pioenvs\BIGTREE_S42B_V1_2\firmware.elf Checking size .pioenvs\BIGTREE_S42B_V1_2\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [== ] 15.6% (used 3200 bytes from 20480 bytes) Flash: [=== ] 27.1% (used 35580 bytes from 131072 bytes) Building .pioenvs\BIGTREE_S42B_V1_2\firmware.bin

I can post the coed if needed, but is cam from this repository.

Hoping it is a simple answer and I can get on with life. Thanks,