<?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>how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57787/how-to-define-the-right-ram-or-flash</link><description>HI 
 
 I&amp;#39;m writing a programm the using a nus as its service, because nus is a custom service there is something that need to be changed, I followed the tutorial about making a custom service and that being said that we need to change the RAM, but my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2020 14:10:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57787/how-to-define-the-right-ram-or-flash" /><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/237163?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 14:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa57669b-db9c-40c7-87b9-449ee83e107d</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;yes after softdevice enable, because i enable the softdevice in ble_stack_init. in my case the 11th step in my main is app_timer_init, here is my main structure:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    uint8_t advhandle= BLEHandler::advHandle;

    // Initialize.
    log_init();
    timers_init();
//    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init(true);
    conn_params_init();
//    peer_manager_init();
	advertising_start();


    // Start execution.
    NRF_LOG_INFO(&amp;quot;Drone is Ready.&amp;quot;);
//    application_timers_start();


//    advertising_init(false);

//    Leons Code
//	NRF_LOG_INIT(NULL);
//	NRF_LOG_DEFAULT_BACKENDS_INIT();
//	lfclk_request();
	app_timer_init();&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/237127?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 12:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a954123-ac0c-4a60-9bd9-762a4f5247aa</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The Softdevice will eventually invoke the error handler if you halt the CPU while it&amp;#39;s enabled. Where is step 11 in your code? After Softdevice enable? In any case, I would recommend that you try to get debug logging to work. It makes debugging your code much easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/236878?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 13:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4606e3ce-e573-497b-bd45-ff89df9dc556</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;Thanks for your suggestion i can build my program for now, but still i can not find the device or it becomes unnamed (i recognize it because the message it sends) and as i debug it, it hit nrf_breakpoint_cond after 11 steps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/236696?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 07:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e12267c0-2f7b-4e42-9c7c-057b166d1fda</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;There were a couple of typos in your RAM configuration. Try:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; RAM (rwx) :&amp;nbsp; ORIGIN = 0x20004000, LENGTH = 0x3C000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/236620?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 15:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd976410-ba07-40af-8ed9-ef1fdbd59f13</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hrs_5F00_gcc_5F00_nrf52.ld"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_hrs_5F00_gcc_5F00_nrf52.ld&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/236618?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 15:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aca33f1-09d1-4e9f-9758-f367f5555f87</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This linker error should not be related to the NRF_SDH_BLE_VS_UUID_COUNT setting. Did you update the linker script before this happened? Can you upload it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/236616?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 15:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3db7fe35-9a10-4a45-9a9c-0b29aea6d03d</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;ah ya thank you i forgot to set to 1,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but now i got this problem&lt;/p&gt;
&lt;p&gt;&amp;quot;d:/drohnenprojekt-umgebung/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: _build/nrf52840_xxaa.out section `.data&amp;#39; will not fit in region `RAM&amp;#39;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;quot;d:/drohnenprojekt-umgebung/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM&amp;#39; overflowed by 4294730225 bytes&amp;quot;&lt;/p&gt;
&lt;p&gt;i guess my ram to small what should i do?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Andhika Prasetyo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/236603?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 14:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d8c9bcf-aca3-46c6-9e60-e70e482c1fea</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I guess that you may have to increment NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h. The NUS service adds one 128-bits vendor-specific base UUID. NUS init should return 0x4 (NRF_NO_MEM) if that&amp;#39;s the case. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/236593?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 14:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8998ee1-515c-4bf1-9713-cfb92b349a50</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve solved the problem with global error, now as I implement the nus (add custom service) my device is not found, as i debug it the program stop at service_init and go to nrf_breakpoint_cond.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Andhika prasetyo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/234928?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 13:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e60d5db-cbc2-42ea-842c-5293c47d0c45</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Can you try to place a breakpoint right after the call to&amp;nbsp;nrf_sdh_ble_enable() in ble_stack_init() and check what the returned err_code is? Or does it fail before it reaches this line?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/234585?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 09:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5be4884-74ff-477a-806e-2878e9506a36</guid><dc:creator>Andhika</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/57787/how-to-define-the-right-ram-or-flash/234573"]Logging over UART should be enabled by default. Are you working with a Nordic development kit?[/quote]
&lt;p&gt;honestly said, I&amp;#39;m using Laird ble654 integrated with NR52840 chip.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/57787/how-to-define-the-right-ram-or-flash/234573"]Have you set up any debugger integration with Eclipse so you can step through the code?&amp;nbsp;[/quote]
&lt;p&gt;I think I hv JLINKRTT logger. and I already installed it to eclipse but as i debug it it just go to nrf_break_cond after timer_init it didn&amp;#39;t go through ble_stack_init here is my structure:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    log_init();
    timers_init();
