大家好、
出现系统堆栈溢出错误: 通过 ble_app.cfg 调整堆栈大小、堆大小会发生变化。 例如、当堆栈大小变大时、堆大小变小、完全为2307。
谢谢!
此致、
樱桃
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、
出现系统堆栈溢出错误: 通过 ble_app.cfg 调整堆栈大小、堆大小会发生变化。 例如、当堆栈大小变大时、堆大小变小、完全为2307。
谢谢!
此致、
樱桃
您好,
谢谢!
还有一些后续问题:
[引用 userid="370266" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it/3878465 #3878465"]链接时、工具链配置为将所有剩余的 RAM 分配为堆。 因此、您会看到相应的行为。由于这种设置、堆大小将设置为0、对吗?
[引用 userid="496057" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it "],其值为2307如何设置堆栈值、是否正确设置、如下图所示? 客户已计算出2307、但显示256。

客户已调整堆大小和堆栈大小 0x800。 检查地图后没有变化。
该设置如何反映在程序中?
谢谢!
此致、
樱桃
您好!
[引用 userid="496057" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it/3878513 #3878513"]由于这种设置,堆大小将设置为0,对吗?但在这种情况下、它根本不起作用。
[引用 userid="496057" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it/3878513 #3878513"]如何设置栈值,是否正确设置,如下图所示?我想以下主题 将对您有所帮助。
此致、
您好!
感谢您的患者回复!
客户仍对以下信息感到困惑:
[引用 userid="370266" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it/3878751 #3878751"]但在这种情况下根本不起作用。工程预编译中有一个定义:HEAPMGR_SIZE=0。 由于该设置、堆大小是否是动态的? 堆+堆栈大小是固定的、因此堆大小会随着堆栈大小通过 ble_app.cfg 进行调整而变化。
客户希望知道是否可以设置 堆+ STAC 的大小以及如何设置。
[引用 userid="370266" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it/3878751 #3878751"]我想 以下主题 将对您有所帮助。对于给定的链接、如果可以通过接口设置系统堆栈和堆大小、可以尽可能设置堆+堆栈的大小、对吧?
谢谢!
此致、
樱桃
您好!
[引用 userid="496057" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it/3880208 #3880208"]工程预编译中有一个定义:HEAPMGR_SIZE=0。 由于该设置、堆大小是否是动态的? 堆+堆栈大小是固定的、因此堆大小会随着堆栈大小通过 ble_app.cfg 进行调整而变化。[/quot]为了清楚、我说"将0字节分配给堆将导致问题"。
现在、如果我们要讨论.cfg 文件中的符号 HEAPMGR_SIZE、那么正确的做法是:"HEAPMGR_SIZE 值 为零(0)会将堆自动调整为等于链接器未分配的可用可用可用 RAM 量的大小。 默认情况下、simple_peripheral 项目使用自动大小功能。" (请参阅 https://www.ti.com/lit/swru393 §3.11.14)
该值对应于最大可用 RAM。 更改它的唯一方法是更改器件。
我建议使用链接中显示的方法。 我想.cfg 会覆盖通过 GUI 设置的一些设置。
此致、
您好!
感谢您的患者回复!
客户发现 还有空间用于映射文件的 SRAM 显示、您能帮助检查一下吗? 谢谢。
[引用 userid="370266" URL"~/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1048304/cc2650moda-how-to-configure-the-size-of-stack-peak-how-to-adjust-it/3880236 #3880236]\n 此值对应于最大可用 RAM。 更改它的唯一方法是更改器件。[/quot]此致、
樱桃