stm32f407-devebox_ili9341.ini 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ;***************************************************;
  2. ; STM32F4xx build with ;
  3. ; - DevEBox board ;
  4. ; - ili9341 TFT ;
  5. ; - xpt2046 touch controller ;
  6. ;***************************************************;
  7. ; Purchase Link: https://www.aliexpress.com/item/32985219862.html
  8. ; https://www.aliexpress.com/item/4000094075769.html
  9. ; https://www.aliexpress.com/item/4000602517153.html
  10. ; Documentation: https://github.com/mcauser/MCUDEV_DEVEBOX_F407VGT6
  11. ; Versions:
  12. ; - STM32F407VET6 has 512 KB flash
  13. ; - STM32F407VGT6 has 1 MB flash
  14. ;[env:DevEBox_STM32F4xx]
  15. [env:stm32f407-devebox_ili9341]
  16. extends = stm32f4
  17. board = black_f407vg
  18. board_upload.maximum_size = 1048576 ; Flash size is wrong in variant
  19. ; upload_protocol = dfu
  20. upload_protocol = stlink
  21. debug_tool = stlink
  22. ;monitor_port = COM19 ; To change the port, use platform_override.ini
  23. build_flags =
  24. ${env.build_flags}
  25. ${stm32f4.build_flags}
  26. ;region -- TFT_eSPI build options ------------------------
  27. ${lcd.lolin24}
  28. ;-D TFT_MISO=PB4 ;Default
  29. ;-D TFT_MOSI=PB5 ;Default
  30. ;-D TFT_SCLK=PB3 ;Default
  31. -D TFT_CS=PE13 ;D8
  32. -D TFT_DC=PE14 ;D3
  33. -D TFT_BCKL=-1 ;None, configurable via web UI (e.g. 2 for D4)
  34. -D TOUCH_CS=PA6 ;NC
  35. -D TFT_RST=-1 ;D4
  36. -D STM32
  37. ;#define TFT_SPI_PORT 1 // SPI port 1 maximum clock rate is 55MHz
  38. -D TFT_SPI3
  39. -D USE_DMA_TO_TFT
  40. ;endregion
  41. ;region -- Hasp build options ----------------------------
  42. -D HASP_USE_WIFI=0
  43. -D HASP_USE_MQTT=1
  44. -D HASP_USE_HTTP=1
  45. -D HASP_USE_MDNS=0
  46. -D HASP_USE_SYSLOG=0
  47. -D HASP_USE_TELNET=0
  48. -D HASP_USE_SPIFFS=0
  49. -D HASP_USE_EEPROM=1
  50. -D HASP_USE_GPIO=1
  51. -D HASP_USE_TASMOTA_CLIENT=0
  52. -D HASP_USE_OTA=0
  53. -D HASP_OUTPUT_PIN=PA1 ; User LED D2 on DevEBox board
  54. -D HASP_INPUT_PIN=PA0 ; User Button K1 on DevEBox board
  55. ;endregion
  56. -D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
  57. ;region -- Network build options -------------------------
  58. -D HASP_USE_ETHERNET=1
  59. -D USE_BUILTIN_ETHERNET=1
  60. -D HAL_ETH_MODULE_ENABLED=1
  61. ; -D LAN8742A_PHY_ADDRESS=0x01U ; moved to include\stm32f4\hal_conf_custom.h
  62. ; -D DP83848_PHY_ADDRESS=0x01U
  63. ;endregion
  64. ;region -- Library options -------------------------------
  65. lib_deps =
  66. ${env.lib_deps}
  67. ${stm32f4.lib_deps}
  68. stm32duino/STM32Ethernet @ ^1.2.0
  69. ; https://github.com/stm32duino/STM32Ethernet.git
  70. khoih-prog/EthernetWebServer_STM32 @ ^1.1.0
  71. lib_ignore =
  72. GxTFT
  73. XPT2046_Touchscreen
  74. lv_lib_zifont
  75. src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<lv_lib_zifont/> +<stm32f4/>
  76. ;endregion