Kirk Humphries

Programming flash memory with a Motorola S file

Discussion created by Kirk Humphries Employee on Jan 26, 2006

This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.

 

Posted: Thu Jan 5, 2006 8:19am

 

Hello,

 

I'd like to program the flash memory of my HC12 with a Motorola S file.

Can WinIDEA do that or not ?

I haven't found the mean to do that yet.

Is there any software associated with WinIDEA that could do that ?

 


 

Posted: Thu Jan 5, 2006 8:59am

 

> Hello,

>

> I'd like to program the flash memory of my HC12 with a Motorola S file.

> Can WinIDEA do that or not ?

> I haven't found the mean to do that yet.

> Is there any software associated with WinIDEA that could do that ?

 

With what hardware? I use D-Bug12 either the bootloader, resident in the target, or as a BDM POD. After that, I only need a terminal window that can send ASCII.

 

Well, looking at http://www.isystem.com it looks like they have a POD, Star12, which can connect to their emulator, so I could guess with their hardware at least, you can.

 


Posted: Thu Jan 5, 2006 9:25am

 

> With what hardware? I use D-Bug12 either the bootloader, resident in

> the target, or as a BDM POD. After that, I only need a terminal window

> that can send ascii.

>

> Well, looking at http://www.isystem.com it looks like they have a POD,

> Star12, which can connect to their emulator, so I could guess with

> their hardware at least, you can.

 

I should be clear that I have never seen winIDEA up close. I don't know if you are really just asking whether you can load S19 as apposed to a different binary format?

 


Date: Thu Jan 5, 2006 11:36am

 

Hardware : 68HC12DG128A

WinIDEA 9.2 : this is an old version, and so I was told that we don't have any support today.

 

In the flash menu, you can change or add download files but it always needs the ABS file. If I add a S19 file in the list, it doesn't use it. SO I don't know how to program the memory with a S19 file.

 

In fact, I tried to include the S19 file in the ABS file by using the command "HEXFILE xxx.s19 ..." in the PRM file but this command is not supported. So I'm looking for a solution to download directly a S19 file to the memory.

 


 

Date: Thu Jan 5, 2006 11:42am

 

> Hardware : 68HC12DG128A

> WinIDEA 9.2 : this is an old version, and so I was told that we don't

> have any support today.

 

Yeah, that's tuff. It's much of why I stayed away from the emulator world.

 

> In the flash menu, you can change or add download files but it always

> needs the ABS file. If I add a S19 file in the list, it doesn't use it.

> SO I don't know how to program the memory with a S19 file.

>

> In fact, I tried to include the S19 file in the ABS file by using the

> command "HEXFILE xxx.s19 ..." in the PRM file but this command is not

> supported. So I'm loooking for a solution to download directly a S19

> file to the memory.

 

I was thinking that .abs was a certain configuration of S19 file. I would look at it's contents, but I don't have one here.

 


 

Date: Thu Jan 5, 2006 11:57am

 

> I was thinking that .abs was a certain configuration of S19 file. I

> would look at it's contents, but I don't have one here.

 

Oh, I correct myself... I found that ".abs" is the ELF. ".phy" was the S19 I was thinking about. I don't use CW either :smileyhappy:

 

I notice that the company says they don't support GCC for HC12, so I wouldn't use them. Just allowing loading S1 and S2 records would have made it possible to load from GCC.

 


  

Date: Thu Jan 5, 2006 9:20am

> I'd like to program the flash memory of my HC12 with a Motorola S file.

> Can WinIDEA do that or not ?

 

Certainly (although you _might_ observe some "unexpected behaviour").

 

> I haven't found the mean to do that yet.

 

It's the "FLASH" menu, what else?

 

Which hardware and which winIDEA version are you using, and which HC12 derivative do you want to flash?

 

After all, since you pay a lot of money for iSYSTEM support, I suggest to ask them, otherwise they don't notice what to improve.

 


 

Date: Fri Jan 6, 2006 1:07pm

 

>Hardware : 68HC12DG128A

 

I meant "which BDM hardware".

 

>WinIDEA 9.2 : this is an old version, and so I was told that we don't

>have any support today.

 

You should have tried it as long as you had support.

 

>In the flash menu, you can change or add download files but it always

>needs the ABS file.

 

what is "ABS"?

 

> If I add a S19 file in the list, it doesn't use it.

 

Use a Motorola S* File file with paged addresses. That's the most reliable address format for winIDEA.

 

>SO I don't know how to program the memory with a S19 file.

 

With ComPOD12 and StarProg from elmicro.com (SCNR). Cheaper than one year winIDEA support.

 


 

Date: Fri Jan 6, 2006 4:12pm

 

> what is "ABS"?

 

I think it's a reference to the ".abs" file from CodeWarrior, short for absolute addresses (the linked output). In other words, if you dumped contents from another project where you don't have the original compiler/linker output, then yann_37 can't find a way to load the contents to Flash.

Outcomes