kenneth wikeroey

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

Discussion created by kenneth wikeroey on Sep 2, 2006
Latest reply on Sep 2, 2006 by kenneth wikeroey
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 ....

Outcomes