Jump to content

Kompilieren in Eclipse


Recommended Posts

Hallo zusammen,

 

ich bin auf der suche nach einer Anleitung wie ich die Firmware in eclipse compilieren und ggf. im nächsten schritt debuggen kann.

 

Ich verwende Windows 7 und Momentan habe ich eclipse juno, cmake 2.8, Sourcery CodeBench Lite 2012.03-56 installiert und die kompilierung erfolgt mittels generate_makefile ohne probleme.

 

Viele Grüße

David

Link to comment
Share on other sites

es gibt ggf. auch doch noch ein problem beim kompilieren:

hier die ausgabe von eclipse: ( zum Teil gibt es Warnings )

 

13:24:39 **** Build of configuration Debug for project dc-brick_v1-1-6 ****
make -C C:/Users/dk23901/workspace/dc-brick_v1-1-6/build all 
make: Entering directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'
make[1]: Entering directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'
make[2]: Entering directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'
make[2]: Leaving directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'
make[2]: Entering directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'
[  1%] Building C object CMakeFiles/dc-brick.elf.dir/src/communication.obj
[  3%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/logging/logging.obj
[  4%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/crc/crc.obj
[  6%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/dacc/dacc.obj
[  8%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/pwmc/pwmc.obj
[  9%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usart/uart_console.obj
[ 11%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usart/usart.obj
[ 13%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/twi/twid.obj
[ 14%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/twi/twi.obj
[ 16%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/adc/adc.obj
[ 18%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/pio/pio.obj
[ 19%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/pio/pio_it.obj
[ 21%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/efc/efc.obj
[ 22%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/wdt/wdt.obj
[ 24%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/flash/flashd.obj
[ 26%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/board/board_cstartup_gnu.obj
[ 27%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/board/board_lowlevel.obj
[ 29%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/board/exceptions.obj
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c: In function 'HardFault_HandlerC':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:108:12: warning: unused variable 'pc' [-Wunused-variable]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:96:11: warning: variable 'stacked_psr' set but not used [-Wunused-but-set-variable]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:94:11: warning: variable 'stacked_lr' set but not used [-Wunused-but-set-variable]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:93:11: warning: variable 'stacked_r12' set but not used [-Wunused-but-set-variable]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:92:11: warning: variable 'stacked_r3' set but not used [-Wunused-but-set-variable]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:91:11: warning: variable 'stacked_r2' set but not used [-Wunused-but-set-variable]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:90:11: warning: variable 'stacked_r1' set but not used [-Wunused-but-set-variable]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\board\exceptions.c:89:11: warning: variable 'stacked_r0' set but not used [-Wunused-but-set-variable]
[ 31%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/tc/tc.obj
[ 32%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usb/USBD.obj
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c: In function 'USBD_SuspendHandler':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c:94:13: warning: the address of 'USBDCallbacks_Suspended' will always evaluate as 'true' [-Waddress]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c: In function 'USBD_ResumeHandler':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c:112:17: warning: the address of 'USBDCallbacks_Resumed' will always evaluate as 'true' [-Waddress]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c: In function 'USBD_ResetHandler':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c:133:9: warning: the address of 'USBDCallbacks_Reset' will always evaluate as 'true' [-Waddress]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c: In function 'USBD_RequestHandler':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c:150:14: warning: the address of 'USBDCallbacks_RequestReceived' will always evaluate as 'true' [-Waddress]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c: In function 'USBD_Init':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\drivers\usb\USBD.c:374:9: warning: the address of 'USBDCallbacks_Initialized' will always evaluate as 'true' [-Waddress]
[ 34%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usb/USBDescriptors.obj
[ 36%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usb/USBRequests.obj
[ 37%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usb/USBDCallbacks.obj
[ 39%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usb/USBD_HAL.obj
[ 40%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usb/USBDDriver.obj
[ 42%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/usb/USBDDriverCallbacks.obj
[ 44%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/pmc/pmc.obj
[ 45%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/spi/spi.obj
[ 47%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/drivers/uid/uid.obj
[ 49%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/free_rtos/croutine.obj
[ 50%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/free_rtos/tasks.obj
[ 52%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/free_rtos/portable/MemMang/heap_3.obj
[ 54%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/free_rtos/portable/GCC/ARM_CM3/port.obj
[ 55%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/free_rtos/queue.obj
[ 57%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/free_rtos/list.obj
[ 59%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/pearson_hash.obj
[ 60%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/rand.obj
[ 62%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/init.obj
[ 63%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/led.obj
[ 65%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/syscalls.obj
[ 67%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/profiling.obj
[ 68%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/trace.obj
[ 70%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/utility/mutex.obj
[ 72%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/com_messages.obj
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\com\com_messages.c: In function 'com_adc_calibrate':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\com\com_messages.c:129:2: warning: array subscript has type 'char' [-Wchar-subscripts]
[ 73%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/i2c/i2c_clear_bus.obj
[ 75%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/i2c/i2c_eeprom/i2c_eeprom_common.obj
[ 77%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/i2c/i2c_eeprom/i2c_eeprom_slave.obj
[ 78%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/i2c/i2c_eeprom/i2c_eeprom_master.obj
[ 80%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/none/none.obj
[ 81%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/com.obj
[ 83%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/usb/usb_descriptors.obj
[ 85%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/usb/usb_callbacks.obj
[ 86%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/usb/usb.obj
[ 88%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/com_common.obj
[ 90%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/spi/spi_common.obj
[ 91%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/spi/spi_stack/spi_stack_common.obj
[ 93%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/com/spi/spi_stack/spi_stack_slave.obj
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\com\spi\spi_stack\spi_stack_slave.c: In function 'SPI_IrqHandler':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\com\spi\spi_stack\spi_stack_slave.c:71:19: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]
[ 95%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/bricklet/bricklet_communication.obj
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c: In function 'write_bricklet_name':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c:37:2: warning: array subscript has type 'char' [-Wchar-subscripts]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c: In function 'read_bricklet_name':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c:52:2: warning: array subscript has type 'char' [-Wchar-subscripts]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c: In function 'write_bricklet_plugin':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c:73:2: warning: array subscript has type 'char' [-Wchar-subscripts]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c: In function 'read_bricklet_plugin':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c:97:2: warning: array subscript has type 'char' [-Wchar-subscripts]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c: In function 'write_bricklet_uid':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c:129:2: warning: array subscript has type 'char' [-Wchar-subscripts]
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c: In function 'read_bricklet_uid':
C:\Users\dk23901\workspace\dc-brick_v1-1-6\src\bricklib\bricklet\bricklet_communication.c:143:2: warning: array subscript has type 'char' [-Wchar-subscripts]
[ 96%] Building C object CMakeFiles/dc-brick.elf.dir/src/bricklib/bricklet/bricklet_init.obj
[ 98%] Building C object CMakeFiles/dc-brick.elf.dir/src/main.obj
[100%] Building C object CMakeFiles/dc-brick.elf.dir/src/dc.obj
Linking C executable dc-brick.elf
   text	   data	    bss	    dec	    hex	filename
  56196	      0	   1748	  57944	   e258	dc-brick.elf
make[2]: Leaving directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'
[100%] Built target dc-brick.elf
make[1]: Leaving directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'
make: Leaving directory `C:/Users/dk23901/workspace/dc-brick_v1-1-6/build'

13:24:54 Build Finished (took 15s.148ms)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...