Page 1 of 1

Megadrum interface code size

PostPosted: Tue Jan 11, 2011 5:44 pm
by kooroshi60
Megadrum USBMIDI connects and disconnects all the time when I burn the compiled source code into Pic18f2550 using Mplab C18 compiler. But it works fine with the Firmware V2.

The generated Hex file by C18 is 1703kb bigger than pic18f2550-12MHz V2 firmware.
The board I have made has a 12 MHz resonator. I added these files to C18 in order to generate the Hex file.
Main.c
Usb.c
Usb_descreptors.c
Usb_device.c
Usb_function_audio.c

This is the only error I see during compiling: (But the build is successful)
D:\ SOURCE CODE MEGADRUM\ main.c:197:Warning [2058] call of function without prototype

Can anyone tell me what can be the problem? Can the Hex size have effect on the function of Megadrum interface?

Thank you in advance.

Re: Megadrum interface code size

PostPosted: Wed Jan 12, 2011 8:04 pm
by kooroshi60
Does the code size matter at all? Or I have to use another compiler in order to get smaller hex?!

Re: Megadrum interface code size

PostPosted: Wed Jan 12, 2011 8:18 pm
by dmitri
I recommend you to ask about MPLAB and C18 problems in http://www.microchip.com/forums/

Re: Megadrum interface code size

PostPosted: Thu Jan 13, 2011 8:17 am
by kooroshi60
Trovato!

The problem was the windows driver. Every thing is working fine now.
Thank you Dmitri. You are a genius. I love the MegaDrum. Works perfectly with Roland gears.

Cheers.