No Variables in Variables View

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No Variables in Variables View

257 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by babaluis on Fri Jan 27 09:31:16 MST 2012
I'm running a "makefile" project that I imported into LPCXpresso.  I do not have the --gc-sections options set anywhere that I can see.  I would like to get display of the local variables when I enter a function and hit a breakpoint.

Further, I haven't found any discussion of which options to set on the command line for gcc or ln when I'm building code for debugging using LPCXpresso and Red Probe. 

Currently I have -g -O0 set on the compile line.  My link command is creating a ".elf" file.

Could someone please help me with this?
0 Kudos
2 Replies

234 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Sat Jan 28 00:20:13 MST 2012

Quote: babaluis
Eclipse is a configuration nightmare.



Yup, I really like Visual Studio in this case. I have been developing a kernel mode device driver for the past few weeks and every time my system BSODs on me Visual Studio reconfigures in what seems to be a random layout :eek: I'll Just BSOD until I've got my preferred layout back and hope the driver works by then

The LPCXpresso tools provide a complete output of all the build commands (like make does) in the console window, so if you let LPCXpresso automagically configure your project(s) you'll get something like given below.
This might give you some hints on where to look.

Having --gc-sections or not should not make a difference - I've used both in my projects without any influence on showing local vars during debug.

Regards,[INDENT]Rob
[/INDENT]
make all 
Building file: ../src/FreeRTOSHooks.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC17xx -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\CMSISv2p00_LPC17xx\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\FreeRTOS\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\Drivers\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\lib_small_printf\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/FreeRTOSHooks.d" -MT"src/FreeRTOSHooks.d" -o"src/FreeRTOSHooks.o" "../src/FreeRTOSHooks.c"
Finished building: ../src/FreeRTOSHooks.c
 
Building file: ../src/cr_startup_lpc17.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC17xx -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\CMSISv2p00_LPC17xx\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\FreeRTOS\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\Drivers\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\lib_small_printf\inc" -O0 -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/cr_startup_lpc17.d" -MT"src/cr_startup_lpc17.d" -o"src/cr_startup_lpc17.o" "../src/cr_startup_lpc17.c"
Finished building: ../src/cr_startup_lpc17.c
 
Building file: ../src/main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC17xx -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\CMSISv2p00_LPC17xx\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\FreeRTOS\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\Drivers\inc" -I"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\lib_small_printf\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o"src/main.o" "../src/main.c"
Finished building: ../src/main.c
 
Building target: PlatformTest.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\CMSISv2p00_LPC17xx\Debug" -L"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\lib_small_printf\Debug" -L"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\Drivers\Debug" -L"C:\Users\Rob\Documents\LPCXpresso-workspaces\datalogger\FreeRTOS\Debug" -Xlinker -Map="PlatformTest.map" -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T "PlatformTest_Debug.ld" -o"PlatformTest.axf"  ./src/FreeRTOSHooks.o ./src/cr_startup_lpc17.o ./src/main.o   -lCMSISv2p00_LPC17xx -llib_small_printf -lDrivers -lFreeRTOS
Finished building target: PlatformTest.axf
 
make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "PlatformTest.axf"; # arm-none-eabi-objcopy -O binary "PlatformTest.axf" "PlatformTest.bin" ; checksum -p LPC1754 -d "PlatformTest.bin";
   text       data        bss        dec        hex    filename
  18516         32      17216      35764       8bb4    PlatformTest.axf

0 Kudos

234 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by babaluis on Fri Jan 27 13:21:28 MST 2012
OK, problem solved.  Variables display now, but don't know what I changed.  Eclipse is a configuration nightmare.
0 Kudos