<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BLE Mesh Maximum ACCESS_MODEL_COUNT?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99115/ble-mesh-maximum-access_model_count</link><description>I have a modified version of the Mesh &amp;#39;serial&amp;#39; example to which I have already added 5 custom models without any problems, but encountered a problem when attempting to integrate the &amp;quot;pb_remote_client&amp;quot; model to my project. Everything compiles and appears</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jun 2023 13:32:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99115/ble-mesh-maximum-access_model_count" /><item><title>RE: BLE Mesh Maximum ACCESS_MODEL_COUNT?</title><link>https://devzone.nordicsemi.com/thread/432359?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 13:32:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ad2f203-7451-4bb1-9ac2-75c53e110a31</guid><dc:creator>Jeremy</dc:creator><description>&lt;p&gt;Sorry for the long delay in response. I&amp;#39;ve been waylaid by other projects and bugs and finally got back to this at the end of last week.&lt;/p&gt;
&lt;p&gt;Unfortunately&amp;nbsp;increasing PACKET_MGR_MEMORY_POOL_SIZE did not help, but I was able to avoid&amp;nbsp;the issue while increasing the model count by returning&amp;nbsp;MESH_FEATURE_FRIEND_ENABLED to 0, disabling friend support. While my network will include LPN nodes that require friend support, that duty can be offloaded to the other mains powered nodes without needing this needing this &amp;quot;serial&amp;quot; based node to help.&lt;/p&gt;
&lt;p&gt;Thanks for all your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Maximum ACCESS_MODEL_COUNT?</title><link>https://devzone.nordicsemi.com/thread/425850?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 12:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:921e8560-dcd8-45a5-8783-168135936dce</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Joakim is out of office. But looking at the stack trace, maybe increasing the value of&amp;nbsp;PACKET_MGR_MEMORY_POOL_SIZE in nrf_mesh_config_core.h could help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Maximum ACCESS_MODEL_COUNT?</title><link>https://devzone.nordicsemi.com/thread/423005?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 13:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f65ad58-c85a-422e-996e-c0b16ab318dc</guid><dc:creator>Jeremy</dc:creator><description>&lt;p&gt;Currently the &amp;quot;RAM_START&amp;quot; define is set to 0x20002df0 which was the flash required by the soft device by the power up assert. Boosting this to 0x20003df0 had no impact on the issue. Is allocating more memory for the application more involved then just changing that flag?&lt;/p&gt;
&lt;p&gt;nrf_mesh_config_app.h (removed auto-doc comments to make it a bit shorter):&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifndef NRF_MESH_CONFIG_APP_H__
#define NRF_MESH_CONFIG_APP_H__

#include &amp;quot;chsh_mesh.h&amp;quot;
#include &amp;quot;app_config.h&amp;quot;

/** Device company identifier. */
#define DEVICE_COMPANY_ID (CHSH_COMPANY_ID)

/** Device product identifier. */
#define DEVICE_PRODUCT_ID (0x0000)

/** Device version identifier. */
#define DEVICE_VERSION_ID (0x0000)

/**
 * The default TTL value for the node.
 */
#define ACCESS_DEFAULT_TTL (4)

/**
 * The number of models in the application.
 *
 * @note To fit the configuration and health models, this value must equal at least
 * the number of models needed by the application plus two.
 */
#define ACCESS_MODEL_COUNT (/* Element 0:                                       */ \
                            1 + /* Config Server                                */ \
                            1 + /* Health Server                                */ \
                            1 + /* Rssi Scan Client                             */ \
                            1 + /* Message Client                               */ \
                            1 + /* Message Server                               */ \
                            1 + /* Network Health Client                        */ \
                            1   /* Network Health Server                        */ )

/**
 * The number of elements in the application.
 *
 * @warning If the application is to support _multiple instances_ of the _same_ model, these instances
 * cannot be in the same element and a separate element is needed for each new instance of the same model.
 */
#define ACCESS_ELEMENT_COUNT (CHSH_SERIAL_ACCESS_ELEMENT_COUNT)

/**
 * The number of allocated subscription lists for the application.
 *
 * @note This value must equal @ref ACCESS_MODEL_COUNT minus the number of
 * models operating on shared states.
 */
#define ACCESS_SUBSCRIPTION_LIST_COUNT (ACCESS_MODEL_COUNT)

/** Number of the allowed parallel transfers (size of the internal context pool). */
#define ACCESS_RELIABLE_TRANSFER_COUNT (ACCESS_MODEL_COUNT)

/** The number of instances of the health server model. */
#define HEALTH_SERVER_ELEMENT_COUNT (1)

/** Maximum number of subnetworks. */
#define DSM_SUBNET_MAX                                  (4)
/** Maximum number of applications. */
#define DSM_APP_MAX                                     (4)
/** Maximum number of device keys. */
#define DSM_DEVICE_MAX                                  (10)
/** Maximum number of virtual addresses. */
#define DSM_VIRTUAL_ADDR_MAX                            (8)
/** Maximum number of non-virtual addresses. */
#define DSM_NONVIRTUAL_ADDR_MAX                         (32)

