davidkoch Posted March 21, 2013 at 08:45 AM Share Posted March 21, 2013 at 08:45 AM 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 Quote Link to comment Share on other sites More sharing options...
borg Posted March 22, 2013 at 10:24 AM Share Posted March 22, 2013 at 10:24 AM Also ich kompiliere in Eclipse auch einfach über das Makefile. Ich hab mal ein paar Screenshots von der Konfiguration angehängt. Ansonsten könnte auch dieser Thread interessant sein: http://www.tinkerunity.org/forum/index.php?topic=1171.0 Quote Link to comment Share on other sites More sharing options...
davidkoch Posted March 25, 2013 at 03:47 PM Author Share Posted March 25, 2013 at 03:47 PM super! vielen dank! ich hab nun noch probleme den debugger in eclipse einzustellen. openOCD und Segger J-link fürs ATMEL SAM-ICE sind installiert. Habt ihr ein gutes Tutorial welches mir weiterhilft? LG Quote Link to comment Share on other sites More sharing options...
davidkoch Posted March 26, 2013 at 10:24 AM Author Share Posted March 26, 2013 at 10:24 AM Mittlerweile läuft der GDB Server sowie kompilieren der Software und das flashen. Problem ist nun noch das der Debugger mir einen fehler ausgibt. Habt Ihr ne Ahnung? Ich habe mal ein paar screenshots angefügt: Quote Link to comment Share on other sites More sharing options...
batti Posted March 26, 2013 at 10:40 AM Share Posted March 26, 2013 at 10:40 AM Was hast du denn angeschlossen zum Debuggen? (Welches Brick?) Quote Link to comment Share on other sites More sharing options...
davidkoch Posted March 26, 2013 at 12:01 PM Author Share Posted March 26, 2013 at 12:01 PM den dc brick firmware 1.1.6 immer wenn ich bei eclipse den debugger auswähle kommt folgende meldung: Quote Link to comment Share on other sites More sharing options...
borg Posted March 26, 2013 at 12:14 PM Share Posted March 26, 2013 at 12:14 PM Schwer zu sagen, ich kenne mich mit SEGGER JLINK nicht aus. Hast du schonmal am Command Set und Protocol Version rumgespielt? Quote Link to comment Share on other sites More sharing options...
davidkoch Posted March 26, 2013 at 12:25 PM Author Share Posted March 26, 2013 at 12:25 PM 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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.