Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
andrewsi
Posts: 20
Registered: ‎02-05-2012
0
Accepted Solution

How do you debug an app that was bootloaded into RAM from flash (via SREC)?

OK, one more question.

 

Assume that I am writing an app that is too large to fit into BRAM.  The app can be successfully compiled, converted to SREC, and then stored in Flash.  The linker script is modified to indicate that the app will run from external RAM. The sample SDK bootloader works perfectly, and loads the SREC image into RAM and starts execution. (Can see output on the console.)

 

Now - how the heck do I get the GDB debugger to connect to the app in RAM once it's running?  It's not feasible to get the app working perfectly without a debugger, but I'm not sure how to skip over the bootloader (which is the "running app" from Eclipse's point of view) and start debugging once it jumps to my app.


Thanks-

Andy

Visitor
andrewsi
Posts: 20
Registered: ‎02-05-2012
0

Re: How do you debug an app that was bootloaded into RAM from flash (via SREC)?

Think I answered my own question (again.) :-) I don't know why I didn't think of this initially, but it's not necessary to go through the SREC bootloader to get the application into PSRAM for debugging. As long as the linker script is set up properly, you can launch and debug the app directly. The bootloader will become useful later when the app is ready to deploy, then it can just be stored in flash in SREC form.