Information about CodeWarrior

Started by Alexandre Zambon June 8, 2005
Hi,

I used ICC12 to develop my own project. I was using DBug-12 to download. I have bought a BDM multilink to use CodeWarrior. With CodeWarrior, I am not able to download s2 file inside my CPU. The error written is "Error while writing to FE000..FE200, Loading failed!.

May I changed something to download a s2 file correctly?

In other case, is someone using HCS12DP512 and if he's using it, which compiler he is using, Metrowerks or ImageCraft!?

Regards,
Alex


Hi Alex.

For HC(S)12 core devices, CodeWarrior is only able to flash
"logical(banked)" addressing S2 files, not linear addressing S2 files.

However, the BURNER.EXE tool delivered with CodeWarrior can convert your
file with the following script that you can put in a text file called for
example "hcs12_linearToLogical.bbl" and execute with the burner. The source
file should be called "linear.s19" (and have S0 and S9 lines), the created
destination file is called "logical.s19".

If you want, send my your srecord file directly (off list) and I will
convert it for you.

Regards,
Gilles ***** hcs12_linearToLogical.bbl file begin *****

OPENFILE "logical.s19"
format = motorola
busWidth = 1
len = 0x4000

origin = 0x004000
destination = 0x004000
SENDBYTE 1 "linear.s19"
origin = 0x00C000
destination = 0x00C000
SENDBYTE 1 "linear.s19"

origin = 0x80000
destination = 0x208000
SENDBYTE 1 "linear.s19"
origin = 0x84000
destination = 0x218000
SENDBYTE 1 "linear.s19"
origin = 0x88000
destination = 0x228000
SENDBYTE 1 "linear.s19"
origin = 0x8c000
destination = 0x238000
SENDBYTE 1 "linear.s19"
origin = 0x90000
destination = 0x248000
SENDBYTE 1 "linear.s19"
origin = 0x94000
destination = 0x258000
SENDBYTE 1 "linear.s19"
origin = 0x98000
destination = 0x268000
SENDBYTE 1 "linear.s19"
origin = 0x9c000
destination = 0x278000
SENDBYTE 1 "linear.s19"
origin = 0xa0000
destination = 0x288000
SENDBYTE 1 "linear.s19"
origin = 0xa4000
destination = 0x298000
SENDBYTE 1 "linear.s19"
origin = 0xa8000
destination = 0x2a8000
SENDBYTE 1 "linear.s19"
origin = 0xac000
destination = 0x2b8000
SENDBYTE 1 "linear.s19"
origin = 0xb0000
destination = 0x2c8000
SENDBYTE 1 "linear.s19"
origin = 0xb4000
destination = 0x2d8000
SENDBYTE 1 "linear.s19"
origin = 0xb8000
destination = 0x2e8000
SENDBYTE 1 "linear.s19"
origin = 0xbc000
destination = 0x2f8000
SENDBYTE 1 "linear.s19"
origin = 0xc0000
destination = 0x308000
SENDBYTE 1 "linear.s19"
origin = 0xc4000
destination = 0x318000
SENDBYTE 1 "linear.s19"
origin = 0xc8000
destination = 0x328000
SENDBYTE 1 "linear.s19"
origin = 0xcc000
destination = 0x338000
SENDBYTE 1 "linear.s19"
origin = 0xd0000
destination = 0x348000
SENDBYTE 1 "linear.s19"
origin = 0xd4000
destination = 0x358000
SENDBYTE 1 "linear.s19"
origin = 0xd8000
destination = 0x368000
SENDBYTE 1 "linear.s19"
origin = 0xdc000
destination = 0x378000
SENDBYTE 1 "linear.s19"
origin = 0xe0000
destination = 0x388000
SENDBYTE 1 "linear.s19"
origin = 0xe4000
destination = 0x398000
SENDBYTE 1 "linear.s19"
origin = 0xe8000
destination = 0x3a8000
SENDBYTE 1 "linear.s19"
origin = 0xec000
destination = 0x3b8000
SENDBYTE 1 "linear.s19"
origin = 0xf0000
destination = 0x3c8000
SENDBYTE 1 "linear.s19"
origin = 0xf4000
destination = 0x3d8000
SENDBYTE 1 "linear.s19"
origin = 0xf8000
destination = 0x3e8000
SENDBYTE 1 "linear.s19"
origin = 0xfc000
destination = 0x3f8000
SENDBYTE 1 "linear.s19" ***** hcs12_linearToLogical.bbl file end ***** At 10:21 PM 6/8/2005, you wrote:
>Hi,
>
>I used ICC12 to develop my own project. I was using DBug-12 to
>download. I have bought a BDM multilink to use CodeWarrior. With
>CodeWarrior, I am not able to download s2 file inside my CPU. The error
>written is "Error while writing to FE000..FE200, Loading failed!.
>
>May I changed something to download a s2 file correctly?
>
>In other case, is someone using HCS12DP512 and if he's using it, which
>compiler he is using, Metrowerks or ImageCraft!?
>
>Regards,
>Alex >
>
>Yahoo! Groups Links >
>