« Return to Thread: how to run hello world in on-chip ram?

RE: how to run hello world in on-chip ram?

by Robert Cragie :: Rate this Message:

Reply to Author | View in Thread

1) The CPU always vectors to 0x100 on reset so you will either need some
sort of bootstrap there or you will have to map RAM which you can download
to there.
2) You can always get to intelhex from the ELF file using:

or32-uclinux-objcopy -S -O ihex <ELFfile> <ihexfile>

Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
http://www.jennic.com  Tel: +44 (0) 114 281 2655
_______________________________________________________________


> -----Original Message-----
> From: openrisc-bounces@...
> [mailto:openrisc-bounces@...]On Behalf Of charlie yang
> Sent: 19 November 2007 04:17
> To: openrisc@...
> Subject: [openrisc] how to run hello world in on-chip ram?
>
>
> hi all,
> I have a altera FPGA board with Cyclone II EP2c35 and synthesize the
> orp_soc following the hardware tutorials. I have only one dedicated
> JTAG for FPGA and have no  pins for or1k CPU. So I want to burn
> the "hello world" program into on-chip ram by initializing this memory,
> that is, let the JTAG download the all the CPU and program .
>  so there are two questions for help:
>   1) how to set start pointer of the reset.S and let the "hello
> world" run.
>   2) I find the  hello.hex in or1k is incompatible with Intel hex
> format of
> altera memory. how can I convert it to altera memory format?
>
> Is there anybody using altera FPGA? Please give me some directions .
> Thanks a lot !
> _______________________________________________
> http://www.opencores.org/mailman/listinfo/openrisc

_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc

 « Return to Thread: how to run hello world in on-chip ram?