This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: upload program in NEC V850 RAM


Cristoforo Abbattista wrote:
oK, it could be so, but why the code is loaded and executed if we try to load it by the v850-elf-gdb?

If this is the *very same* file that you load into v850-elf-gdb, then that may well show I'm right :-). GDB accepts ELF format file, but I could well believe ELF load support is disabled in the v850 redboot to save space.


You can try converting the file to an srec file using "v850-elf-objcopy -O srec infile outfile.srec". If Hello.S3 really is an srec file you should be able to just open it in a text editor or "more" and it should look something like:
S010000076383530666C6173682E6865785B
S1180000070A400F4CF0010A400F64F08F07F4FF8F07F2FF008D
S11800150000000000000000000000BC0700000000000000000F
S118002A000000000000BC0700000000000000000000000000FA


although obviously the actual numbers vary.

Teresa Fazio wrote:

Hi, I'm new in this mailing list and I found someone of you having
problems in uploading programs in NEC V850 RAM, like me. When I
try to load a simple program Hello.S3, I do


RedBoot>load

Ctrl a + s choice ymodem and then the file Hello.S3. But the answer is:

CCCCCCCCCCCCCCCC*** Warning! Attempt to load S-record to address:
0xffffffff RedBoot does not believe this is in RAM Use TFTP for a
chance to override this. *** Warning! Checksum failure - Addr:
ffffffff, EF <> 00 xyzModem - CRC mode, 647(SOH)/4(STX)/5(CAN)
packets, 316 retries


What is the problem?

The addresses in your s-record file indicate it should be loaded to 0xffffffff, which isn't right. Check your s-record file, and how it was built, and particularly how the memory map was linked.

Or more relevantly, if it isn't an s-record file, either convert it to
one or choose the appropriate flag to "load" to tell redboot what
format it is!

Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


-- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]