Errors in debugging the code

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

Errors in debugging the code

2,170件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kuldip rajput on Wed Mar 11 22:31:13 MST 2015
Hello,

I am working with the LPCXpresso v6.1.4 [Build 194] IDE. While debugging the example code of CAN driver with freeRTOS Environment, on the LPC1769 development board, i am getting some errors, I am unable to resolve the errors, please help me regarding this!!
I have attached the screenshot image with this post.


0 件の賞賛
返信
9 返答(返信)

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Mar 14 01:18:50 MST 2015
Read:

http://www.lpcware.com/content/forum/cmsisv1p30lpc13xx-cannot-be-build-lpcxpresso-ide-ver7

Change __STREXB / __STREXH and build the CMSIS library. After that build your projects  :)
0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kuldip rajput on Fri Mar 13 21:10:02 MST 2015
Respected Sir,

I have gone through that procedure but still i am unable to eliminate the errors.
These are the errors and warning messages are in my console window.
I am working with the LPCXpresso v7.2.0 [Build 153] IDE. Could you please help me regarding this.

DescriptionResourcePathLocationType
expected 'const signed char * const' but argument is of type 'char *'task.h/FreeRTOS_Library/includeline 1417C/C++ Problem
make: *** [src/core_cm3.o] Error 1CMSISv1p30_LPC17xx C/C++ Problem
registers may not be the same -- `strexh r0,r0,[r1]'CMSISv1p30_LPC17xxline 533, external location: /tmp/ccXEZei5.sC/C++ Problem
pointer targets in passing argument 2 of 'xTaskGenericCreate' differ in signedness [-Wpointer-sign]main.c/Example01_eq_prioline 85C/C++ Problem
pointer targets in passing argument 2 of 'xTaskGenericCreate' differ in signedness [-Wpointer-sign]main.c/Example01_eq_prioline 93C/C++ Problem
registers may not be the same -- `strexb r0,r0,[r1]'CMSISv1p30_LPC17xxline 508, external location: /tmp/ccXEZei5.sC/C++ Problem
incompatible implicit declaration of built-in function 'printf' [enabled by default]main.c/Example01_eq_prioline 75C/C++ Problem
make: *** [Example01_eq_prio.axf] Error 1Example01_eq_prio C/C++ Problem
implicit declaration of function 'printf' [-Wimplicit-function-declaration]main.c/Example01_eq_prioline 75C/C++ Problem
cannot find -lCMSISv1p30_LPC17xxExample01_eq_prio C/C++ Problem

0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Mar 12 22:34:39 MST 2015

Quote: kuldip rajput

