Trenz Electronic Products > Trenz Electronic FPGA Modules

TE0300 Bootloader

<< < (2/2)

Ales Gorkic:
Hi,

It seems that you need some clarification.
The copyandbuild_boot.bat script programes the SPI FPASH via JTAG (if connected) and generates the FWU file which can be used to program the FLASH via FUT. This script appends .elf to the .bit at specified offset.
But first you need to generate the executable (.elf) and bitstream with the bootloader (combined in download.bit). Important: the bootloader project MUST be marked to initalize BRAM.
After bootup the bootloader reads the header, copies the executable to DDR memory, verifies the executable (checksum) and boots from DDR.

Best regards,

Ales

acorde:
Thank you Ales. That's what I thought. I was including a bitstream without bootloader.

I have another question. There is a comment in the main.c of bootloader code: (line 62)

"   // First write in dynamic RAM fails for unknown reasons...
   // This is an hack which works, but still doesn't explain
   // the cause...   "

I cannot debug my application with SDK. Everything seems to be ok, SDK starts debugging but debug didn't stop on main.c. It opens a wrong execute address. Can "Ram bug" be the problem? How can I debug an application executing from RAM?



Horsa:

--- Quote from: acorde on March 16, 2011, 01:36:01 PM ---I cannot debug my application with SDK. Everything seems to be ok, SDK starts debugging but debug didn't stop on main.c. It opens a wrong execute address. Can "Ram bug" be the problem? How can I debug an application executing from RAM?

--- End quote ---

What build configuration are you using?
  http://www.xilinx.com/support/documentation/sw_manuals/xilinx11/SDK_doc/concepts/sdk_c_build.htm
For debugging, I recommend Debug, of course.

Ales Gorkic:
Hi,

This debugger is sometimes very unpredictable. The build settings optimization should be set to "None" for a start. The project has usually optimization se to "Size optimzed" which is usually a problem for a debugger.
I usually rely only on UART for debugging.

Best regards,

Ales

acorde:
Thank you very much Ales, your replies are usefull.

Maybe I didn't explain it well. I want to know how to debug a code executing it from ram. If I configure the same code in order to run from BRAM, everything works fine.

Navigation

[0] Message Index

[*] Previous page

Go to full version