HC08 MCU based µC and linux

cancel
Showing results for 
Search instead for 
Did you mean: 

HC08 MCU based µC and linux

1,587 Views
vcz
Contributor II

Hello all.

 

I create this topic just to share my work on  HC08 based mcu and linux.

 

Indeed, in the company I work, we are using linux and for this we cannot used codewarrior (because it only works on windows...) so we decided to used SDCC compiler which is free and works under linux.

 

SDCC generate .S19 file which is compliante with the cyclone pro for flashing the MCU.

 

But SDCC doesn't know the mc9s08awxx MCU family so I had to create the corresponding header file.

If someone is interested in this file, I will be happy to give it to him !!!

 

The next step is to find, or create, an electronic board to flash the µC without using the cyclone pro device (because we need windows with it... via Virtualbox)

 

Best regards

Labels (1)
0 Kudos
5 Replies

127 Views
Ari
Contributor I

If you could lend me that header, i'll get on it next week (i have a test today, and i want to take the weekend off :smileytongue:).

 

I'll comment any progress as soon as i have something running.

 

Thanks.

 

Regarding CodeWarrior, i believe that a friend of mine tried it with WINE, on Linux. He told me that he had a problem with it, but i don't remember if it didn't run, or if the problem was when he tried to program the uC with the MON08.

0 Kudos

127 Views
bigmac
Specialist III

Hello Ari,

 

Keep in mind that the HCS08 devices do have a few more instructions available, compared with the HC908.  This means that a compiler that handles HC908 devices only will not make use of the additional instructions.  This may result in less efficient code, i.e. greater code size and/or more execution cycles.

 

Regards,

Mac

 

0 Kudos

127 Views
vcz
Contributor II

Hello.

 

No problem for the header. Give me your e-mail and I will send you.

 

I use virtualbox to enable windows on my linux and it works fine (code warriors and all the software given with the MCU).

 

Maybe SDCC implements the HCS08 becaus eall the opcode work.

 

Best regards !

0 Kudos

127 Views
vcz
Contributor II

Hello.

 

Yes, I used SDCC for my project without any problem !

HCS08 has the same core as HC08 (same opcode...),  nevertheless you will need an header file corresponding to YOUR MCU. I wrote the header file corresponding to the mc9s08aw16 MCU and if you want, I can give it to you.

 

For your OSBDM, I don't know because for the moment I use the "Image creator" tools provided by freescale to generate file for flashing my MCU, via the cyclone pro hardware tools.

 

Indeed, SDCC generate S19 file which are compliant with the freescale tools. But if you can make an OSBDM, I think that it will compliant with S19 file too.

 

Best regards !

 

 

0 Kudos

127 Views
Ari
Contributor I

Hi, i'm new with freescale uCs. I'm a student, and i was interested in Freescales' uC.

 

I have the schematics to build a OSBDM, and i am now a linux user. I read something about this SDCC, but haven't tried it yet. 

 

Here's my question: for what i've seen, the SDCC is made to support the HC08 core, but i haven't seen anything regardin S08 core. Did you compiled C-code for the S08 core on SDCC? Is it to difficult? 

 

On the other hand, is there any tool to flash the MCUs with the OSBDM under linux?

 

Thanks for any help you can provide. 

 

P.S.: I'm sorry if there's a syntax or spelling mistake, i'm from Argentina and haven't written in english for quite a while now :smileytongue: 

0 Kudos