fbt_options.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 let 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 and local network
  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. "storage_move_to_sd",
  56. "archive",
  57. # Settings
  58. "passport",
  59. "system_settings",
  60. "about",
  61. # Plugins
  62. "basic_plugins",
  63. # Debug
  64. "debug_apps",
  65. ],
  66. "unit_tests": [
  67. "basic_services",
  68. "updater_app",
  69. "unit_tests",
  70. ],
  71. }
  72. FIRMWARE_APP_SET = "default"