Guest User

Untitled

a guest
Aug 29th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. So I've put in what I'm using at the moment, but it has been hacked to pieces with me trying every possible random combination of flags I can find.
  2. #######################################
  3. # Board settings
  4. #######################################
  5. CONFIG_SOC_SERIES_NRF52X=y
  6. CONFIG_SOC_NRF52810_QFAA=y
  7.  
  8. # use devicetree entries to control partitions
  9. CONFIG_USE_DT_CODE_PARTITION=y
  10.  
  11. CONFIG_BOOT_BANNER=n
  12.  
  13. # ~2.93% RAM increase if enabled
  14. CONFIG_ARM_MPU=y
  15. # ~2.67% RAM increase if enabled
  16. CONFIG_HW_STACK_PROTECTION=y
  17.  
  18. # support for serial drivers in Zephyr (mainly for uart)
  19. CONFIG_SERIAL=n
  20.  
  21. # Low Frequency (LF) Clock Configuration
  22. CONFIG_CLOCK_CONTROL=y
  23. CONFIG_CLOCK_CONTROL_NRF=y
  24. CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
  25. CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM=y
  26. CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
  27. #######################################
  28. #######################################
  29.  
  30. CONFIG_GPIO=y
  31.  
  32. #######################################
  33. # Onboard ws2812b (disabled while ble issues are being investigated)
  34. #######################################
  35. # CONFIG_SPI=y
  36. # CONFIG_LED_STRIP=y
  37. # CONFIG_WS2812_STRIP=y
  38. # CONFIG_WS2812_STRIP_SPI=y
  39.  
  40.  
  41.  
  42. #######################################
  43. # Bluetooth
  44. #######################################
  45. CONFIG_BT=y
  46. CONFIG_BT_PERIPHERAL=y
  47. # use nordic company id (for testing - easy to identify)
  48. CONFIG_BT_COMPANY_ID=0x0059
  49. #######################################
  50. #######################################
  51.  
  52. CONFIG_PM=n
  53. CONFIG_PM_DEVICE=n
  54.  
  55. CONFIG_BT_DEVICE_NAME="nRF52xx"
  56. CONFIG_BT_CTLR=y
  57. # ~6.53% Flash increase, ~6.66 RAM increase if enabled
  58. CONFIG_BT_EXT_ADV=n
  59.  
  60. ######################################
  61. # logging & debug
  62. ######################################
  63. CONFIG_DEBUG=y
  64. CONFIG_ASSERT=n
  65. CONFIG_LOG=y
  66. CONFIG_LOG_DEFAULT_LEVEL=4 #almost guaranteed a segfault when set to level 4
  67.  
  68. CONFIG_LOG_MODE_IMMEDIATE=n
  69. CONFIG_PRINTK=y
  70. CONFIG_CONSOLE=y
  71. CONFIG_LOG_PRINTK=y
  72. CONFIG_USE_SEGGER_RTT=y
  73. CONFIG_RTT_CONSOLE=y
  74. ######################################
  75. ######################################
  76.  
  77. ######################################
  78. # memory usage reduction/restrictions
  79. ######################################
  80. CONFIG_STACK_USAGE=y
  81. CONFIG_SIZE_OPTIMIZATIONS=y
  82. CONFIG_NO_OPTIMIZATIONS=n
  83.  
  84. ######################################
  85. # These aren't correct - they allow for debug
  86. # messages to flow, but the sizes are almost certainly a problem
  87. # Basically - these are wrong. Ignore them. BLE fails with _and_ without these
  88. #
  89. CONFIG_LOG_BUFFER_SIZE=1792
  90.  
  91. CONFIG_MAIN_STACK_SIZE=1024
  92. CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1024
  93. CONFIG_BT_RX_STACK_SIZE=1024
  94. CONFIG_ISR_STACK_SIZE=1024
  95. CONFIG_IDLE_STACK_SIZE=512
  96.  
Advertisement
Add Comment
Please, Sign In to add comment