/usr/local/lpcxpresso_7.2.0_153/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld: [color=#f00]cannot find -lCMSISv1p30_LPC17xx[/color]



See:

http://www.lpcware.com/content/faq/lpcxpresso/linker-cannot-find-library
0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kuldip rajput on Thu Mar 12 22:18:37 MST 2015
Respected Sir,

I have downloaded the LPCXpresso v7.2.0 [Build 153] IDE and activate the free edition. Then i imported the example code zip file i the quick panel-> import project. When i am building the first example i am getting following errors in the console window. I am not able to resolve these errors would you please help me regarding this.
I have attached the respective zip file.


10:52:41 **** Build of configuration Debug for project Example01_eq_prio ****
make all 
Building file: ../cr_startup_lpc17.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__CODE_RED -D__REDLIB__ -I"/root/mtech/wrk2/FreeRTOS_Library/demo_code" -I"/root/mtech/wrk2/CMSISv1p30_LPC17xx/inc" -I"/root/mtech/wrk2/FreeRTOS_Library/include" -I"/root/mtech/wrk2/FreeRTOS_Library/portable" -O1 -g3 -fsigned-char -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"cr_startup_lpc17.d" -MT"cr_startup_lpc17.d" -o "cr_startup_lpc17.o" "../cr_startup_lpc17.c"
Finished building: ../cr_startup_lpc17.c
 
Building file: ../main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__CODE_RED -D__REDLIB__ -I"/root/mtech/wrk2/FreeRTOS_Library/demo_code" -I"/root/mtech/wrk2/CMSISv1p30_LPC17xx/inc" -I"/root/mtech/wrk2/FreeRTOS_Library/include" -I"/root/mtech/wrk2/FreeRTOS_Library/portable" -O1 -g3 -fsigned-char -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.c"
Finished building: ../main.c
 
Building target: Example01_eq_prio.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"/root/mtech/wrk2/CMSISv1p30_LPC17xx/Debug" -L"/root/mtech/wrk2/FreeRTOS_Library/Debug" -Xlinker --gc-sections -Xlinker -Map=Example01_eq_prio.map -mcpu=cortex-m3 -mthumb -T "Example01_eq_prio_Debug.ld" -o "Example01_eq_prio.axf"  ./cr_startup_lpc17.o ./main.o   -lCMSISv1p30_LPC17xx -lFreeRTOS_Library
/usr/local/lpcxpresso_7.2.0_153/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld: cannot find -lCMSISv1p30_LPC17xx
collect2: error: ld returned 1 exit status
make: *** [Example01_eq_prio.axf] Error 1

10:52:41 Build Finished (took 159ms)
0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 12 07:41:00 MST 2015
I don't understand the question.

You already have the source - it exists in the workspace you used in your previous LPCXpresso installation. Just migrate the projects, as described here:
http://www.lpcware.com/content/faq/lpcxpresso/migrating-existing-projects

Failing that, you can get it from the same place that you got it previously.
0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kuldip rajput on Thu Mar 12 06:55:53 MST 2015

Respected Sir,

I have downloaded the new version of lpcxresso but it is not including the freertos and cmsis libraries, what could be the problem and how can i solve it.
0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 12 02:52:00 MST 2015
It looks like the "Problems" view is showing stale errors. You can clear these out manually by right-clicking on the Problems and selecting Delete.

As your project has built, you can just start a debug session.

I would strongly recommend you upgrade the our latest version. v6.1.4 is now very out of date.
0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kuldip rajput on Thu Mar 12 02:32:46 MST 2015
Respected Sir,

In the console view it is not showing any error only showing warnings. But in the Problems it is showing 4 errors and the 20 warnings.
14:59:33 **** Build of configuration Debug for project FreeRTOS-Plus-Demo-1 ****
make all 
Building file: /root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS/portable/MemMang/heap_2.c
Invoking: MCU C Compiler
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:115:30: warning: unused variable 'pxPeripheralControl' [-Wunused-variable]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:113:107: warning: unused parameter 'xBytes' [-Wunused-parameter]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:182:8: warning: variable 'RcvMsgReturn' set but not used [-Wunused-but-set-variable]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:174:30: warning: unused variable 'pxPeripheralControl' [-Wunused-variable]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:172:107: warning: unused parameter 'xBytes' [-Wunused-parameter]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:280:17: warning: unused variable 'NewState' [-Wunused-variable]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:279:17: warning: unused variable 'xCANConfig' [-Wunused-variable]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_can.c:276:30: warning: unused variable 'pxPeripheralControl' [-Wunused-variable]
/root/kuldip_can/CAN_MASTER (3)/FreeRTOS-Products/FreeRTOS-Plus-IO/Device/LPC17xx/FreeRTOS_lpc17xx_ssp.c:111:19: warning: variable 'usJunkIt' set but not used [-Wunused-but-set-variable]
../Source/Examples/CAN/can.c:101:23: warning: initialization makes pointer from integer without a cast [enabled by default]
../Source/Examples/CAN/can.c:102:18: warning: initialization makes pointer from integer without a cast [enabled by default]
../Source/cr_startup_lpc176x.c:441:23: warning: variable 'stacked_psr' set but not used [-Wunused-but-set-variable]
../Source/cr_startup_lpc176x.c:440:23: warning: variable 'stacked_pc' set but not used [-Wunused-but-set-variable]
../Source/cr_startup_lpc176x.c:439:23: warning: variable 'stacked_lr' set but not used [-Wunused-but-set-variable]
../Source/cr_startup_lpc176x.c:438:23: warning: variable 'stacked_r12' set but not used [-Wunused-but-set-variable]
../Source/cr_startup_lpc176x.c:437:23: warning: variable 'stacked_r3' set but not used [-Wunused-but-set-variable]
../Source/cr_startup_lpc176x.c:436:23: warning: variable 'stacked_r2' set but not used [-Wunused-but-set-variable]
../Source/cr_startup_lpc176x.c:435:23: warning: variable 'stacked_r1' set but not used [-Wunused-but-set-variable]
../Source/cr_startup_lpc176x.c:434:23: warning: variable 'stacked_r0' set but not used [-Wunused-but-set-variable]

Finished building target: FreeRTOS-Plus-Demo-1.axf
 
make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size FreeRTOS-Plus-Demo-1.axf; # arm-none-eabi-objcopy -O binary FreeRTOS-Plus-Demo-1.axf FreeRTOS-Plus-Demo-1.bin ; checksum -p LPC1769 -d FreeRTOS-Plus-Demo-1.bin;
   text   data    bss    dec    hexfilename
  38356     32  16600  54988   d6ccFreeRTOS-Plus-Demo-1.axf
 
0 件の賞賛
返信

2,113件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 12 00:43:29 MST 2015
They a BUILD errors, not debug errors. [The Debug button will build your project, if necessary, before starting a debug session].

Unfortunately, you have only shown the summary, and not the actual errors. You can see the errors in the Build Console:
http://www.lpcware.com/content/faq/lpcxpresso/build-console
Please use Copy/Paste to select the errors from the Build Console and pate them into a reply (please place them in a code block - use the # icon on the forum editor toolbar)

Also, although this is not the cause of your errors, I suggest you upgrade your LPCXpresso to the latest version. See my signature for details of the latest version.
0 件の賞賛
返信