<?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>agps code flash into thingy 91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69418/agps-code-flash-into-thingy-91</link><description>Hi, 
 
 I was trying to load the agps sample code into thingy 91 for testing. I read the readme document which mentioned that code is compatible with thingy 91 too. 
 
 After flashing the code when I pressed the reset button which should send the predefined</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 10:36:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69418/agps-code-flash-into-thingy-91" /><item><title>RE: agps code flash into thingy 91</title><link>https://devzone.nordicsemi.com/thread/285004?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 10:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6066fe5-bab6-4e5e-b42f-0673b711c2ba</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;First a note; When using LTE Link Monitor you can click the litte file icon to open the a text file with all the log data. save the file and share it here. It is a bit easier to work with.&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1608026757404v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Alternatively you can click on the insert button and choose code.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1608026924410v2.png" alt=" " /&gt;&lt;br /&gt;And the result will look like this&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CFUN?
+CFUN: 1
OK
AT+CGSN=1
+CGSN: &amp;quot;352656101080789&amp;quot;
OK
AT+CGMI
Nordic Semiconductor ASA
OK
AT+CGMM
nRF9160-SICA
OK
AT+CGMR
mfw_nrf9160_1.2.0
OK
AT+CEMODE?
+CEMODE: 2
OK
AT%XCBAND=?
%XCBAND: (1,2,3,4,5,8,12,13,17,18,19,20,25,26,28,66)
OK
AT+CMEE?
+CMEE: 0
OK
AT+CMEE=1
OK
AT+CNEC?
+CNEC: 0
OK
AT+CNEC=24
OK
AT+CGEREP?
+CGEREP: 0,0
OK
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;ibasis.iot&amp;quot;,&amp;quot;10.165.87.172&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 0,1
OK
AT+CGEREP=1
OK
AT+CIND=1,1,1
OK
AT+CEREG=5
OK
AT+CEREG?
+CEREG: 5,5,&amp;quot;8402&amp;quot;,&amp;quot;02066D02&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
OK
AT+COPS=3,2
OK
AT+COPS?
+COPS: 0,2,&amp;quot;311480&amp;quot;,7
OK
AT%XCBAND
%XCBAND: 13
OK
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;ibasis.iot&amp;quot;,&amp;quot;10.165.87.172&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 0,1
OK
AT%CESQ=1
OK
AT+CESQ
+CESQ: 99,99,255,255,16,43
OK
AT%XSIM=1
OK
AT%XSIM?
%XSIM: 1
OK
AT+CPIN?
+CPIN: READY
OK
AT+CPINR=&amp;quot;SIM PIN&amp;quot;
+CPINR: &amp;quot;SIM PIN&amp;quot;,3
OK
AT+CIMI
204080813563573
OK
E: cloud_send failed, error: -128
W: Rebooting in 2 seconds...
*** Booting Zephyr OS build v2.4.0-ncs1  ***
Flash regions
	
	
Domain
	
	
Permissions
00 02 0x00000 0x18000 
	
Secure
	
	
rwxl
03 31 0x18000 0x100000 
	
Non-Secure
	
rwxl
Non-secure callable region 0 placed in flash region 2 with size 32.
SRAM region
	
	
Domain
	
	
Permissions
00 07 0x00000 0x10000 
	
Secure
	
	
rwxl
08 31 0x10000 0x40000 
	
Non-Secure
	
rwxl
Peripheral
	
	
Domain
	
	
Status
00 NRF_P0               Non-Secure
	
OK
01 NRF_CLOCK            Non-Secure
	
OK
02 NRF_RTC0             Non-Secure
	
OK
03 NRF_RTC1             Non-Secure
	
OK
04 NRF_NVMC             Non-Secure
	
OK
05 NRF_UARTE1           Non-Secure
	
OK
06 NRF_UARTE2           Secure
	
	
SKIP
07 NRF_TWIM2            Non-Secure
	
OK
08 NRF_SPIM3            Non-Secure
	
OK
09 NRF_TIMER0           Non-Secure
	
OK
10 NRF_TIMER1           Non-Secure
	
OK
11 NRF_TIMER2           Non-Secure
	
OK
12 NRF_SAADC            Non-Secure
	
OK
13 NRF_PWM0             Non-Secure
	
OK
14 NRF_PWM1             Non-Secure
	
OK
15 NRF_PWM2             Non-Secure
	
OK
16 NRF_PWM3             Non-Secure
	
OK
17 NRF_WDT              Non-Secure
	
OK
18 NRF_IPC              Non-Secure
	
OK
19 NRF_VMC              Non-Secure
	
OK
20 NRF_FPU              Non-Secure
	
OK
21 NRF_EGU1             Non-Secure
	
OK
22 NRF_EGU2             Non-Secure
	
OK
23 NRF_DPPIC            Non-Secure
	
OK
24 NRF_GPIOTE1          Non-Secure
	
OK
25 NRF_REGULATORS       Non-Secure
	
