Debugging AVR32 Linux board over JTAG with mkII

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am curious as to how it might be possible to debug an AVR32 Linux board (i.e. NGW100) over JTAG using the mkII development tool. It appears that this might be possible using AVR32 studio.

Recently, I have designed a custom board using the AP7001 processor. The custom board does not have ethernet, but I do have RS-232 on USART0, and I have also included USB and SDCARD.

Is it possible to debug a userspace program completely over JTAG? How would I do this? Or would it be possible to run ethernet over USB? How would I set this up?

Nicholas

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Might it be possible to run the mass storage device gadget and simply drop development files onto the sdcard?

How would I debug these programs using AVR studio? What would I have to start up?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is not possible to debug user space programs over mkII. You can get some debugging information from the kernel that way only AFAIK.

I think you have to look into using the gdbserver for debugging of the progra. Lots of printouts to console is also often an good idea.

The best part migth be to have ethernet over usb and share the sd card with samba and also run an gdb server for debugging in the same manner.

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks again, eaanon01! I'll give this a try and set up ethernet over usb.

Once again, thank you for all of your help!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do I start the ftp server on the board? It appears that I cannot connect to my NGW100 and my custom board. I believe that the FTP server should start when the board boots.

What are the steps that I need to take to start the ftp server and then check to see if it is working?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well you would see that port 21 is open on the uning by checking with telnet. telnet "IP" 21 in windows commandline.

You can check if it is running by writing top and see if it pops up as one of the tasks there. Also check that your scripts has been excecuted or you can stop and start with the help of the script manualy. "S0Xproftp stop" somthing like that and then do start again.

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks once again for your reply, eaanon01. I noticed that on my machine, the official version of Atmel buildroot does not seem to copy the binaries for the FTP server into the root file system image!

So I copied the binaries from the build_avr32_nofpu directory onto an sdcard and transferred them to my custom board. After setting up the FTP server manually, I tried to telnet into my board, and... it worked!

Now I need to manually set up the dropbear ssh server.

So thank you! Does anyone know why buildroot would not be copying the binaries for proftp and dropbear into the root directories? I checked the menuconfig for buildroot, and both of these packages are selected. However, these packages are not being copied into the root directory.

Hmmm...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

However, buildroot is creating the binaries in the project_build_avr32_nofpu/atngw100/root/usr/bin directory, but the binaries are not being copied to the .img file that is then transferred to the board.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So why not copy the /usr root directories to the board via SDCARD or FTP?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The project_build_avr32_nofpu/atngw100/root/usr directory is not being copied by the .img file by buildroot. However, the project_build_avr32_nofpu/atngw100/root/usr contains symlinks which cannot be easily copied. I will try to place the /usr directory into a tar file, and then transfer the tar file to my custom board via SD Card. I should be able to untar the /usr directory and have it replace the empty /usr directory on my custom board. I'll try this and see where it takes me.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think that I found the problem with my custom board. The /usr directory is normally placed on the serial flash that is incorporated into the NGW100 board. However, I do not have serial flash on my custom board!

Buildroot provides a separate image for the /usr directory!

What I will do is copy the /usr directory to the SDCARD, and then set up the /usr directory when the custom board boots.

So thank you eaanon01 for helping me check for the things that are working and thus leading me to a solution!