fbt_options.py 1.7 KB

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