<?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 set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23035/how-to-set-ram-size-in-keil-for-nrf51822</link><description>hello,
i am using ble_uart_app project in that i have added the pwm feature and added my code. i have tested my code seperately it works fine but when i have added in the ble_app_uart folder my ble connection getting disconnected and in nrf toolbox in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jul 2017 14:45:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23035/how-to-set-ram-size-in-keil-for-nrf51822" /><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90621?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 14:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63d0e7c2-173f-4f8f-806d-e718044bdfc0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I see that you have create a case in MyPage regarding this topic. Your question will be handled there. Closing this thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90619?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 12:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06192dc-989b-432a-99a9-3bce5871534a</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;Hello sir,&lt;/p&gt;
&lt;p&gt;will you tell me one thing that can we use direct read write functions in esb_prx function?&lt;/p&gt;
&lt;p&gt;and also tell me that the fds example you had told that is working in sdk 11.0.0.i had tried that example its working fine in sdk 11.0.0. then i have tried by adding fds library in my main code i.e in ble_app_uart in sdk 12.2.0 added all fds function calls i.e write ,fds_read() on my ble_app_uart i had added the fds code same as added in the proximity example. compiled my project with 0 errors.but i noticed that in my fds code the fds_init() function executes continuously.it will not going on the next loop. i am not understanding why it is happening.&lt;/p&gt;
&lt;p&gt;so my main question is that can we use fds in only sdk 11.0.0. or it can be used in sdk 12.2.0.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Pallavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90617?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 13:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04b2a0c5-2c8a-4a4e-9305-462eca3cabed</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;FILE_ID AND REC_KEY is not fixed, and you can change them. From the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/lib_fds_functionality.html?cp=4_0_1_3_37_0_4#lib_fds_functionality_keys"&gt;infocenter&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;Record keys should be in the range &lt;code&gt;0x0001 - 0xBFFF&lt;/code&gt;. The value &lt;code&gt;0x0000&lt;/code&gt; is reserved by the system. The values from &lt;code&gt;0xC000 to 0xFFFF&lt;/code&gt; are reserved for use by the Peer Manager module and can only be used in applications that do not include Peer Manager.&lt;/p&gt;
&lt;p&gt;File IDs should be in the range &lt;code&gt;0x0000 - 0xBFFF&lt;/code&gt;. The value &lt;code&gt;0xFFFF&lt;/code&gt; is used by the system. The values from &lt;code&gt;0xC000 to 0xFFFE&lt;/code&gt; are reserved for use by the Peer Manager module and can only be used in applications that do not include Peer Manager.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;You can use e.g. a different REC_KEY or FILE_ID to group/split your data up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90618?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 11:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a5e968e-a8d2-4735-9311-9b00eea2acf7</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;sir i am trying with that example but i want to store my data in perticular format.i.e there are 15 arrays i want to store and data around 150 bytes but there is only one method given i.e to werite on fds.i want to ask is it possible to store no of different arrays in the fds and there are seperated by 0x36 0x36 data .but the fds code i had seen writes data on flash in one stroke. please tell me how can i store  no of arrays one after another.and in between that how can i add 0x36 0x36 data because i also want to read that data.is it&lt;/p&gt;
&lt;p&gt;#define FILE_ID     0x1111&lt;/p&gt;
&lt;p&gt;#define REC_KEY     0x2222&lt;/p&gt;
&lt;p&gt;changable or it is fixed.&lt;/p&gt;
&lt;p&gt;i want to store these array with 0x36,0x36 in between two different array and read these array how it is possible.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void write_samsung_ac_data_to_flash(void)
{
unsigned int *address1;

unsigned char SAMSUNG_ARP[] =&amp;quot;H1B56H2H1B56H2H1B56SCH1B56H2H1B56S&amp;quot;;   //this is ARP that tells the format of the protocol.

//String SAMSUNG_ARP =&amp;quot;H1B56SCH1B48S&amp;quot;;   //this is ARP that tells the format of the protocol.

uint8_t SAMSUNG_header[] = {0x0C,0x1C,0x23,0x82,0x02,0x12,0x09,0x9C,0x02,0x12}; // this is the header duration of the protocol

uint8_t SAMSUNG_mark[] = {0x02,0x12,0x02,0x12,0x02,0x12,0x05,0xFA}; // these are the mark duration of the protocol

uint8_t SAMSUNG_ACIRcode[]= {0x40,0x49,0xF0,0x00,0x00,0x00,0x0F,0x80,0x4B,0x75,0x8E,0x00,0xD8,0x0F}; // this is the fixed code of the protocol

uint8_t SAMSUNG_temp[] = {0x00,0x08,0x04,0x0C,0x02,0x0A,0x06,0x0E,0x01,0x09,0x05,0x0D,0x03,0x0B,0x07};//this is the temperature data of the protocol
uint8_t SAMSUNG_mode[] = {0xD8,0xB0};  //this is the mode data of the protocol
uint8_t SAMSUNG_fan[] = {0xD8,0x98,0xA8,0x88}; ////this is the fan data of the protocol
uint8_t SAMSUNG_swing[] = {0x75,0x7F}; // //this is the swing data of the protocol
uint8_t SAMSUNG_power[] = {0x4D,0x49}; ////this is the power data of the protocol
uint8_t SAMSUNG_checksum_number = 0x11;
uint8_t SAMSUNG_temp_position = 0x0B;//this is the temperature position in the main data array
uint8_t SAMSUNG_mode_position = 0x0C;//this is the mode position in the main data array
uint8_t SAMSUNG_fan_position = 0x0C;//this is the FAN position in the main data array
uint8_t SAMSUNG_swing_position = 0x09;//this is SWING mode position in the main data array
uint8_t SAMSUNG_power_position = 0x01;//this is the POWER position in the main data array
uint8_t SAMSUNG_checksum_position = 0x08;//this is the CHECKSUM position in the main data array
uint8_t SAMSUNG_byte_approach_flag = 0xAC;//if any particular bit in this byte is set then that particular feature will add their data in a byte to that particular code ORDER :PMTFSCXX
uint8_t SAMSUNG_temp_structure = 0x00;//this tells that data bits in their particular position
uint8_t SAMSUNG_mode_structure = 0x0F;//this tells that data bits in their particular position
uint8_t SAMSUNG_fan_structure = 0xF0;//this tells that data bits in their particular position
uint8_t SAMSUNG_swing_structure = 0x00;//this tells that data bits in their particular position
uint8_t SAMSUNG_power_structure = 0x00;//this tells that data bits in their particular position
uint8_t SAMSUNG_checksum_structure = 0x00;//this tells that data bits in their particular position
uint8_t SAMSUNG_whole_code_status = 0x08;//this flag will tell that which features out of whole in the A/C use the whole code for their respective change again order is same as above
uint8_t SAMSUNG_special_condition = 0x1F;//this will tell the code to execute the particular condition written in the code
uint8_t SAMSUNG_modify_write_flg = 0x80; //IF 1 THEN WRITE  DATA TO EEPROM ELSE NOT
uint8_t SAMSUNG_double_arp_flg = 0x80; //IF 1 THEN WRITE  DATA TO EEPROM ELSE NOT
uint8_t SAMSUNG_double_arp=0xFF;
address1=AC_address;
write_AC_data(address1,SAMSUNG_ARP,(sizeof(SAMSUNG_ARP)-1),SAMSUNG_header,sizeof(SAMSUNG_header),SAMSUNG_mark,sizeof(SAMSUNG_mark),SAMSUNG_ACIRcode,sizeof(SAMSUNG_ACIRcode),
              SAMSUNG_temp,sizeof(SAMSUNG_temp),SAMSUNG_mode,sizeof(SAMSUNG_mode),SAMSUNG_fan,sizeof(SAMSUNG_fan),
              SAMSUNG_swing,sizeof(SAMSUNG_swing),SAMSUNG_power,sizeof(SAMSUNG_power),SAMSUNG_checksum_number,
              SAMSUNG_temp_position,SAMSUNG_mode_position,SAMSUNG_fan_position,SAMSUNG_swing_position,
              SAMSUNG_power_position,SAMSUNG_checksum_position,SAMSUNG_byte_approach_flag,SAMSUNG_temp_structure,
              SAMSUNG_mode_structure,SAMSUNG_fan_structure,SAMSUNG_swing_structure,SAMSUNG_power_structure,SAMSUNG_checksum_structure,
              SAMSUNG_whole_code_status,SAMSUNG_special_condition,SAMSUNG_modify_write_flg,SAMSUNG_double_arp_flg,SAMSUNG_double_arp);
			//printf(&amp;quot;\r\ndata write on flash!\r\n&amp;quot;);

}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thank You,&lt;/p&gt;
&lt;p&gt;Pallavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90620?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 10:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b8f3191-ae5f-4d26-9f98-4562ef0c559b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;See &lt;a href="https://github.com/NordicSemiconductor/nRF5-flash-storage-examples"&gt;this github page&lt;/a&gt;. Click the &amp;quot;Clone or download&amp;quot; button, and click download ZIP. Put the example you want in your SDK folder.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gitter.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90626?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 06:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83bbc6f5-efad-4f10-a29b-237cdf8d5953</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;sir i have seen in sdk in nRF5_SDK_11.0.0_89a8197 (1)\examples\peripheral folder there is no fds example .i havent seen fds example in sdk 11.0.0 .and also in nRF5_SDK_11.0.0_89a8197 (1)\examples\ble_peripheral this folder.there is no fds example code is given. there is fds only in library nRF5_SDK_11.0.0_89a8197 (1)\components\libraries.but i am looking for code so that first i can understand the fds concept.the github link you have shown in that there is no downloading option.so will you tell me where i can get the code for fds so that i can test it according to my requirement seperately then i wll add this to my main code.&lt;/p&gt;
&lt;p&gt;Thank you,
Pallavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90628?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 05:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd41958-3ab9-4f2c-be46-cc0896071c5e</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;Thank you sir.first i will take a look on the fds code.then  i have to understand its concept i.e how to store data on fds. after that i have to impliment all my functions on that.if there is any problem then ill take you help.
but for now thank you for your ans.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Pallavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90616?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 13:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d62b489-58cc-4ea0-ba89-719e097e4c8f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I took a look at your code, and the problem seems to be that you are accessing flash directly (erase/write) when the SoftDevice is enabled (in your &lt;code&gt;write_AC_data()&lt;/code&gt; function ).&lt;/p&gt;
&lt;p&gt;If you use the SoftDevice, direct access to flash is restricted. We suggest you to use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/lib_fds.html?cp=4_0_2_3_37"&gt;fds library&lt;/a&gt;. fds is a simple file system, you don&amp;#39;t have to worry about the address you store the variable or how you back up data when erasing a page. Fds is used in our ble example in the SDK, we have a &lt;a href="https://github.com/NordicSemiconductor/nRF5-flash-storage-examples/tree/master/fds_example"&gt;small example here&lt;/a&gt;(for SDK-11). For SDK 12 see &lt;a href="https://devzone.nordicsemi.com/question/106433/how-to-read-flash-after-power-offon-for-nrf52/?answer=106688#post-id-106688"&gt;this link&lt;/a&gt; ). If you don&amp;#39;t want to use fds, you can look into using the write/erase flash softdevice functions(e.g. &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=3_7_2_1_0_2_7_2_9#ga8b49f2e72e97291aecc18ce396956eed"&gt;sd_flash_write&lt;/a&gt;), but I would suggest giving fds a try first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90623?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 13:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cddc824f-4bee-4c78-a599-ff180e791b69</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7245.error_5F00_mdata.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90615?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 09:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c382e9c0-adc7-4bb2-9281-8ef949179568</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;Hello sir,
i have attached my project zip file on my page please go through this&lt;/p&gt;
&lt;p&gt;below i have attached the m error data values as asked by you&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Pallavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90625?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 07:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66ba7270-ccb1-4118-9a73-3592a2ca4e8c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi pallavi,&lt;/p&gt;
&lt;p&gt;I see that you have not uploaded your code(main.c, etc) on MyPage, only the keil-project file, but that file does not include any code itself. So you should zip the &lt;code&gt;ble_app_uart&lt;/code&gt; folder, and upload it on MyPage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90624?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 05:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5c4f0e5-203b-42e6-ba01-713c834ab97b</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;hello daniel sir,
my main code is too long its around 4000 lines code.so that i think its difficult to post.but i have attached my code file in test case on my page.is it possible to see my code there.if its impossible then tell me accordingly so that i can post my code here.
Thank you,
Pallavi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90622?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 09:33:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f9ac13-c16d-43b2-aa5e-dcbf71f081b6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You could also do a debug session, and see if you are running into the error-handler. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this post&lt;/a&gt; on how to debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set ram size in keil for nrf51822?</title><link>https://devzone.nordicsemi.com/thread/90627?ContentTypeID=1</link><pubDate>Sat, 24 Jun 2017 21:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:196f2448-21a0-4e98-ba3a-52ebbf6e42b7</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;why do you think it&amp;#39;s a RAM issue? Could you post how your main.c code looks like ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>