Closed stikzoo closed 2 years ago
Provided configs upgrade to bug fix compiles without issues Configuration_bugfix.zip
Also build_flags = (add) -DHAVE_SW_SERIAL is not required. loading TMCStepper will load it
Dependency Graph
|-- <TMCStepper> 0.7.3
| |-- <SPI> 1.0
| |-- <SoftwareSerial> 1.0
Thank you, I tried it. SoftwareSerialM in library PlatFormIO is not required? I have another issue on 3 GCODE command for TMC stepper and on feedrate.
That is a user error Using miss matched configs files and code versions See this for details https://github.com/MarlinFirmware/Marlin/issues/23656#issuecomment-1025441678
Thanks a lot I will check this.
Ok it is done for the feedrate problem but this is unsolved:
Marlin\src\gcode\feature\trinamic\M569.cpp: In function 'void set_stealth_status(bool, int8_t)':
Marlin\src\gcode\feature\trinamic\M569.cpp:53:22: warning: unused variable 'index' [-Wunused-variable]
53 | constexpr int8_t index = -1;
| ^~~~~
Compiling .pio\build\STM32F103RET6_creality\src\src\gcode\geometry\G92.cpp.o
Compiling .pio\build\STM32F103RET6_creality\src\src\gcode\geometry\M206_M428.cpp.o
Marlin\src\gcode\feature\trinamic\M906.cpp: In static member function 'static void GcodeSuite::M906()':
Marlin\src\gcode\feature\trinamic\M906.cpp:60:22: warning: unused variable 'index' [-Wunused-variable]
60 | constexpr int8_t index = -1;
| ^~~~~
Compiling .pio\build\STM32F103RET6_creality\src\src\gcode\host\M110.cpp.o
Compiling .pio\build\STM32F103RET6_creality\src\src\gcode\host\M113.cpp.o
Compiling .pio\build\STM32F103RET6_creality\src\src\gcode\host\M114.cpp.o
Marlin\src\gcode\feature\trinamic\M919.cpp: In static member function 'static void GcodeSuite::M919()':
Marlin\src\gcode\feature\trinamic\M919.cpp:97:22: warning: unused variable 'index' [-Wunused-variable]
97 | constexpr int8_t index = -1;
| ^~~~~
I tried HAS_TRINAMIC_CONFIG = TMCStepper@0.7.1 in ini/features.ini
but don't solve this issue.
warnings... unused variables, safe to ignore them
Yes, thank you, I just read it .. sorry for the inconvenience
ok, all was good for compiling. So when I load my compiled firmware I have a black screen and nothing else. I did this mod:
- #define E0_DRIVER_TYPE TMC2208
+ #define E0_DRIVER_TYPE TMC2208_STANDALONE
And I did not black screen issue. I saw this issue #22905 but i didn't find any thing.
because no one has solved this yet, other than to build with _maple environment or use different pins IO pins.
You could try this test though, as I have some ideas
You added this to pins_CREALITY_v4.h
#if HAS_TMC_UART
#define E0_SERIAL_TX_PIN PA3
#define E0_SERIAL_RX_PIN PA3
#define TMC_BAUD_RATE 19200
#endif
As a test try this, see it it makes any difference
#if HAS_TMC_UART
#define E0_SERIAL_TX_PIN 3
#define E0_SERIAL_RX_PIN 3
#define TMC_BAUD_RATE 19200
#endif
If nothing changes try editing ini/stm32f1.ini
In block [STM32F103Rx_creality] is
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
try
-DSS_TIMER=4 -DTIMER_SERVO=TIM6
With STM32RET6_creality_maple I have issue:
Marlin\src\HAL\STM32F1\onboard_sd.cpp:42:25: error: 'ONBOARD_SD_CS_PIN' was not declared in this scope
With a different pin (PA13) it is working. I just need to change my soldering pin. Thank you a lot for your time.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Did you test the latest
bugfix-2.0.x
code?Yes, and the problem still exists.
Bug Description
I can't compile a firmware, I find an issue with this, so I deleted .pio folder then retry to compile but it don't work.
Bug Timeline
No response
Expected behavior
I would like to compile a firmawre inside visual code with PlatformIO
Actual behavior
Log Output
``` > Executing task: C:\Users\h95vi\.platformio\penv\Scripts\platformio.exe run < Processing STM32F103RET6_creality (board: genericSTM32F103RE; platform: ststm32@~12.1; framework: arduino) -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html PLATFORM: ST STM32 (12.1.1) > STM32F103RE (64k RAM. 512k Flash) HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES: - framework-arduinoststm32 4.10900.200819 (1.9.0) - framework-cmsis 2.50501.200527 (5.5.1) - toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1) Converting Marlin.ino LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 12 compatible libraries Scanning dependencies... Dependency Graph |--Steps to Reproduce
Dot o platformio.ini: Add library SoftwareSerialM build_flags = (add) -DHAVE_SW_SERIAL
Go to pins_CREALITY_v4.h:
Go to “configuration.h”:
Version of Marlin Firmware
2.0.9.3
Printer model
Creality Ender 3 V2
Electronics
Creality 4.2.2
Add-ons
CR touch
Bed Leveling
UBL Bilinear mesh
Your Slicer
Prusa Slicer
Host Software
Pronterface
Additional information & file uploads
Configurationadv.txt Configuration_.txt pins_CREALITYV4.txt