tronxy3d / F4xx-SIM480x320

STM32F446 or GD32F4xx [V2.18.0] {XY2-PRO, XY2_PRO_2E, XY2_PRO_3E, X5SA, X5SA_g, X5SA_MINI, X5SA_PRO, X5SA_2E, X5SA_PRO_3E, X5SA400, X5SA400_PRO, X5SA400_2E, X5SA500_2E, VEHO500, VEHO500_2E, XY3-PRO, XY3_PB, XY3-PRO-V2, XY3SE, XY3SE_2E, XY3SE_V2, D01, D01_PLUS, VEHO600, VEHO600_2E, C2}
GNU General Public License v3.0
31 stars 24 forks source link

Cannot compile firmware for STM32F103 board #1

Open luigimannoni opened 1 year ago

luigimannoni commented 1 year ago

Bug Description

I have a XY2-PRO with Titan extruder, compiling the firmware with the STM32F446 board as target does not update the printer, I believe I have a 103 board (2 capacitators - chitu v6)

If I change the platformio.ini file at row 17: default_envs = tronxy_stm32f103 the compilation fails with the following error:

Marlin\src\HAL\STM32\HAL.cpp: In function 'void HAL_SYSTICK_Callback()':
Marlin\src\HAL\STM32\HAL.cpp:170:3: error: 'hUSBHost' was not declared in this scope
  170 |   hUSBHost.Timer++;
      |   ^~~~~~~~
*** [.pio\build\tronxy_stm32f103\src\src\HAL\STM32\HAL.cpp.o] Error 1

Also, if compiled with STM32F446 no update.cbd is present and firmware is not flashed via SD card.

borland1 commented 1 year ago

Please include support for STM32F103 mainboard

Same as problem as luigimannoni.

Also, if I change extruder for XY2-PRO in fileTronxyMachine.h to Titan, there are compile errors..

#define USE_EXTRUDER 1 // Titan

I also have XY2-Pro Titan and V6 (103 mainboard) with bootloader V1.56 and Tronxy firmware V1.24.

Please also include how to modify file platformIO.ini to successfully compile and produce update folder for use with SD-card on the above mentioned board.

tronxy3d commented 1 year ago

Bug Description

I have a XY2-PRO with Titan extruder, compiling the firmware with the STM32F446 board as target does not update the printer, I believe I have a 103 board (2 capacitators - chitu v6)

If I change the platformio.ini file at row 17: default_envs = tronxy_stm32f103 the compilation fails with the following error:

Marlin\src\HAL\STM32\HAL.cpp: In function 'void HAL_SYSTICK_Callback()':
Marlin\src\HAL\STM32\HAL.cpp:170:3: error: 'hUSBHost' was not declared in this scope
  170 |   hUSBHost.Timer++;
      |   ^~~~~~~~
*** [.pio\build\tronxy_stm32f103\src\src\HAL\STM32\HAL.cpp.o] Error 1

Also, if compiled with STM32F446 no update.cbd is present and firmware is not flashed via SD card.

I'm sorry I didn't reply to you until now,I have uploaded the source code of F103, please download it at the following website: https://github.com/tronxy3d/STM32F103-PIC480x320

tronxy3d commented 1 year ago

Please include support for STM32F103 mainboard

Same as problem as luigimannoni.

Also, if I change extruder for XY2-PRO in fileTronxyMachine.h to Titan, there are compile errors..

#define USE_EXTRUDER 1 // Titan

I also have XY2-Pro Titan and V6 (103 mainboard) with bootloader V1.56 and Tronxy firmware V1.24.

Please also include how to modify file platformIO.ini to successfully compile and produce update folder for use with SD-card on the above mentioned board.

I have uploaded the source code of F103, please download it at the following website: https://github.com/tronxy3d/STM32F103-PIC480x320