FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-2009, 07:51 AM
hvo
Guest
 
Posts: n/a
Default writing to reset vectors - xilinx spartan 3an

Hi,

I am using a small boot loader to copy an application to SDRAM and it'
vectors to address 0x00. While using the Spartan 3an starter kit, I woul
create a pointer to address 0x00 and write directly into that address. I.E


unsigned char *pointer = 0x00;
Reply With Quote
  #2 (permalink)  
Old 05-28-2009, 03:09 PM
gabor
Guest
 
Posts: n/a
Default Re: writing to reset vectors - xilinx spartan 3an

On May 28, 1:51*am, "hvo" <hai...@synrad.com> wrote:
> Hi,
>
> I am using a small boot loader to copy an application to SDRAM and it's
> vectors to address 0x00. *While using the Spartan 3an starter kit, I would
> create a pointer to address 0x00 and write directly into that address. I.E.
>
> unsigned char *pointer = 0x00;


To avoid warnings, you may want to write something like:

unsigned char *pointer = (unsigned char *)0x00;

Otherwise I don't see why this shouldn't work. I presume
you're using a MicroBlaze?

Regards,
Gabor
Reply With Quote
  #3 (permalink)  
Old 05-28-2009, 05:51 PM
hvo
Guest
 
Posts: n/a
Default Re: writing to reset vectors - xilinx spartan 3an

>On May 28, 1:51=A0am, "hvo" <hai...@synrad.com> wrote:
>> Hi,
>>
>> I am using a small boot loader to copy an application to SDRAM an

it's
>> vectors to address 0x00. =A0While using the Spartan 3an starter kit,

wo=
>uld
>> create a pointer to address 0x00 and write directly into that address

I.=
>E.
>>
>> unsigned char *pointer =3D 0x00;

>
>To avoid warnings, you may want to write something like:
>
>unsigned char *pointer =3D (unsigned char *)0x00;
>
>Otherwise I don't see why this shouldn't work. I presume
>you're using a MicroBlaze?
>
>Regards,
>Gabor
>


Hi Gabor,

Yes I am using MicroBlaze. The puzzling thing is that it worked with th
starter kit and not the custom board. I am only writing to Block RAM. M
code does run the bootload sequence, but I cant write into address 0x00, o
any vector addresses. Are there some kind of write protect for th
BlockRAM that I am not aware of?

Thanks for your reply, Regards
hvo

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spartan 3E reset problem Digi Suji FPGA 3 01-18-2009 11:38 AM
writing files to micro-SD with spartan 3e [email protected] FPGA 10 11-13-2008 04:40 PM
Xilinx DCM Reset [email protected] FPGA 10 07-05-2007 05:51 PM
Looking for tutorials for bootloader writing on xilinx SOC ?? sjulhes FPGA 3 11-11-2005 10:01 PM
Writing to Spartan 3 SRAM [email protected] FPGA 3 08-26-2005 08:38 PM


All times are GMT +1. The time now is 02:51 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved