lpcware

Problems with LPC1769

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by julitoss on Fri Apr 12 06:46:14 MST 2013

 


<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;">Hi,</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; text-align: justify; line-height: normal;"><span style="mso-ansi-language: EN-US;">I am a newbie. 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 I corrected 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>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;">I thank you in advance for the help you can give me. Yours sincerely,</span>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;"><span style="mso-ansi-language: EN-US;">Julio</span>

Outcomes