OK
SPM: NS image at 0x18200
SPM: NS MSP at 0x20029900
SPM: NS reset vector at 0x1d559
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.4.0-ncs1  ***
I: A-GPS sample has started
I: Connecting to LTE network. This may take minutes.
I: PSM mode requested
+CEREG: 2,&amp;quot;8402&amp;quot;,&amp;quot;02066D02&amp;quot;,7,0,0,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
+CSCON: 1
+CEREG: 5,&amp;quot;8402&amp;quot;,&amp;quot;02066D02&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
AT+COPS=3,2
I: Connected to LTE network
D: MAGPIO set: AT%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,4,880,960,5,791,849,7,1565,1586
D: COEX0 set: AT%XCOEX0=1,1,1565,1586
D: GPS socket created, fd: 1232491587
I: CLOUD_EVT_CONNECTING
OK
AT+COPS?
+COPS: 0,2,&amp;quot;311480&amp;quot;,7
OK
AT%XCBAND
%XCBAND: 13
OK
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;ibasis.iot&amp;quot;,&amp;quot;10.165.87.200&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 0,1
OK
I: CLOUD_EVT_DISCONNECTED
+CSCON: 0
E: cloud_send failed, error: -128
E: cloud_send failed, error: -128
E: cloud_send failed, error: -128
E: cloud_send failed, error: -128
E: cloud_send failed, error: -128
W: Rebooting in 2 seconds...
[UART FRAMING ERROR! CHECK BAUDRATE!]
*** Booting Zephyr OS build v2.4.0-ncs1  ***
Flash regions
	
	
Domain
	
	
Permissions
00 02 0x00000 0x18000 
	
Secure
	
	
rwxl
03 31 0x18000 0x100000 
	
Non-Secure
	
rwxl
Non-secure callable region 0 placed in flash region 2 with size 32.
SRAM region
	
	
Domain
	
	
Permissions
00 07 0x00000 0x10000 
	
Secure
	
	
rwxl
08 31 0x10000 0x40000 
	
Non-Secure
	
rwxl
Peripheral
	
	
Domain
	
	
Status
00 NRF_P0               Non-Secure
	
OK
01 NRF_CLOCK            Non-Secure
	
OK
02 NRF_RTC0             Non-Secure
	
OK
03 NRF_RTC1             Non-Secure
	
OK
04 NRF_NVMC             Non-Secure
	
OK
05 NRF_UARTE1           Non-Secure
	
OK
06 NRF_UARTE2           Secure
	
	
SKIP
07 NRF_TWIM2            Non-Secure
	
OK
08 NRF_SPIM3            Non-Secure
	
OK
09 NRF_TIMER0           Non-Secure
	
OK
10 NRF_TIMER1           Non-Secure
	
OK
11 NRF_TIMER2           Non-Secure
	
OK
12 NRF_SAADC            Non-Secure
	
OK
13 NRF_PWM0             Non-Secure
	
OK
14 NRF_PWM1             Non-Secure
	
OK
15 NRF_PWM2             Non-Secure
	
OK
16 NRF_PWM3             Non-Secure
	
OK
17 NRF_WDT              Non-Secure
	
OK
18 NRF_IPC              Non-Secure
	
OK
19 NRF_VMC              Non-Secure
	
OK
20 NRF_FPU              Non-Secure
	
OK
21 NRF_EGU1             Non-Secure
	
OK
22 NRF_EGU2             Non-Secure
	
OK
23 NRF_DPPIC            Non-Secure
	
OK
24 NRF_GPIOTE1          Non-Secure
	
OK
25 NRF_REGULATORS       Non-Secure
	
OK
SPM: NS image at 0x18200
SPM: NS MSP at 0x20029900
SPM: NS reset vector at 0x1d559
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.4.0-ncs1  ***
I: A-GPS sample has started
I: Connecting to LTE network. This may take minutes.
I: PSM mode requested
+CEREG: 2,&amp;quot;8402&amp;quot;,&amp;quot;02066D02&amp;quot;,7,0,0,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
+CSCON: 1
+CEREG: 5,&amp;quot;8402&amp;quot;,&amp;quot;02066D02&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
AT+COPS=3,2
I: Connected to LTE network
D: MAGPIO set: AT%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,4,880,960,5,791,849,7,1565,1586
D: COEX0 set: AT%XCOEX0=1,1,1565,1586
D: GPS socket created, fd: 1232491587
I: CLOUD_EVT_CONNECTING
OK
AT+COPS?
+COPS: 0,2,&amp;quot;311480&amp;quot;,7
OK
AT%XCBAND
%XCBAND: 13
OK
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;ibasis.iot&amp;quot;,&amp;quot;10.165.87.241&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 0,1
OK
I: CLOUD_EVT_DISCONNECTED
+CSCON: 0&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I assume that you followed this&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/samples/nrf9160/nrf_cloud_agps/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/samples/nrf9160/nrf_cloud_agps/README.html&lt;/a&gt;&amp;nbsp; or&amp;nbsp;this &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/master/samples/nrf9160/agps"&gt;agps readme&lt;/a&gt;?&amp;nbsp;&lt;br /&gt;What version are you on? and have you updated to the lates modem firmware?&lt;br /&gt;&lt;br /&gt;Have you gotten it to work with the asset tracker example ?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>