My name is Sven Andersson and I
work as a consultant in embedded
system design, implemented in ASIC
In my spare time I write this blog
and I hope it will inspire others to
learn more about this fantastic field.
I live in Stockholm Sweden and have
my own company
You are welcome to contact me
and ask questions or make comments
about my blog.
After installing the JTAG cable drivers and having a working connection to the ZedBoard we are ready to run the "Hello World" program. We will use Xilinx SDK to configure the ARM processing system load and run the program. Before we start SDK let's setup a terminal emulator.
Terminal emulator setup
We need to connect a terminal to the Zynq Processing system to be able to print out the "Hello World" string. We could of course connect a real hardware terminal but i think that is overkill. We will connect a terminal emulator instead. I have been using GTKterm for many years and find it very easy to use. Let's install it:
sudo apt-get install gtkterm
First time we start GTKterm we will get an error and this window pops up:
Here is the explanation.
This can easily be fixed by adding us to the dialout group using the following command:
sudo addgroup svenand dialout
Logout and login for the group add to take place.
Select port: /dev/ttyACM0 and set the baud rate to 115200.
If this window pops up just try a few more times and all of sudden it works. I have no explanation why this happens. Executing this command before starting GTKterm seems to fix the problem:
Hello Svenand, Really love these tutorials. I have a microzed board (7010), and running Vivado (version 2014.4) and SDK (version 2014.4) on ubuntu 14.04 LTS (kernel version 3.13.0-44-generic)which is of course supported, good news. However I cannot get the hello world application to run, as I get the error message " Connection to Board Failed", " Unknown Error Occured Cable is not connected to the host" I know the board is connected, have green LED on. The CP210x USB to UART Bridge VCP drivers are installed and if under the termianl tab in the SDK, I can successfully connect to the USB port to which the microzed is connected. I'm at a loss here. any thoughts, advice would be appreciated please. Thanks, Regards,
edwin October 31, 2014 11:42 PM PDT
Ah, never mind, I just found the post that programs LED_Dimmer to flash.
edwin October 31, 2014 11:35 PM PDT
Do you have a post about how to program the HelloWorld or PrimeNumbers application onto QSPI flash so it can run on power-up? Thank you.
Huse September 12, 2014 01:41 PM PDT
Instead of using Gtkterm you can also use a normal ubuntu terminal , runing:
$ sudo apt-get install minicom
$ sudo minicom -D /dev/ttyACM0 -b 115200
with the advantage that you don't need to reboot the terminal everytime the board is rebooted
Brandon J June 27, 2014 03:31 PM PDT
djtgcfg enum also didn't work for me. I used minicom to monitor uart and it worked great.
Huse June 25, 2014 11:56 AM PDT
Eventhough i still can´t find the device with " djtgcfg enum", i have been able to complete this examples conecting the console to "/dev/ttyUSB0 " port.
Thanks for the great tutorial
svenand June 18, 2014 08:13 PM PDT Hi Huse,
I have used Vivado 2013.4 and 2014.1. Maybe something has changed in Vivado 2014.2. I will install Vivado 2014.2 and give it a try.
Huse June 18, 2014 06:12 PM PDT
I'm following your tutorial with Vivado 2014.2 and Microzed, but some steps don't come out as yours. The hardware manager locates the board but when i run "djtgcfg enum" it says that no device is found. in gtkterm, there is no ACM0, only ttyS0 to ttyS11.
So eventhough i can run HelloWorld i can't see the result, and SDK alerts me that "Process STDIO not connected to console".
I would truely apreciate a hint.