Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by zippyua@Feb 5 2007, 09:54 AM #!/bin/sh# # this file was automatically generated by the nios ii ide flash programmer.# # it will be overwritten when the flash programmer options change.#
cd c:/de1/de1_demonstrations/de1_nios/software/media_center_x/release
# creating .flash file for the project
"$sopc_kit_nios2/bin/elf2flash" --base=0x00000000 --end=0x3fffff --reset=0x0 --i
nput="media_center_x.elf" --output="cfi_flash_0.flash" --boot="c:/altera/61/ip/n
ios2_ip/altera_nios2/boot_loader_cfi.srec"
# programming flash with the project
"$sopc_kit_nios2/bin/nios2-flash-programmer" --base=0x00000000 --cable='usb-blas
ter [usb-0]' "cfi_flash_0.flash"
using cable "usb-blaster [usb-0]", device 1, instance 0x00
resetting and pausing target processor: ok
: checksumming existing contents
00000000 : verifying existing contents
checksummed/read 1kb in 0.0s
erase not required
00000000 ( 0%): programming
programmed 1kb in 0.0s
no change to device contents
leaving target processor paused
since the "little" omission of the reference designator in sopc builder got it to progress this far i am starting to think maybe i have something assigned wrong in quartus? i am thinking of that as an option (and looking into as soon as this is posted) if it doesn't look like a common situation associated with the nios ii programming process. i swear one of these times we'll get it right. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/tongue.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21250)
--- quote end ---
--- Quote End --- This looks like it's working (from the messages), but is your code size really only 1KB? Where have you placed your various code sections (in the System Library project)? i.e.: .text, .rodata, .rwdata. With the method that I "think" you want to use, they should ALL be located in your volatile memory. To see where you code is being placed, check the options to generate an objdump (or do so manually). Look at the IDE's online help for details. Cheers, - slacker