Commit 2ea60c1e by Jeffrey Redondo

New Variable were added SNR and RSRP

parent 4e5db888
Showing with 153 additions and 195 deletions
......@@ -11,8 +11,8 @@
#define RTC_ALARMMASK_ONLYMINUTES ((uint32_t)0x80800080)
#define RTC_ALARMMASK_DATEWEEKDAY_HOUR ((uint32_t)0x80800000) //only take into account Minutes and Second
#define RTC_ALARMMASK_DATEWEEKDAY_HOUR_SECOND ((uint32_t)0x80800080) //only take into account Minutes and Second
#define Alarm_Minutes 0x10; //set the minutes you want the alarm to trigger (FORMAT FOR ALARM)
#define Alarm_Minutes_Next 10; //set the minutes you want the alarm to trigger INT FORMAT FOR NEXT ALARM
#define Alarm_Minutes 0x02; //set the minutes you want the alarm to trigger (FORMAT FOR ALARM)
#define Alarm_Minutes_Next 2; //set the minutes you want the alarm to trigger INT FORMAT FOR NEXT ALARM
//------------MX_RTC_Init------------
// Initialize the RTC Calendar and Alarm(clck 32KHz),
// Input: none
......
......@@ -47,7 +47,7 @@
#define BG96_AT_BAND_NB_ALL "AT+QCFG=\"band\",f,400a0e189f,a0e189f\r\n" //GSM,NB,CATM ->all,all, all
#define BG96_AT_PREPARE_UDP_PCKT "AT+QIOPEN=1,0,\"UDP\",\"node.iot.ttu.ee\",6805,0,1\r\n"
#define BG96_AT_SEND_UDP_PCKT "AT+QISEND=0\r\n"
#define BG96_DATA_STRING "POST /s/ HTTP/1.0\nAuthorization: Basic amVyZWRvc2FybWllbnRvOkVzdG9uaWEyMDE4\nX-Id: 179033\nContent-Type: text/plain\nContent-Length: "// 18\n\n201,-10,-75,157030"; 18= Lenght of the packets
#define BG96_DATA_STRING "POST /s/ HTTP/1.0\nAuthorization: Basic amVyZWRvc2FybWllbnRvOkVzdG9uaWEyMDE4\nX-Id: 200699\nContent-Type: text/plain\nContent-Length: "// 18\n\n201,-10,-75,157030"; 18= Lenght of the packets
#define BG96_AT_CRTL_Z "\x1A"
#define BG96_AT_CLOSE "AT+QICLOSE=0\r\n"
#define BG96_ID "157035"//(157033) 18\n\n201,-10,-75,157030"; 18= Lenght of the packets, 201=ID in middleware, -10 data, -75, data, 57030 ID.
......
......@@ -562,11 +562,15 @@ void BG96_Cumulocity(){
volatile int total_length=0;
char length[2]="";
volatile int length_rssi=0;
strcat(data2, "\n\n201,");
strcat(data2, "\n\n202,");
strcat(data2, BG96_Distance);
strcat(data2, ",-");
strcat(data2, rssi2);
strcat(data2, ",");
strcat(data2, snr2);
strcat(data2, ",");
strcat(data2, rsrp2);
strcat(data2, ",");
strcat(data2, BG96_ID);
strcpy(data,BG96_DATA_STRING);
total_length= (strlen(data2)-2);
......
......@@ -77,7 +77,7 @@
<tvExpOptDlg>0</tvExpOptDlg>
<IsCurrentTarget>1</IsCurrentTarget>
</OPTFL>
<CpuCode>0</CpuCode>
<CpuCode>18</CpuCode>
<DebugOpt>
<uSim>0</uSim>
<uTrg>1</uTrg>
......@@ -179,21 +179,13 @@
</Target>
<Group>
<GroupName>::CMSIS</GroupName>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>1</RteFlg>
</Group>
<Group>
<GroupName>Drivers/CMSIS</GroupName>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
<File>
<GroupNumber>2</GroupNumber>
<GroupNumber>1</GroupNumber>
<FileNumber>1</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -213,7 +205,7 @@
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
<File>
<GroupNumber>3</GroupNumber>
<GroupNumber>2</GroupNumber>
<FileNumber>2</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -225,7 +217,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<GroupNumber>2</GroupNumber>
<FileNumber>3</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -237,7 +229,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<GroupNumber>2</GroupNumber>
<FileNumber>4</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -249,10 +241,10 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<GroupNumber>2</GroupNumber>
<FileNumber>5</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\BG96.c</PathWithFileName>
......@@ -261,10 +253,10 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<GroupNumber>2</GroupNumber>
<FileNumber>6</FileNumber>
<FileType>1</FileType>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\RTC.c</PathWithFileName>
......@@ -273,7 +265,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<GroupNumber>2</GroupNumber>
<FileNumber>7</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -293,7 +285,7 @@
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
<File>
<GroupNumber>4</GroupNumber>
<GroupNumber>3</GroupNumber>
<FileNumber>8</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
......@@ -313,7 +305,7 @@
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>9</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -325,7 +317,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>10</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -337,7 +329,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>11</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -349,7 +341,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>12</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -361,7 +353,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>13</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -373,7 +365,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>14</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -385,7 +377,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>15</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -397,7 +389,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>16</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -409,7 +401,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>17</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -421,7 +413,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>18</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -433,7 +425,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>19</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -445,7 +437,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>20</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -457,7 +449,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>21</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -469,7 +461,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>22</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -481,7 +473,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>23</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -493,7 +485,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>24</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -505,7 +497,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>25</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -517,7 +509,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>26</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -529,7 +521,7 @@
<bShared>0</bShared>
</File>
<File>
<GroupNumber>5</GroupNumber>
<GroupNumber>4</GroupNumber>
<FileNumber>27</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
......@@ -542,4 +534,12 @@
</File>
</Group>
<Group>
<GroupName>::CMSIS</GroupName>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>1</RteFlg>
</Group>
</ProjectOpt>
......@@ -378,9 +378,6 @@
</TargetOption>
<Groups>
<Group>
<GroupName>::CMSIS</GroupName>
</Group>
<Group>
<GroupName>Drivers/CMSIS</GroupName>
<Files>
<File>
......@@ -535,6 +532,9 @@
</File>
</Files>
</Group>
<Group>
<GroupName>::CMSIS</GroupName>
</Group>
</Groups>
</Target>
</Targets>
......
......@@ -21,83 +21,13 @@ Target DLL: STLink\ST-LINKIII-KEIL_SWO.dll V3.0.1.0
Dialog DLL: TARMCM1.DLL V1.13.0.0
<h2>Project:</h2>
C:\Users\jeff_\Desktop\STM32\Keil5\Low Power Mode and RTC_ BG96_L073\Low Power mode l073 RTC BG96\MDK-ARM\Low Power mode l073 RTC BG96.uvprojx
Project File Date: 07/12/2018
C:\GIT\NB-IoT\Low Power Mode and RTC_ BG96_L073\Low Power mode l073 RTC BG96\MDK-ARM\Low Power mode l073 RTC BG96.uvprojx
Project File Date: 07/18/2018
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Low Power mode l073 RTC BG96'
compiling RTC.c...
RTC.c(38): warning: #223-D: function "SystemClock_Config" declared implicitly
SystemClock_Config(); //only with stop mode
RTC.c: 1 warning, 0 errors
compiling BG96.c...
BG96.c(26): warning: #1295-D: Deprecated declaration BG96_Context_Check - give arg types
int BG96_Context_Check();
BG96.c(28): warning: #1295-D: Deprecated declaration BG96_Check_Internet - give arg types
int BG96_Check_Internet();
BG96.c(53): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"Telia"); //here is Carrier/operator name
BG96.c(142): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *restrict"
tech = strtok(EVB_Buffer,"\r,\""); // first call returns pointer
BG96.c(135): warning: #550-D: variable "tech" was set but never used
volatile char *tech, *mode1;
BG96.c(135): warning: #550-D: variable "mode1" was set but never used
volatile char *tech, *mode1;
BG96.c(161): warning: #177-D: variable "ap" was declared but never referenced
char sw=0,ap=0;
BG96.c(198): warning: #223-D: function "rand" declared implicitly
int var = rand()%30; //random variable
BG96.c(214): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,temp,sizeof(temp),1000);
BG96.c(220): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,temp,sizeof(temp),1000);
BG96.c(244): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,rssichar,strlen(rssichar),1000);
BG96.c(248): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,rssichar,sizeof(rssichar),1000);
BG96.c(265): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"BG96");
BG96.c(295): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"BG96");
BG96.c(579): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,data,strlen(data),1000);
BG96.c(603): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"+QIOPEN: 0,0");
BG96.c(631): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,data,strlen(data),1000);
BG96.c(648): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"+QPING: 0,"); // ping received
is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,rsrpchar,strlen(rsrpchar),1000); // or sizeof
BG96.c(465): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,rsrpchar,sizeof(rsrpchar),1000);
BG96.c(489): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,rsrqchar,sizeof(rsrqchar),1000);
BG96.c(493): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,rsrqchar,sizeof(rsrqchar),1000);
BG96.c(518): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,snrchar,sizeof(snrchar),1000);
BG96.c(522): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,snrchar,sizeof(snrchar),1000);
BG96.c(544): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,techchar,sizeof(techchar),1000);
BG96.c(548): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,techchar,sizeof(techchar),1000);
BG96.c: 31 warnings, 0 errors
compiling main.c...
../Src/main.c(242): warning: #177-D: function "MX_TIM2_Init" was declared but never referenced
static void MX_TIM2_Init(void)
../Src/main.c: 1 warning, 0 errors
compiling UART.c...
UART.c(100): warning: #223-D: function "strlen" declared implicitly
HAL_UART_Transmit(&huart2,Rx_data,strlen(Rx_data),100);
UART.c(127): warning: #1-D: last line of file ends without a newline
}
UART.c: 2 warnings, 0 errors
linking...
Program Size: Code=13952 RO-data=644 RW-data=52 ZI-data=1740
"Low Power mode l073 RTC BG96\Low Power mode l073 RTC BG96.axf" - 0 Error(s), 29 Warning(s).
"Low Power mode l073 RTC BG96\Low Power mode l073 RTC BG96.axf" - 0 Error(s), 0 Warning(s).
<h2>Software Packages used:</h2>
......@@ -120,7 +50,7 @@ Package Vendor: Keil
<h2>Collection of Component Files used:</h2>
* Component: ARM::CMSIS:CORE:5.1.1
Build Time Elapsed: 00:00:20
Build Time Elapsed: 00:00:01
</pre>
</body>
</html>
......@@ -3,7 +3,7 @@
<title>Static Call Graph - [Low Power mode l073 RTC BG96\Low Power mode l073 RTC BG96.axf]</title></head>
<body><HR>
<H1>Static Call Graph for image Low Power mode l073 RTC BG96\Low Power mode l073 RTC BG96.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060528: Last Updated: Thu Jul 12 14:59:33 2018
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060528: Last Updated: Wed Jul 18 10:38:40 2018
<BR><P>
<H3>Maximum Stack Usage = 352 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3>
......@@ -184,10 +184,10 @@ Global Symbols
<BR><BR>[Stack]<UL><LI>Max Depth = 12<LI>Call Chain = __aeabi_uidivmod
</UL>
<BR>[Called By]<UL><LI><a href="#[64]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SystemClock_Config
<LI><a href="#[52]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_InitTick
<LI><a href="#[59]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCC_GetSysClockFreq
<LI><a href="#[57]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCCEx_GetPeriphCLKFreq
<LI><a href="#[85]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UART_SetConfig
<LI><a href="#[52]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_InitTick
<LI><a href="#[97]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_printf_core
<LI><a href="#[2d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_idivmod
</UL>
......@@ -367,7 +367,7 @@ Global Symbols
<LI><a href="#[3a]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;BG96_Attached
</UL>
<P><STRONG><a name="[43]"></a>BG96_Cumulocity</STRONG> (Thumb, 472 bytes, Stack size 200 bytes, bg96.o(i.BG96_Cumulocity))
<P><STRONG><a name="[43]"></a>BG96_Cumulocity</STRONG> (Thumb, 508 bytes, Stack size 200 bytes, bg96.o(i.BG96_Cumulocity))
<BR><BR>[Stack]<UL><LI>Max Depth = 352<LI>Call Chain = BG96_Cumulocity &rArr; BG96_Context_Activation &rArr; BG96_Power_On_EVB &rArr; BG96_Send_Clean &rArr; BG96_Send_UARTPC_EVB_Buffer &rArr; HAL_UART_Transmit &rArr; UART_WaitOnFlagUntilTimeout
</UL>
<BR>[Calls]<UL><LI><a href="#[39]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;BG96_Send_Clean
......@@ -625,11 +625,11 @@ Global Symbols
</UL>
<P><STRONG><a name="[5c]"></a>HAL_RCC_ClockConfig</STRONG> (Thumb, 340 bytes, Stack size 24 bytes, stm32l0xx_hal_rcc.o(i.HAL_RCC_ClockConfig))
<BR><BR>[Stack]<UL><LI>Max Depth = 44<LI>Call Chain = HAL_RCC_ClockConfig &rArr; HAL_InitTick &rArr; __aeabi_uidivmod
<BR><BR>[Stack]<UL><LI>Max Depth = 44<LI>Call Chain = HAL_RCC_ClockConfig &rArr; HAL_RCC_GetSysClockFreq &rArr; __aeabi_uidivmod
</UL>
<BR>[Calls]<UL><LI><a href="#[50]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GetTick
<BR>[Calls]<UL><LI><a href="#[59]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCC_GetSysClockFreq
<LI><a href="#[50]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GetTick
<LI><a href="#[52]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_InitTick
<LI><a href="#[59]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCC_GetSysClockFreq
</UL>
<BR>[Called By]<UL><LI><a href="#[64]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SystemClock_Config
</UL>
......@@ -662,8 +662,8 @@ Global Symbols
<BR><BR>[Stack]<UL><LI>Max Depth = 44<LI>Call Chain = HAL_RCC_OscConfig &rArr; HAL_InitTick &rArr; __aeabi_uidivmod
</UL>
<BR>[Calls]<UL><LI><a href="#[50]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GetTick
<LI><a href="#[52]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_InitTick
<LI><a href="#[5e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;RCC_SetFlashLatencyFromMSIRange
<LI><a href="#[52]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_InitTick
</UL>
<BR>[Called By]<UL><LI><a href="#[64]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SystemClock_Config
</UL>
......@@ -859,12 +859,12 @@ Global Symbols
<BR><BR>[Stack]<UL><LI>Max Depth = 144<LI>Call Chain = HAL_UART_IRQHandler &rArr; UART_Receive_IT &rArr; HAL_UART_RxCpltCallback &rArr; HAL_UART_Transmit &rArr; UART_WaitOnFlagUntilTimeout
</UL>
<BR>[Calls]<UL><LI><a href="#[7d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_DMA_Abort_IT
<LI><a href="#[80]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UART_Transmit_IT
<LI><a href="#[7b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UART_Receive_IT
<LI><a href="#[7c]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UART_EndRxTransfer
<LI><a href="#[7f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_UARTEx_WakeupCallback
<LI><a href="#[81]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_UART_TxCpltCallback
<LI><a href="#[7e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_UART_ErrorCallback
<LI><a href="#[80]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UART_Transmit_IT
<LI><a href="#[7b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UART_Receive_IT
<LI><a href="#[7c]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UART_EndRxTransfer
</UL>
<BR>[Called By]<UL><LI><a href="#[21]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;USART2_IRQHandler
<LI><a href="#[20]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;USART1_IRQHandler
......@@ -1081,11 +1081,11 @@ Global Symbols
<P><STRONG><a name="[85]"></a>UART_SetConfig</STRONG> (Thumb, 510 bytes, Stack size 32 bytes, stm32l0xx_hal_uart.o(i.UART_SetConfig))
<BR><BR>[Stack]<UL><LI>Max Depth = 88<LI>Call Chain = UART_SetConfig &rArr; __aeabi_uldivmod &rArr; __aeabi_llsr
</UL>
<BR>[Calls]<UL><LI><a href="#[95]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__ARM_common_switch8
<LI><a href="#[59]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCC_GetSysClockFreq
<BR>[Calls]<UL><LI><a href="#[59]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCC_GetSysClockFreq
<LI><a href="#[58]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCC_GetPCLK2Freq
<LI><a href="#[5a]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCC_GetPCLK1Freq
<LI><a href="#[57]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RCCEx_GetPeriphCLKFreq
<LI><a href="#[95]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__ARM_common_switch8
<LI><a href="#[2f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_uldivmod
<LI><a href="#[2e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_uidivmod
</UL>
......
......@@ -102,8 +102,8 @@ I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim_ex.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart_ex.h)(0x5B10E3C4)
I (../Inc/RTC.h)(0x5B474290)
I (../Inc/BG96.h)(0x5B473E46)
I (../Inc/RTC.h)(0x5B4EEE65)
I (../Inc/BG96.h)(0x5B4EEB7E)
F (../Src/stm32l0xx_it.c)(0x5B473CC8)(-c --cpu Cortex-M0+ -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode_l073_RTC_BG96 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L073xx -DUSE_HAL_DRIVER -DSTM32L073xx -o "low power mode l073 rtc bg96\stm32l0xx_it.o" --omf_browse "low power mode l073 rtc bg96\stm32l0xx_it.crf" --depend "low power mode l073 rtc bg96\stm32l0xx_it.d")
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal.h)(0x5B10E3C3)
I (../Inc/stm32l0xx_hal_conf.h)(0x5B473CCB)
......@@ -139,8 +139,8 @@ I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim_ex.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart_ex.h)(0x5B10E3C4)
I (../Inc/stm32l0xx_it.h)(0x5B473CC9)
F (.\BG96.c)(0x5B473D68)(-c --cpu Cortex-M0+ -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode_l073_RTC_BG96 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L073xx -DUSE_HAL_DRIVER -DSTM32L073xx -o "low power mode l073 rtc bg96\bg96.o" --omf_browse "low power mode l073 rtc bg96\bg96.crf" --depend "low power mode l073 rtc bg96\bg96.d")
I (../Inc/bg96.h)(0x5B473E46)
F (.\BG96.c)(0x5B4EEB7E)(-c --cpu Cortex-M0+ -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode_l073_RTC_BG96 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L073xx -DUSE_HAL_DRIVER -DSTM32L073xx -o "low power mode l073 rtc bg96\bg96.o" --omf_browse "low power mode l073 rtc bg96\bg96.crf" --depend "low power mode l073 rtc bg96\bg96.d")
I (../Inc/bg96.h)(0x5B4EEB7E)
I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x588BD7A4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal.h)(0x5B10E3C3)
I (../Inc/stm32l0xx_hal_conf.h)(0x5B473CCB)
......@@ -175,7 +175,7 @@ I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim_ex.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart_ex.h)(0x5B10E3C4)
I (../Inc/UART.h)(0x5B473F14)
I (../Inc/RTC.h)(0x5B474290)
I (../Inc/RTC.h)(0x5B4EEE65)
I (C:\Keil_v5\ARM\ARMCC\include\string.h)(0x588BD7A4)
F (.\RTC.c)(0x5B473D68)(-c --cpu Cortex-M0+ -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode_l073_RTC_BG96 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L073xx -DUSE_HAL_DRIVER -DSTM32L073xx -o "low power mode l073 rtc bg96\rtc.o" --omf_browse "low power mode l073 rtc bg96\rtc.crf" --depend "low power mode l073 rtc bg96\rtc.d")
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal.h)(0x5B10E3C3)
......@@ -211,7 +211,7 @@ I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim_ex.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart_ex.h)(0x5B10E3C4)
I (../Inc/RTC.h)(0x5B474290)
I (../Inc/RTC.h)(0x5B4EEE65)
I (../Inc/UART.h)(0x5B473F14)
F (.\UART.c)(0x5B473D68)(-c --cpu Cortex-M0+ -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode_l073_RTC_BG96 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L073xx -DUSE_HAL_DRIVER -DSTM32L073xx -o "low power mode l073 rtc bg96\uart.o" --omf_browse "low power mode l073 rtc bg96\uart.crf" --depend "low power mode l073 rtc bg96\uart.d")
I (../Inc/UART.h)(0x5B473F14)
......@@ -248,7 +248,7 @@ I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_tim_ex.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart.h)(0x5B10E3C4)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_uart_ex.h)(0x5B10E3C4)
I (../Inc/RTC.h)(0x5B474290)
I (../Inc/RTC.h)(0x5B4EEE65)
F (startup_stm32l073xx.s)(0x5B473CE0)(--cpu Cortex-M0+ --pd "__EVAL SETA 1" -g --apcs=interwork --pd "__MICROLIB SETA 1" -I.\RTE\_Low_Power_mode_l073_RTC_BG96 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include --pd "__UVISION_VERSION SETA 524" --pd "_RTE_ SETA 1" --pd "STM32L073xx SETA 1" --list startup_stm32l073xx.lst --xref -o "low power mode l073 rtc bg96\startup_stm32l073xx.o" --depend "low power mode l073 rtc bg96\startup_stm32l073xx.d")
F (../Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rtc_ex.c)(0x5B10E3C5)(-c --cpu Cortex-M0+ -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode_l073_RTC_BG96 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L073xx -DUSE_HAL_DRIVER -DSTM32L073xx -o "low power mode l073 rtc bg96\stm32l0xx_hal_rtc_ex.o" --omf_browse "low power mode l073 rtc bg96\stm32l0xx_hal_rtc_ex.crf" --depend "low power mode l073 rtc bg96\stm32l0xx_hal_rtc_ex.d")
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal.h)(0x5B10E3C3)
......
......@@ -11,8 +11,8 @@
#define RTC_ALARMMASK_ONLYMINUTES ((uint32_t)0x80800080)
#define RTC_ALARMMASK_DATEWEEKDAY_HOUR ((uint32_t)0x80800000) //only take into account Minutes and Second
#define RTC_ALARMMASK_DATEWEEKDAY_HOUR_SECOND ((uint32_t)0x80800080) //only take into account Minutes and Second
#define Alarm_Minutes 0x15; //set the minutes you want the alarm to trigger (FORMAT FOR ALARM)
#define Alarm_Minutes_Next 15; //set the minutes you want the alarm to trigger INT FORMAT FOR NEXT ALARM
#define Alarm_Minutes 0x10; //set the minutes you want the alarm to trigger (FORMAT FOR ALARM)
#define Alarm_Minutes_Next 10; //set the minutes you want the alarm to trigger INT FORMAT FOR NEXT ALARM
//------------MX_RTC_Init------------
// Initialize the RTC Calendar and Alarm(clck 32KHz),
// Input: none
......
......@@ -47,7 +47,7 @@
#define BG96_AT_BAND_NB_ALL "AT+QCFG=\"band\",f,400a0e189f,a0e189f\r\n" //GSM,NB,CATM ->all,all, all
#define BG96_AT_PREPARE_UDP_PCKT "AT+QIOPEN=1,0,\"UDP\",\"node.iot.ttu.ee\",6805,0,1\r\n"
#define BG96_AT_SEND_UDP_PCKT "AT+QISEND=0\r\n"
#define BG96_DATA_STRING "POST /s/ HTTP/1.0\nAuthorization: Basic amVyZWRvc2FybWllbnRvOkVzdG9uaWEyMDE4\nX-Id: 179033\nContent-Type: text/plain\nContent-Length: "// 18\n\n201,-10,-75,157030"; 18= Lenght of the packets
#define BG96_DATA_STRING "POST /s/ HTTP/1.0\nAuthorization: Basic amVyZWRvc2FybWllbnRvOkVzdG9uaWEyMDE4\nX-Id: 200699\nContent-Type: text/plain\nContent-Length: "// 18\n\n201,-10,-75,157030"; 18= Lenght of the packets
#define BG96_AT_CRTL_Z "\x1A"
#define BG96_AT_CLOSE "AT+QICLOSE=0\r\n"
#define BG96_ID "157033"//(157033) 18\n\n201,-10,-75,157030"; 18= Lenght of the packets, 201=ID in middleware, -10 data, -75, data, 57030 ID.
......
......@@ -558,15 +558,19 @@ void BG96_SEND_TECH(){
void BG96_Cumulocity(){
//Variable and function to create the data string that should be sent to cumulocity
char data[153]="";
char data2[23]=""; //second part of the message
char data2[30]=""; //second part of the message
volatile int total_length=0;
char length[2]="";
volatile int length_rssi=0;
strcat(data2, "\n\n201,");
strcat(data2, "\n\n202,"); //id of middleware or cumulocity
strcat(data2, BG96_Distance);
strcat(data2, ",-");
strcat(data2, rssi2);
strcat(data2, ",");
strcat(data2, snr2);
strcat(data2, ",");
strcat(data2, rsrp2);
strcat(data2, ",");
strcat(data2, BG96_ID);
strcpy(data,BG96_DATA_STRING);
total_length= (strlen(data2)-2);
......
......@@ -146,40 +146,7 @@
<Name>-U-O142 -O2254 -SF4000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P2 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32L476RGTx$CMSIS\Flash\STM32L4xx_1024.FLM)</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>67</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134223584</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>../Src/main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\Low_Power_mode\../Src/main.c\67</Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>168</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221838</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>../Src/main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\Low_Power_mode\../Src/main.c\168</Expression>
</Bp>
</Breakpoint>
<Breakpoint/>
<Tracepoint>
<THDelay>0</THDelay>
</Tracepoint>
......
......@@ -21,16 +21,69 @@ Target DLL: STLink\ST-LINKIII-KEIL_SWO.dll V3.0.1.0
Dialog DLL: TCM.DLL V1.32.0.0
<h2>Project:</h2>
C:\Users\jeff_\Desktop\STM32\Keil5\UART_L476RG\Low_Power_mode\MDK-ARM\Low_Power_mode.uvprojx
C:\GIT\NB-IoT\Low_Power_mode and RTC_Cumulocity_BG96_L476RG\MDK-ARM\Low_Power_mode.uvprojx
Project File Date: 07/11/2018
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Low_Power_mode'
compiling main.c...
../Src/main.c(252): warning: #177-D: function "MX_TIM2_Init" was declared but never referenced
static void MX_TIM2_Init(void)
../Src/main.c: 1 warning, 0 errors
compiling BG96.c...
BG96.c(26): warning: #1295-D: Deprecated declaration BG96_Context_Check - give arg types
int BG96_Context_Check();
BG96.c(28): warning: #1295-D: Deprecated declaration BG96_Check_Internet - give arg types
int BG96_Check_Internet();
BG96.c(53): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"Telia"); //here is Carrier/operator name
BG96.c(214): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,temp,sizeof(temp),1000);
BG96.c(220): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,temp,sizeof(temp),1000);
BG96.c(244): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,rssichar,strlen(rssichar),1000);
BG96.c(248): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,rssichar,sizeof(rssichar),1000);
BG96.c(265): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"BG96");
BG96.c(295): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"BG96");
BG96.c(399): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"OK");
BG96.c(390): warning: #177-D: variable "ap" was declared but never referenced
char sw=0,ap=0;
BG96.c(432): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"+QIACT:");
BG96.c(426): warning: #177-D: variable "sw" was declared but never referenced
char sw=0,ap=0;
BG96.c(426): warning: #177-D: variable "ap" was declared but never referenced
char sw=0,ap=0;
BG96.c(461): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,rsrpchar,strlen(rsrpchar),1000); // or sizeof
BG96.c(465): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,rsrpchar,sizeof(rsrpchar),1000);
BG96.c(489): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,rsrqchar,sizeof(rsrqchar),1000);
BG96.c(493): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,rsrqchar,sizeof(rsrqchar),1000);
BG96.c(518): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,snrchar,sizeof(snrchar),1000);
BG96.c(522): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,snrchar,sizeof(snrchar),1000);
BG96.c(583): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart2,data,strlen(data),1000);
BG96.c(607): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"+QIOPEN: 0,0");
BG96.c(635): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
HAL_UART_Transmit(&huart1,data,strlen(data),1000);
BG96.c(652): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "const char *"
char *c = strstr(EVB_Buffer,"+QPING: 0,"); // ping received
BG96.c: 31 warnings, 0 errors
linking...
Program Size: Code=14852 RO-data=880 RW-data=52 ZI-data=1764
"Low_Power_mode\Low_Power_mode.axf" - 0 Error(s), 0 Warning(s).
Program Size: Code=14888 RO-data=880 RW-data=52 ZI-data=1764
"Low_Power_mode\Low_Power_mode.axf" - 0 Error(s), 25 Warning(s).
<h2>Software Packages used:</h2>
......@@ -53,7 +106,7 @@ Package Vendor: Keil
<h2>Collection of Component Files used:</h2>
* Component: ARM::CMSIS:CORE:5.1.1
Build Time Elapsed: 00:00:24
Build Time Elapsed: 00:00:34
</pre>
</body>
</html>
......@@ -3,7 +3,7 @@
<title>Static Call Graph - [Low_Power_mode\Low_Power_mode.axf]</title></head>
<body><HR>
<H1>Static Call Graph for image Low_Power_mode\Low_Power_mode.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060528: Last Updated: Thu Jul 12 13:31:16 2018
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060528: Last Updated: Wed Jul 18 10:57:54 2018
<BR><P>
<H3>Maximum Stack Usage = 376 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3>
......@@ -553,8 +553,8 @@ Global Symbols
<LI><a href="#[70]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;BG96_Attached
</UL>
<P><STRONG><a name="[79]"></a>BG96_Cumulocity</STRONG> (Thumb, 470 bytes, Stack size 200 bytes, bg96.o(i.BG96_Cumulocity))
<BR><BR>[Stack]<UL><LI>Max Depth = 320<LI>Call Chain = BG96_Cumulocity &rArr; BG96_Context_Activation &rArr; BG96_Power_On_EVB &rArr; BG96_Send_Clean &rArr; BG96_Send_UARTPC_EVB_Buffer &rArr; HAL_UART_Transmit &rArr; UART_WaitOnFlagUntilTimeout
<P><STRONG><a name="[79]"></a>BG96_Cumulocity</STRONG> (Thumb, 506 bytes, Stack size 208 bytes, bg96.o(i.BG96_Cumulocity))
<BR><BR>[Stack]<UL><LI>Max Depth = 328<LI>Call Chain = BG96_Cumulocity &rArr; BG96_Context_Activation &rArr; BG96_Power_On_EVB &rArr; BG96_Send_Clean &rArr; BG96_Send_UARTPC_EVB_Buffer &rArr; HAL_UART_Transmit &rArr; UART_WaitOnFlagUntilTimeout
</UL>
<BR>[Calls]<UL><LI><a href="#[6e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_Delay
<LI><a href="#[6d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_UART_Transmit
......@@ -1138,8 +1138,8 @@ Global Symbols
</UL>
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32l476xx.o(RESET)
</UL>
<P><STRONG><a name="[c1]"></a>MX_RTC_Init</STRONG> (Thumb, 188 bytes, Stack size 72 bytes, rtc.o(i.MX_RTC_Init))
<BR><BR>[Stack]<UL><LI>Max Depth = 120<LI>Call Chain = MX_RTC_Init &rArr; HAL_RTC_SetTime &rArr; RTC_EnterInitMode
<P><STRONG><a name="[c1]"></a>MX_RTC_Init</STRONG> (Thumb, 186 bytes, Stack size 80 bytes, rtc.o(i.MX_RTC_Init))
<BR><BR>[Stack]<UL><LI>Max Depth = 128<LI>Call Chain = MX_RTC_Init &rArr; HAL_RTC_SetTime &rArr; RTC_EnterInitMode
</UL>
<BR>[Calls]<UL><LI><a href="#[a5]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RTC_SetTime
<LI><a href="#[a4]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_RTC_SetDate
......@@ -1366,7 +1366,7 @@ Global Symbols
<BR>[Address Reference Count : 1]<UL><LI> printf6.o(i.__0printf$6)
</UL>
<P><STRONG><a name="[5b]"></a>main</STRONG> (Thumb, 192 bytes, Stack size 0 bytes, main.o(i.main))
<BR><BR>[Stack]<UL><LI>Max Depth = 320<LI>Call Chain = main &rArr; BG96_Cumulocity &rArr; BG96_Context_Activation &rArr; BG96_Power_On_EVB &rArr; BG96_Send_Clean &rArr; BG96_Send_UARTPC_EVB_Buffer &rArr; HAL_UART_Transmit &rArr; UART_WaitOnFlagUntilTimeout
<BR><BR>[Stack]<UL><LI>Max Depth = 328<LI>Call Chain = main &rArr; BG96_Cumulocity &rArr; BG96_Context_Activation &rArr; BG96_Power_On_EVB &rArr; BG96_Send_Clean &rArr; BG96_Send_UARTPC_EVB_Buffer &rArr; HAL_UART_Transmit &rArr; UART_WaitOnFlagUntilTimeout
</UL>
<BR>[Calls]<UL><LI><a href="#[d4]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_PWREx_EnterSTOP0Mode
<LI><a href="#[6e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_Delay
......
......@@ -792,7 +792,7 @@ I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim_ex.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart_ex.h)(0x5B16C8CC)
F (../Src/main.c)(0x5B472DDB)(-c --cpu Cortex-M4.fp -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L4xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L476xx -DUSE_HAL_DRIVER -DSTM32L476xx -o low_power_mode\main.o --omf_browse low_power_mode\main.crf --depend low_power_mode\main.d)
F (../Src/main.c)(0x5B473000)(-c --cpu Cortex-M4.fp -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L4xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L476xx -DUSE_HAL_DRIVER -DSTM32L476xx -o low_power_mode\main.o --omf_browse low_power_mode\main.crf --depend low_power_mode\main.d)
I (../Inc/main.h)(0x5B45BBE5)
I (../Inc/UART.h)(0x5B45DA4A)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h)(0x5B16C8CA)
......@@ -829,8 +829,8 @@ I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim_ex.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart_ex.h)(0x5B16C8CC)
I (../Inc/RTC.h)(0x5B461620)
I (../Inc/BG96.h)(0x5B472DBA)
I (../Inc/RTC.h)(0x5B4EF1D8)
I (../Inc/BG96.h)(0x5B4EF2E0)
F (../Src/stm32l4xx_it.c)(0x5B45BBE3)(-c --cpu Cortex-M4.fp -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L4xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L476xx -DUSE_HAL_DRIVER -DSTM32L476xx -o low_power_mode\stm32l4xx_it.o --omf_browse low_power_mode\stm32l4xx_it.crf --depend low_power_mode\stm32l4xx_it.d)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h)(0x5B16C8CA)
I (../Inc/stm32l4xx_hal_conf.h)(0x5B45BBE4)
......@@ -868,8 +868,8 @@ I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim_ex.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart_ex.h)(0x5B16C8CC)
I (../Inc/stm32l4xx_it.h)(0x5B45BBE4)
F (.\BG96.c)(0x5B472BC7)(-c --cpu Cortex-M4.fp -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L4xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L476xx -DUSE_HAL_DRIVER -DSTM32L476xx -o low_power_mode\bg96.o --omf_browse low_power_mode\bg96.crf --depend low_power_mode\bg96.d)
I (../Inc/bg96.h)(0x5B472DBA)
F (.\BG96.c)(0x5B4EF020)(-c --cpu Cortex-M4.fp -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L4xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L476xx -DUSE_HAL_DRIVER -DSTM32L476xx -o low_power_mode\bg96.o --omf_browse low_power_mode\bg96.crf --depend low_power_mode\bg96.d)
I (../Inc/bg96.h)(0x5B4EF2E0)
I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x588BD7A4)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h)(0x5B16C8CA)
I (../Inc/stm32l4xx_hal_conf.h)(0x5B45BBE4)
......@@ -906,7 +906,7 @@ I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim_ex.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart_ex.h)(0x5B16C8CC)
I (../Inc/UART.h)(0x5B45DA4A)
I (../Inc/RTC.h)(0x5B461620)
I (../Inc/RTC.h)(0x5B4EF1D8)
I (C:\Keil_v5\ARM\ARMCC\include\string.h)(0x588BD7A4)
F (.\UART.c)(0x5B1E218F)(-c --cpu Cortex-M4.fp -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L4xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L476xx -DUSE_HAL_DRIVER -DSTM32L476xx -o low_power_mode\uart.o --omf_browse low_power_mode\uart.crf --depend low_power_mode\uart.d)
I (../Inc/UART.h)(0x5B45DA4A)
......@@ -945,7 +945,7 @@ I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim_ex.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart_ex.h)(0x5B16C8CC)
I (../Inc/RTC.h)(0x5B461620)
I (../Inc/RTC.h)(0x5B4EF1D8)
F (.\RTC.c)(0x5B4614E5)(-c --cpu Cortex-M4.fp -D__EVAL -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include --C99 -I.\RTE\_Low_Power_mode -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.0.0\Drivers\CMSIS\Device\ST\STM32L4xx\Include -D__UVISION_VERSION="524" -D_RTE_ -DSTM32L476xx -DUSE_HAL_DRIVER -DSTM32L476xx -o low_power_mode\rtc.o --omf_browse low_power_mode\rtc.crf --depend low_power_mode\rtc.d)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h)(0x5B16C8CA)
I (../Inc/stm32l4xx_hal_conf.h)(0x5B45BBE4)
......@@ -982,5 +982,5 @@ I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_tim_ex.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart.h)(0x5B16C8CC)
I (../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart_ex.h)(0x5B16C8CC)
I (../Inc/RTC.h)(0x5B461620)
I (../Inc/RTC.h)(0x5B4EF1D8)
I (../Inc/UART.h)(0x5B45DA4A)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment