electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

EDK and GDB - Code does not run


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> EDK and GDB - Code does not run
Author Message
Rob B



Joined: 30 Oct 2005
Posts: 66
Helped: 1


Post13 Mar 2008 16:55   

nexys2 edk


After a few hours of brute-force mouse clicking I have successfully built and added auto-generated test code to a MicroBlaze for my Spartan3E 500 board.

I generated the MB with hardware debug support as I could not get XMD to connect to a software stub over the JTAG3 cable.

Now, XMD connects to the MB and GDB connects to the XMD server.

However, the code does not seem to want to run or step Sad. I thought that it was time to ask for help as I am now seemingly getting nowhere.

I am trying to run the TestApp_Peripheral code (tried Executable and XmdStub selected), the custom linker script which XPS generated and Hardware selected in the XMD Debug Options. I also tried the GPIO test example (including UART RS232) but that doesn't seem to do much either.

Although I can't find an exact example for what I want to do I followed some others such as from http://www.eecg.toronto.edu/~pc/courses/edk/node4.html. My settings seem correct to me in Software Platform Settings, clock frequency is correct, debug_module is selected, RS232 is selected in OS and Libraries, Drivers all contain something.

Many thanks for any ideas of what to look for,

Rob
Back to top
Google
AdSense
Google Adsense




Post13 Mar 2008 16:55   

Ads




Back to top
shawndaking



Joined: 20 Jun 2001
Posts: 235
Helped: 6


Post13 Mar 2008 19:37   

edk gdb debug options


your first problem was probebly due to jtag chain.

for your current problem :

1. have you put the start address - normally you put 0x100 - don't let field to be empty !.

2. also of course you should mark the booloop for bram initialisation <green>, and your application should not be markd <x mark over> !

3. cleen sw and regenerate your libraries and build.
Back to top
Rob B



Joined: 30 Oct 2005
Posts: 66
Helped: 1


Post13 Mar 2008 20:26   

Re: EDK and GDB - Code does not run


Is the BootLoop the only thing that should be marked for BRAM initialisation?

I have a XMDStub in there as well for some reason.

I was trusting the linker script generator to place the program but where do you mean to set the address manually? Is it the "Use Default Linker Script" section under the "Set Compiler Options" - "Environment" tab?

I'm using 9.1i if that's any help.
Back to top
shawndaking



Joined: 20 Jun 2001
Posts: 235
Helped: 6


Post13 Mar 2008 20:49   

Re: EDK and GDB - Code does not run


its the only one to be marked after that you must do the update bitsream command.

the program start address is when defaul linkerscript is marked.

you can also add stach, heap size but this is the most important.
Back to top
Rob B



Joined: 30 Oct 2005
Posts: 66
Helped: 1


Post13 Mar 2008 21:58   

Re: EDK and GDB - Code does not run


Just been trying the project using the default linker script and manual location of the program and it yielded the same result, after clean builds.

Could this be an issue? I don't have what looks like a reset pin allocated in the UCF.

# Net sys_rst_pin LOC=;

Memory reads using XMD seem to be coming back as 0x00000000, even at 0x100... That doesn't look correct at all Crying or Very sad.
Back to top
shawndaking



Joined: 20 Jun 2001
Posts: 235
Helped: 6


Post16 Mar 2008 9:39   

Re: EDK and GDB - Code does not run


i think it is good to have a reset pin.

don't know how you cope without it.
Back to top
Rob B



Joined: 30 Oct 2005
Posts: 66
Helped: 1


Post16 Mar 2008 18:18   

Re: EDK and GDB - Code does not run


I will be moving onto the Spartan 3E Starter Kit this week.

I think itt has better support within EDK, I really did not want to try making a memory controller for the NEXYS2 board from the ground up anyway.

I should get that early this week so my next question somewhere will probably involve getting Core Generator modules and ISE modules into the EDK Smile.

Thanks.

Rob
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> EDK and GDB - Code does not run
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Code for 4*4keypad and lcd does not work - need help (1)
Code for keypad and lcd does not work - help needed (1)
How to delay the output? My code does not work (1)
CAN interface does not work with code stored in Flash memory (1)
which program to download and install to run tcl/tk code (6)
Eagle does not give consistence between schematic and board (2)
MPC8245 do not run (1)
Why it not run (3)
Does BuildGates v5.09 run in Solaris 9? (2)
error in netlist could not run LVS (7)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS