fbt_options.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. # Stock plugins - no longer built into fw, now they're .faps
  60. # Yet you can still build them as a part of fw
  61. # "basic_plugins",
  62. # Debug
  63. # "debug_apps",
  64. ],
  65. "unit_tests": [
  66. "basic_services",
  67. "updater_app",
  68. "unit_tests",
  69. ],
  70. }
  71. FIRMWARE_APP_SET = "default"