1 of 1 people found this helpful
If you are looking for a commercial solution, Intel System Studio would be it.
As open-source solution, you should look into OpenOCD.
The patch for Quark/Galileo is here:
We are still working on the patch to get it accepted to mainline. But until then, you can work with it by downloading it from the OpenOCD gerrit.
OpenOCD supports quite a lot of JTAG probes. A full list can be found here:
It tested OpenOCD on Quark with an Olimex-usb-ocd-h and Flyswatter2
I hope that helps. Let me know if you need more information.
Oh, I forgot about your IDE:
The Embedded (JTAG) Debugger in Intel Sytem Studio comes with an nice GUI.
If you use OpenOCD, you should look into gdb/eclipse.
There is a nice Howto in this here, called "Source Level Debug using OpenOCD/GDB/Eclipse on Intel® Quark SoC X1000 Application Note":
Thank you for the information.
If we use Flywatter and OpenOCD, is it possible to execute a assembly level program ?
Can we flash that assembly program on the flash or SD card and have Quark execute it for us while doing runtime debug and breakpoints ?
I would like to merge these 2 similar threads, because you are asking the same question.
JTAG Debugger Compatibility with Intel Galileo
Is it possible to use intel galileo for bare metal programming?
In short: Yes, it is possible to write an on 'program' and run it bare-metal - also by using OpenOCD to 'download' the program into memory. Writing it to SPI and execute/debug from there is also possible.
Not a little bit longer: To do so, you need 'some' understanding of the IA architecture. If you write something bare-metal, you need to understand what real-mode is and what instructions are necessary to bring the CPU into protected mode. You also need to understand that you don't have access to memory or any other device after a reset. To set-up the SOC you need many, many, many lines of code. This code is BTW: called UEFI (aka BIOS) and is available in source code for Quark. If you seriously looking into bare-metal programming, I would start there and build/compile/look at the code/flash to SPI and run it first.
On the other hand, I don’t think that's what you really want (other than for educational reasons or to fulfill the maker spirit of learning new things). To write some 'programs' (other than Linux user mode applications or Arduino sketches) you can write a mini-OS that boots after UEFI or even write a UEFI module that is doing what you want (both options are more promising to get something useful out of it than starting from 'scratch' at reset vector)
If you can give me some more inside into your project and what you want to achieve with it, the community (or I) might be able to help you better.
@Sanket: Good you have OpenOCD up and running. Can you explain more on the eclipse issue? I can help you to set-up gdb/eclipse in top of OpenOCD. Did you followed the instructions in this document? Where do you stuck?
"Source Level Debug using OpenOCD/GDB/Eclipse on Intel® Quark SoC X1000 Application Note"
I have successfully used this JTAG adapter with Galileo and OpenOCD: ARM-USB-OCD-H
I like this one because it also has a serial port.
Connecting the Galileo serial line to it I have the console with BIOS output & menu and the Linux console.
This is all over the same USB connection to my PC (JTAG and console together on one USB cable).
We have tried Olimex ARM-USB-OCD-H debugged with Intel Galileo on a Ubuntu 10.4 host system running on Vmware player.
We were able to access the internal registers through command line and were able to flash elf/bin to the board,
We are trying to look for a GUI based debugger.
Were you able to obtain debugger interface via a GUI ?
I was able to use GDB in Eclipse. Just follow the instructions in the Galileo OpenOCD document and it will work.
Thanks a lot!