So I've dug through some docs on the original (Rep Rap) firmware, and this was autogenerated by PlatformIO:
I changed the line you were talking about to read "env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08002000"))" but still no dice. Does any info from this doc help narrow down the issue? Serial_Port is still set to -1
Also, the file "buildroot/share/PlatformIO/scripts/STM32F103RET6_creality.py" didn't exist for me, it was called "buildroot/share/PlatformIO/scripts/creality.py"
"defines": [ "PLATFORMIO=50101", "STM32F103xE", "STM32F1", "ENABLE_USB_SERIAL", "ARDUINO=10808", "ARDUINO_ARCH_STM32", "ARDUINO_ARCH_STM32F1", "ARDUINO_GENERIC_STM32F103R", "MCU_STM32F103RE", "__STM32F1__", "BOARD_generic_stm32f103r", "F_CPU=72000000L", "VECT_TAB_ADDR=0x8002000", "ERROR_LED_PORT=GPIOB", "ERROR_LED_PIN=1", "SERIAL_USB", "GENERIC_BOOTLOADER", "" ],
I changed the line you were talking about to read "env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08002000"))" but still no dice. Does any info from this doc help narrow down the issue? Serial_Port is still set to -1
Also, the file "buildroot/share/PlatformIO/scripts/STM32F103RET6_creality.py" didn't exist for me, it was called "buildroot/share/PlatformIO/scripts/creality.py"