fbt_options.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 = '-f interface/stlink.cfg -c "transport select hla_swd" -f debug/stm32wbx.cfg -c "stm32wbx.cpu configure -rtos auto" -c "init"'
  33. SVD_FILE = "debug/STM32WB55_CM4.svd"
  34. FIRMWARE_APPS = {
  35. "default": [
  36. "crypto_start",
  37. # Svc
  38. "basic_services",
  39. # Apps
  40. "basic_apps",
  41. "updater_app",
  42. "archive",
  43. # Settings
  44. "passport",
  45. "system_settings",
  46. "about",
  47. # Plugins
  48. "basic_plugins",
  49. # Debug
  50. "debug_apps",
  51. ],
  52. "unit_tests": [
  53. "basic_services",
  54. "unit_tests",
  55. ],
  56. }
  57. FIRMWARE_APP_SET = "default"