//    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    advertising_init();
    services_init();
    conn_params_init();
//    peer_manager_init();
	advertising_start();

    // Start execution.
    NRF_LOG_INFO(&amp;quot;Drone is Ready.&amp;quot;);
/&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and LED on board signs these 3 problems:&lt;/p&gt;
&lt;table class="memberdecls"&gt;
&lt;tbody&gt;
&lt;tr class="memitem:ga9a2af1a322a5dfb3bdb69e2aacd3bc27"&gt;
&lt;td class="memItemLeft" align="right" colspan="1" rowspan="1" valign="top"&gt;#define&amp;nbsp;&lt;/td&gt;
&lt;td class="memItemRight" colspan="1" rowspan="1" valign="bottom"&gt;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group__nrf__error.html#ga9a2af1a322a5dfb3bdb69e2aacd3bc27"&gt;NRF_ERROR_SOFTDEVICE_NOT_ENABLED&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group___n_r_f___e_r_r_o_r_s___b_a_s_e.html#ga6657d0b1e8f050685ddf7d7c1d85c8e8"&gt;NRF_ERROR_BASE_NUM&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;+ 2)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table class="memberdecls"&gt;
&lt;tbody&gt;
&lt;tr class="memitem:ga7ef4d466b79b31c6325f8b7af5d4f75f"&gt;
&lt;td class="memItemLeft" align="right" colspan="1" rowspan="1" valign="top"&gt;#define&amp;nbsp;&lt;/td&gt;
&lt;td class="memItemRight" colspan="1" rowspan="1" valign="bottom"&gt;
&lt;p&gt;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group__nrf__error.html#ga7ef4d466b79b31c6325f8b7af5d4f75f"&gt;NRF_ERROR_NO_MEM&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group___n_r_f___e_r_r_o_r_s___b_a_s_e.html#ga6657d0b1e8f050685ddf7d7c1d85c8e8"&gt;NRF_ERROR_BASE_NUM&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;+ 4)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table class="memberdecls"&gt;
&lt;tbody&gt;
&lt;tr class="memitem:gaf0aff2ba7864b34a36b4a96986e1851e"&gt;
&lt;td class="memItemLeft" align="right" colspan="1" rowspan="1" valign="top"&gt;#define&amp;nbsp;&lt;/td&gt;
&lt;td class="memItemRight" colspan="1" rowspan="1" valign="bottom"&gt;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group__nrf__error.html#gaf0aff2ba7864b34a36b4a96986e1851e"&gt;NRF_ERROR_INVALID_STATE&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group___n_r_f___e_r_r_o_r_s___b_a_s_e.html#ga6657d0b1e8f050685ddf7d7c1d85c8e8"&gt;NRF_ERROR_BASE_NUM&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;+ 8)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Andhika&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/234573?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 08:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7407444-b114-479c-988d-8445cdfbcb1f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Logging over UART should be enabled by default. Are you working with a Nordic development kit? &lt;/p&gt;
[quote userid="84681" url="~/f/nordic-q-a/57787/how-to-define-the-right-ram-or-flash/234572"]honestly I dont hav any problem while flashing and debugging but the LED board sign that i have a global error that i don&amp;#39;t have enough memory[/quote]
&lt;p&gt;Any error passed to the APP_ERROR_CHECK() macro will lead to this. So we need to find out what the error code is and where it was returned. Have you set up any debugger integration with Eclipse so you can step through the code?&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/234572?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 08:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:041dd19c-8a90-4d1e-b8e5-eea6326606f4</guid><dc:creator>Andhika</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/57787/how-to-define-the-right-ram-or-flash/234553"]Do you have debug logging over UART or RTT enabled?[/quote]
&lt;p&gt;hmm I dont think I have, how can I enable it in eclipse?&lt;/p&gt;
&lt;p&gt;honestly I dont hav any problem while flashing and debugging but the LED board sign that i have a global error that i don&amp;#39;t have enough memory&lt;/p&gt;
&lt;p&gt;Is there any other possibilties why i can find my device via smartphone?&lt;/p&gt;
&lt;p&gt;that happened after i change the&amp;nbsp;m_adv_uuids[].&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Andhika&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to define the right RAM or FLASH?</title><link>https://devzone.nordicsemi.com/thread/234553?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 07:44:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dbfb8f3-47eb-4e7c-8524-d9946a40ac7e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you have debug logging over UART or RTT enabled? The log should inform you if you need to allocate more RAM to the app, and in that case, how much.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>