Any ideas?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Any ideas?

705件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by julitoss on Fri Apr 12 07:30:57 MST 2013

 


<p class="MsoNormal">Hi,
<p class="MsoNormal"><span style="mso-ansi-language: EN-US;">I installed again the LPCXpresso IDE on a PC and import my project giving the errors indicated below (compiled in a notebook) compiling do not appear any of the errors marked previously. Any ideas?</span>
<p class="MsoNormal"><span style="mso-ansi-language: EN-US;">Thanks,</span>
<p class="MsoNormal"><span style="mso-ansi-language: EN-US;">Julio</span>
<p class="MsoNormal"><span style="mso-ansi-language: EN-US;">My previous post:</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; text-align: justify; line-height: normal;"><span style="mso-ansi-language: EN-US;">When compiling (LPCXpresso v.5.1.2_2065) an application for the LPC1769 (using newlib in the project that contains the main function, the rest of the projects in the workspace using redlib) the last error that you helped me to correct was the following:</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; text-align: justify; line-height: normal;"><span style="mso-ansi-language: EN-US;"> </span>
<p class="MsoNormal" style="margin-bottom: .0001pt; text-align: justify; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">region `RamLoc32' overflowed by 896 bytes<span style="mso-tab-count: 1;">      </span></span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">RTOS-TCPIP-FAT-LCD.axf section `.bss' will not fit in region `RamLoc32'<span style="mso-tab-count: 1;">                </span></span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;"> </span>
<p class="MsoPlainText"><span style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;">After reducing the size of some arrays contained in the .bss section, to compile again, the .axf of the project is generated:</span>
<p class="MsoPlainText"><span style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"> </span>
<p class="MsoPlainText"><span style="font-family: 'Courier New'; color: red; mso-ansi-language: EN-US;">LPC1769 -d RTOS-TCPIP-FAT-LCD.bin;</span>
<p class="MsoPlainText"><span style="font-family: 'Courier New'; color: red; mso-ansi-language: EN-US;"><span style="mso-spacerun: yes;">   </span>text<span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">   </span>data<span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">    </span>bss<span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">    </span>dec<span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">    </span>hex<span style="mso-tab-count: 1;">     </span>filename</span>
<p class="MsoPlainText"><span style="font-family: 'Courier New'; color: red; mso-ansi-language: EN-US;"><span style="mso-spacerun: yes;"> </span>287568<span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">   </span>2416<span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">  </span>30216<span style="mso-tab-count: 1;">     </span> 320200<span style="mso-tab-count: 1;">     </span><span style="mso-spacerun: yes;">  </span>4e2c8<span style="mso-tab-count: 1;">     </span>RTOS-TCPIP-FAT-LCD.axf</span>
<p class="MsoPlainText"><span style="font-family: 'Courier New'; color: red; mso-ansi-language: EN-US;"> </span>
<p class="MsoPlainText"><span style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-latin; mso-ansi-language: EN-US;">However, the following errors are detected:</span>
<p class="MsoPlainText"><span style="font-family: 'Courier New'; mso-ansi-language: EN-US;"> </span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [RTOS-TCPIP-FAT-LCD.axf] Error 1<span style="mso-tab-count: 2;">                   </span> <span style="mso-tab-count: 1;">               </span><span style="mso-spacerun: yes;">              </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/cr_startup_lpc176x.o] Error 1<span style="mso-tab-count: 2;">                          </span> <span style="mso-tab-count: 1;">               </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/EjemploSocketTCP.o] Error 1<span style="mso-tab-count: 2;">                           </span> <span style="mso-tab-count: 1;">               </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/gsoap-lwip-io.o] Error 1<span style="mso-tab-count: 3;">                                      </span> <span style="mso-tab-count: 1;">               </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/lpc17xx_can.o] Error 1<span style="mso-tab-count: 3;">                                        </span> <span style="mso-tab-count: 1;">               </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/lwIP/api/sockets.o] Error 1<span style="mso-tab-count: 2;">                               </span> <span style="mso-tab-count: 1;">               </span><span style="mso-spacerun: yes;">              </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/lwIP/core/init.o] Error 1<span style="mso-tab-count: 3;">                                     </span> <span style="mso-tab-count: 1;">               </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/lwIP/lwIP_Apps/lwIP_Apps.o] Error 1<span style="mso-tab-count: 1;">         </span> <span style="mso-tab-count: 1;">               </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/lwIP/netif/etharp.o] Error 1<span style="mso-tab-count: 2;">                             </span> <span style="mso-tab-count: 1;">               </span><span style="mso-spacerun: yes;">              </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make: *** [Source/soapC.o] Error 1<span style="mso-tab-count: 3;">                                     </span> <span style="mso-tab-count: 1;">               </span><span style="mso-spacerun: yes;">              </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;">make[1]: [post-build] Error 3 (ignored)<span style="mso-tab-count: 3;">                                </span> <span style="mso-tab-count: 1;">               </span><span style="mso-spacerun: yes;">              </span>C/C++ Problem</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-GB;"> </span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;">Some of the warnings indicated, for example: <span style="mso-spacerun: yes;"> </span></span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;"> </span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="color: red; mso-ansi-language: EN-US;">variable 'temp' set but not used [-Wunused-but-set-variable]<span style="mso-tab-count: 1;"> </span>lpc17xx_can.c<span style="mso-tab-count: 1;">   </span>/lpc17xx.cmsis.driver.library/Source<span style="mso-tab-count: 1;">      </span>line 138 C/C++ Problem, </span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;"> </span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;">do not correspond. The variable temp is really used on the left side of an assignment.</span>
ラベル(1)
0 件の賞賛
返信
1 返信

686件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wmues on Sat Apr 13 01:42:51 MST 2013

The error message is: <span style="color: red; mso-ansi-language: EN-US;">temp set but not used</span>


<span style="color: red; mso-ansi-language: EN-US;">So, you have set a variable, but have not used the result.</span>


<span style="color: red; mso-ansi-language: EN-US;">
</span>


<span style="color: red; mso-ansi-language: EN-US;">
</span>

0 件の賞賛
返信