I have succeded creating and running AN2250 SW2 in Microsoft Dev Studio 2003.

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

I have succeded creating and running AN2250 SW2 in Microsoft Dev Studio 2003.

879 Views
kwik
Contributor I
I have succeded creating and running AN2250 SW2 in Microsoft Dev Studio 2003.

Since this application ( AN2250 SW2 ) is an application that is supposed to run on a PC ,I found it better to create it and run it in Microsoft Developer Studio 2003.

After all ,this application is supposed to read the WAV file ,and then create C Arrays ,which is later to be linked into your other MicroController project. (That is AN2250 SW3 )

So ,first I run the MS Devstudio 2003 project to create the c-arrays.

Then I run the Codewarrior project to create my MC0S12C Code for the target board.

Here is how I created the Microsoft Developer Studio 2003 project ;

In Microsoft Developer Studio 2003 do as follows:
===========================================================
I did : File->New->Project
I Selected Visual C++ Prokects->Win32->Win32 Consol Project
I clicked OK

In the main file in your new project you must replace the whole
_tmain(...) with the code in the main.c from AN2250 SW2

in AN2250SW2 its called main(void) .... you must rename it to
_tmain(...)

Now compile and link

It will go into break if you dont copy the wav - file you are supposed to read
to your workin directory

Now run it ....thats it ,it creates
output01.c ,output02.c,output03.c... which is the arrays to be included in AN2250 SW3 project.

Why was this a bit difficult ? Well it wasnt that difficult ,but the source used old style fseek() fread() etc functions ,so a win32 project had to be selected ....
Labels (1)
0 Kudos
1 Reply

281 Views
kwik
Contributor I
I didnt manage to compile - link it in Codewarrior ....but now I can create the C-arrays from WAV files ,and press on for AN2250SW3 ;

Which is playing the WAV file on my target board ; A Dragonfly12 MC9S12C128 40 pin DIP board from Wytec.
0 Kudos