/** Friend feature. */
#ifndef MESH_FEATURE_FRIEND_ENABLED
#define MESH_FEATURE_FRIEND_ENABLED 1
#endif

/** Number of friendships supported simultaneously. */
#ifndef MESH_FRIEND_FRIENDSHIP_COUNT
#define MESH_FRIEND_FRIENDSHIP_COUNT 5
#endif

/** Size of the Friend Subscription List (per friendship). */
#ifndef MESH_FRIEND_SUBLIST_SIZE
#define MESH_FRIEND_SUBLIST_SIZE 3
#endif

/** Size of the Friend Queue (per friendship).
 *
 * @note Set the queue size to a value higher than 32 to be able to receive at least one
 * of the longest segmented messages and one or more of the unsegmented messages. */
#ifndef MESH_FRIEND_QUEUE_SIZE
#define MESH_FRIEND_QUEUE_SIZE 128
#endif

#endif /* NRF_MESH_CONFIG_APP_H__ */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not super&amp;nbsp;familiar with the&amp;nbsp;disassembly view, but I enabled &amp;quot;show labels&amp;quot; and &amp;quot;show source&amp;quot; and found the following at address 0x5BB80 (pc address from the fault handler).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:902px;max-width:395px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/790x1804/__key/communityserver-discussions-components-files/4/7485.disassembly.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;
&lt;p&gt;Jeremy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Maximum ACCESS_MODEL_COUNT?</title><link>https://devzone.nordicsemi.com/thread/422852?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 22:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1ce891d-a09b-400d-a4a0-91d6e1f294ce</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Hard to know exactly without knowing where the error is coming from, but you might be able to solve it by allocating more memory for the application.&lt;/p&gt;
&lt;p&gt;Is it possible that you could upload your complete nrf_mesh_config_app.h?&lt;/p&gt;
&lt;p&gt;Also, the error print contains the pc value. You should be able to find it in the disasembly which would give you the file and line number.&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Maximum ACCESS_MODEL_COUNT?</title><link>https://devzone.nordicsemi.com/thread/422580?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 16:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ccfb94b-2aa9-4acb-8319-fb9b8788d324</guid><dc:creator>Jeremy</dc:creator><description>&lt;p&gt;Mesh SDK v5.0.0, nRF5 SDK v17.1.0, s132 v7.2.0, developing for an nRF52832&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not able to catch a breakpoint in the fault handler.&lt;/p&gt;
&lt;p&gt;If I implement my own version of the weak app_error_fault_handler and add a breakpoint to it:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682522392136v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;No breakpoint catches, but pausing the execution after the serial interface becomes non-responsive I see it is waiting at the default HardFault_Handler:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:654px;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x1308/__key/communityserver-discussions-components-files/4/8540.pic1.png" /&gt;&lt;/p&gt;
&lt;p&gt;With breakpoints set at that line in ses_startup_nrf52.s, in my hander, and at 0xa60 as suggested in the&amp;nbsp;other post, none of them catch and I&amp;#39;m only able to capture the above data by pausing the execution.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I remove my app_error_fault_handler and fallback to the weak implementation, the behavior changes and I get the log message I was seeing yesterday, but the stack trace is less informative. Again no breakpoints catch and I&amp;#39;m only able to capture the information below by pausing execution after the serial interface becomes unresponsive.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:812px;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x1624/__key/communityserver-discussions-components-files/4/7563.pic2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Weird breakpoint handling aside, the &amp;quot;info&amp;quot; value being passed into the weak app_error_fault_handler is 0x40000000, so I think I may have a different issue then the ticket you referenced (where &amp;quot;info&amp;quot; = 0).&lt;/p&gt;
&lt;p&gt;Any feedback on how to better handle breakpointing and debugging, or if you can provide any insight from the mess above would be appreciated. I&amp;#39;m using a &amp;#39;Debug&amp;#39; build configuration with the following attributes (SES v5.44, Linux x64):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;gcc_debugging_level = &amp;quot;Level 3&amp;quot;&lt;/li&gt;
&lt;li&gt;gcc_entry_point = &amp;quot;Reset_Handler&amp;quot;&lt;/li&gt;
&lt;li&gt;gcc_omit_frame_pointer = &amp;quot;No&amp;quot;&lt;/li&gt;
&lt;li&gt;gcc_optimization_level = &amp;quot;None&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Jeremy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Maximum ACCESS_MODEL_COUNT?</title><link>https://devzone.nordicsemi.com/thread/422511?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 12:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b77514e-7863-47a5-9184-de6c5620ce8e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you also share which version of the SDK and SD you are working with here?&lt;/p&gt;
&lt;p&gt;____&lt;/p&gt;
&lt;p&gt;You might have already looked at the documentation for the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___n_r_f___f_a_u_l_t___i_d_s.html#ga234338bb9d7e0f116a6e7112819cce6d"&gt;NRF_FAULT_ID_APP_MEMACC&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to debug your application and find out which function&amp;nbsp;is causing this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Similar ticket:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/67168/random-nrf_fault_id_app_memacc-errors"&gt;Random NRF_FAULT_ID_APP_MEMACC errors&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>