fbt_options.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import posixpath
  2. # For more details on these options, run 'fbt -h'
  3. # Default hardware target
  4. TARGET_HW = 7
  5. # Optimization flags
  6. ## Optimize for size
  7. COMPACT = 0
  8. ## Optimize for debugging experience
  9. DEBUG = 1
  10. # Suffix to add to files when building distribution
  11. # If OS environment has DIST_SUFFIX set, it will be used instead
  12. DIST_SUFFIX = "local"
  13. # Coprocessor firmware
  14. COPRO_OB_DATA = "scripts/ob.data"
  15. # Must match lib/STM32CubeWB version
  16. COPRO_CUBE_VERSION = "1.13.3"
  17. COPRO_CUBE_DIR = "lib/STM32CubeWB"
  18. # Default radio stack
  19. COPRO_STACK_BIN = "stm32wb5x_BLE_Stack_light_fw.bin"
  20. # Firmware also supports "ble_full", but it might not fit into debug builds
  21. COPRO_STACK_TYPE = "ble_light"
  22. # Leave 0 to let scripts automatically calculate it
  23. COPRO_STACK_ADDR = "0x0"
  24. # If you override COPRO_CUBE_DIR on commandline, override this aswell
  25. COPRO_STACK_BIN_DIR = posixpath.join(
  26. COPRO_CUBE_DIR,
  27. "Projects",
  28. "STM32WB_Copro_Wireless_Binaries",
  29. "STM32WB5x",
  30. )
  31. # Supported toolchain versions
  32. FBT_TOOLCHAIN_VERSIONS = (" 10.3.",)
  33. OPENOCD_OPTS = [
  34. "-f",
  35. "interface/stlink.cfg",
  36. "-c",
  37. "transport select hla_swd",
  38. "-f",
  39. "debug/stm32wbx.cfg",
  40. "-c",
  41. "stm32wbx.cpu configure -rtos auto",
  42. "-c",
  43. "init",
  44. ]
  45. SVD_FILE = "debug/STM32WB55_CM4.svd"
  46. # Look for blackmagic probe on serial ports and local network
  47. BLACKMAGIC = "auto"
  48. # Application to start on boot
  49. LOADER_AUTOSTART = ""
  50. FIRMWARE_APPS = {
  51. "default": [
  52. # Svc
  53. "basic_services",
  54. # Apps
  55. "main_apps",
  56. "system_apps",
  57. # Settings
  58. "settings_apps",
  59. # Plugins
  60. # "basic_plugins",
  61. # Debug
  62. # "debug_apps",
  63. ],
  64. "unit_tests": [
  65. "basic_services",
  66. "updater_app",
  67. "unit_tests",
  68. ],
  69. }
  70. FIRMWARE_APP_SET = "default"