User forums > Embedded development
Looking into CodeBlocks and CodeSourcery
jmhill:
Just took a step forward.
I downloaded the at91sam7s-ek package from Atmel. The package contains example programs for the at91sam7s-ek development board, supporting three different sets of tools, including GNU. There are some oddities with the package, first off that the "getting started" example is not trivial. Also, with an adjustment to the Makefile, setting the values assigned to CHIP and BOARD, to what's actually present is sometimes needed.
I just ran and built the basic adc project. My SAM7-P256 board has a potentiometer and a thermistor, as well as RS232 output. The Makefile, indicates where to change a statement to a comment, for debugging the project. The CodeSourcery tools cleanly built the example.
I installed the Segger software. I saved the recommended init sequence for gdb in a file named .gdbinit and saved that into the project folder. I was just able to use the Segger J-LINK to download the code to the board and do some debugging.
This is all very good for a number of reasons. I'm not fully convinced that it's working, but I think that's enough for right now.
Best;
Jonathan
themaddin:
Hello Jonathan,
what do you mean with some debugging? Did it worked? Did you debugged with Codesourcerys GDB?
I have troubles debugging with Codeblocks and Codesourcery GDB.
See: forums.codeblocks.org/index.php/topic,15965.new.html
Kind regards
Martin
Navigation
[0] Message Index
[*] Previous page
Go to full version