STM32F103RC_MEEB_3DP.py 506 B

123456789101112131415161718
  1. #
  2. # STM32F103RC_MEEB_3DP.py
  3. #
  4. import pioutil
  5. if pioutil.is_pio_build():
  6. env = pioutil.env
  7. flash_size = 0
  8. vect_tab_addr = 0
  9. for define in env['CPPDEFINES']:
  10. if define[0] == "VECT_TAB_ADDR":
  11. vect_tab_addr = define[1]
  12. if define[0] == "STM32_FLASH_SIZE":
  13. flash_size = define[1]
  14. print('Use the {0:s} address as the marlin app entry point.'.format(vect_tab_addr))
  15. print('Use the {0:d}KB flash version of stm32f103rct6 chip.'.format(flash_size))