Creating images for Lite5200EVB using CodeWarrior - Error: Too many headers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating images for Lite5200EVB using CodeWarrior - Error: Too many headers

3,274 Views
robert_mueller
Contributor I

Hi,

 

I'm new with CodeWarrior and the Lite5200 (non-B) evaluation board, but I have to write an application for it.

I know, this board is quite old, but nevertheless I hope, somebody can help me.

 

I started with the Quick Start Guide available on the website (AN-2757) and created the first  ROM-Image with Codewarrior v9.2. Now I want to download and execute this image via TFTP using 'dn'-command in the dBUG-mode of the board.

 

When I enter 'dn -e romimage.elf', I get the message: 'Error: Too many Headers".

What's the problem here and how can I fix it?

 

In case of downloading the image would be successful, I would have to use the 'go'-command to execute it, right?

But followed by which parameter/address?

 

I have only a WireTAP for BDM here. Is it useable for Remote Debugging in V9.2, or do I have go back to version 8.8 of Codewarrior to be able to use it? Is flashing the image possible without using BDM too?

 

I know, that are a lot of questions. Most important is the answer to the first.

 

Any hints are welcome.

 

Kind regards,

Robert

Labels (1)
0 Kudos
Reply
12 Replies

2,676 Views
timo_schuering
Contributor II

I used the GNU utilities m68k-elf-readelf.exe to inspect and objcopy to strip the file from unneeded information. The symbol table in DBUG is small and not protected against overflow, also debug, comments and other sections may cause problems.

   

 

objcopy --strip-unneeded $ 

0 Kudos
Reply

2,912 Views
AlexejLuft
Contributor I

Having the same problem... maybe somebody does have a solution for this? would be great.

0 Kudos
Reply

2,912 Views
J2MEJediMaster
Specialist I

Have you tried downloading the file as an S-record?

 

---Tom

0 Kudos
Reply

2,912 Views
AlexejLuft
Contributor I

I wasn't able to create or get an s-record file. How do I create it or where can I get it? In Codewarrior 8.1 there are only three build options:

 

- RAM Debug (Debugging using a BDM)

- ROM Debug (Debugging without using a BDM - which I try to do)

- Standalone BL (for burning into flash)

 

all three options create *.ELF files. 

 

Thanks!

 

regards

Alexej 

0 Kudos
Reply

2,912 Views
J2MEJediMaster
Specialist I

Those are build options, but you need to look at the CodeWarrior settings panels. I don't have that version of CodeWarrior, unfortunately, but if memory serves under either the linker settings panel or project settings panel there might be an option to generate a S-record file.

 

---Tom

0 Kudos
Reply

2,912 Views
AlexejLuft
Contributor I

Thanks Tom.

 

There is indeed a checkbox "Generate S-Record File" in ROM Version Settings. The s-record files created by the software have the extension .MOT.

 

However, when I try to download such a file using TFTP I get an error:

 

dBUG> dn -s ROM.motOffset:  0x00000000Downloading S-Record 'ROM.mot' from 192.168.1.1Error: Invalid download address: 0xFFF00000276060 bytes read via TFTP

 I also tried it with another offset (0xFFF00000) or another setting (0x00000000) for ROM Image Address in ROM Version Settings. Any ideas?

 

-- Alexej 

 

 

0 Kudos
Reply

2,912 Views
AlexejLuft
Contributor I

S-Record files have extension .MOT, dont they? I see in Lite5200 EVB Reference that they had an s-record win .bin extension. So I tried it out:

dBUG> dn -s ROM.binOffset:  0x00000000Downloading S-Record 'ROM.bin' from 192.168.1.1.98560 bytes read via TFTPdBUG> goException 0700: Program    ip: 00020470     msr: 00009082 [EE,ME,CE,RI]    cr: 40000000     xer: 00000000      lr: 00000000     ctr: 00000000r00-07: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000r08-15: 00000000 00000000 00000000 00000000 000033CC 00000000 00006798 00006750r16-23: 00000000 00000000 00000000 00000000 00000000 00000000 00006798 00000000r24-31: 00000000 00000000 00000000 00000000 00000000 00000000 00006798 0000000000020470: 27CC33CC   DC.WdBUG> dn -s -o 20000 ROM.binOffset:  0x00020000Downloading S-Record 'ROM.bin' from 192.168.1.1.98560 bytes read via TFTPdBUG> go 0x20000Exception 0700: Program    ip: 00020470     msr: 00009082 [EE,ME,CE,RI]    cr: 40000000     xer: 00000000      lr: 00000000     ctr: 00000000r00-07: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000r08-15: 00000000 00000000 00000000 00000000 00002388 00000000 00005754 0000570Cr16-23: 00000000 00000000 00000000 00000000 00000000 00000000 00005754 00000000r24-31: 00000000 00000000 00000000 00000000 00000000 00000000 00005754 0000000000020470: 27CC33CC   DC.W

 and got the old known exception 0700...

 

0 Kudos
Reply

2,912 Views
AlexejLuft
Contributor I

So I can download files but not execute them. When I burn images into flash and boot low, there is no "hello world" on the console, I suppose its not that easy and I have to write a program which does ouput something over RS-232 interface.

0 Kudos
Reply

2,912 Views
J2MEJediMaster
Specialist I

Do you have debugger control where you can single-step through the program and confirm that it is actually there and working?

 

---Tom

0 Kudos
Reply

2,912 Views
AlexejLuft
Contributor I

You mean do I have a BDM like USB TAP for debugging? If yes, I don't. All I see is the flash map in dBug..

0 Kudos
Reply

2,912 Views
J2MEJediMaster
Specialist I

OK, so you have a wireTAP, per your first message. (Which I forgot about. Sorry.) You should be able to program flash with that run controller, instead of using TFTP. You might want to file a service request on this problem.

 

---Tom

0 Kudos
Reply

2,912 Views
AlexejLuft
Contributor I

Yes, I do have a WireTAP but its not supported by newer versions of Codewarrior anymore. I have an old evaluating version of Codewarrior 8.1 which works only 15 days but when I try to flash my board using it, the software says something like "couldn't establish a JTAG connection". (I tried different settings, according to a manual and just diefferent, but without success).

 

--

Alexej 

0 Kudos
Reply