Jump to content

MidiBox-To-Com Problem


gokhan

Recommended Posts

Hello everybody,

Can somebody please explain me step by step how to load the MIOS into the Pic Through the COM port.

I have JDM programmer, P?C 18F452, Core, LTC module. I am reading everyday the related pages but i still can not do it. So it would be great if you can explain me the process very simple.

I thank everybody who helped so far and are going to help

Best Regards,  Gokhan

Link to comment
Share on other sites

Hi  gokhan,

hope this little synopsis can help You on...

1) Loading the 'MIOS Bootstrap Loader' into the PIC:

see:

http://www.ucapps.de/mios_bootstrap.html

Open 'IC-Prog'

=> choose 'PIC 18F452' in IC-Prog

=> Load the 'MIOS Bootstrap Loader'

The bootstrap loader has to know about two important parameters: the MIDI device ID, which should be unique number in a chain of multiple MIDIboxes, and the baudrate. Currently it can be chosen between the common MIDI baudrate (31250) and the rate used by the MIDIbox-to-COM interface (38200). A third parameter allows to define the connected LCD type, so that MIOS is able to select the appropriate driver before printing a message on screen. Currently character displays (1x8, 1x16, 2x16, 2x20, 2x40, 4x16, 4x40) and KS0108-based graphical LCDs are supported, more GLCD types are planned.

Search for  the 'ID Value' in IC-Prog.

=> You need to change the 'ID Value' (bitfield ID[57-63]) for your needs:

see:

http://avi.dezines.com/mbhp/idgen.html

for example...

=> Device ID: 00

=> LCD Type: Character

=> I/O Type: LTC [RS232-Interface (Com Port / Serial RS232-Port)]

result:0000000000000100

Now that You have the right 'ID Value' in IC-Prog go ahead and program the PIC via IC-Prog and the JDM

2) Loading MIOS into the PIC:

Use the MIDIbox-to-COM interface:

PC:COM-Port<---------RS232 cable ------------> LTC-Module(stuffed with MAX232 interface)<--->J11:MidiBox Core-Module

see:

http://www.ucapps.de/midibox_to_com.html

Install the RS232 Midi interface driver on your PC (CBX serial port driver by Yamaha)

Load 'Serge's SysEx Loader, PIC18F Version'

http://www.ucapps.de/howto_tools_syxloader_18f.html

Choose the 'Serial/Com Midi-Port'  (CBX serial port driver by Yamaha)

Load Mios (this time: mios_v1_7.syx) and send the Sysex-data (the Mios-Code) to your PIC (Core-Module)

If there is a LCD connected to the Core and everything is ok 'Ready.' should appear.

Good Luck!

:-)

Greetings,

Lemonhorse

Link to comment
Share on other sites

First I want to thank you Lemonhorse for this wonderful explanation. Finally I understood it. But there is sill a problem: I installed both the Yamaha serial midi driver, when I open SysexBox then I select the yamaha ports, but there says "Midi ?n Port not ready".  Im really confused with that. ;)

Thanks for your help

Gokhan

Link to comment
Share on other sites

hi,

the midi in port problem is now solved. I had to change the port from com3 to Com1. Now in the sysexbox i load the mios sysex file and make the device id 0000000000000100 and then press th load button. A data transfer happens but nothing changes. The lcd still shows black boxes. (I reset the box) In Midiox, the data which should appear every two seconds does not appear by me. The window is all empty. Again here when i load the sysex file, some transfer happens but nothing changes.

Thank you very much

Gokhan

Link to comment
Share on other sites

Hi Gokhan  :)

Now in the sysexbox i load the mios sysex file and make the device id 0000000000000100

Your Device ID => 00

=> '0000000000000100' is just the  'ID Value' (for IC-Prog / 'MIOS Bootstrap Loader')

"Switch on the MIDIbox, wait until the "Request for Upload" SyxString (F0 00 00 7E 40 [device-id] 01 F7) appears and select the "Send SysEx" command within 2 seconds! Fortunately such a quick reaction is only necessary for OS updates - Application code can be uploaded during runtime!" (TK)

Question:

Do You receive the "Request for Upload" SyxString (F0 00 00 7E 40 [device-id] 01 F7) when You switch on the MidiBox ('MIOS Bootstrap Loader')?...

Link to comment
Share on other sites

Hi

When turn the core on then nothing happens. In midiox nothing happens and the LCD shows only one row black boxes. I guess the Pic was not burned succesfully. But i did the troubleshooting tests and the pic was ok. I don't know what the problem can be

Thank you ,

Gökhan

Link to comment
Share on other sites

Hi Gokhan,

ok, it seems that Your JDM do not work accurate.

did You checked  the 'LINKS TO JDM ISSUES'? - Maybe there is an answer to Your problem...

http://69.56.171.55/~midibox/forum/index.php?topic=1412.0

another solution:

In wich country do You live? - Maybe someone in Your country can load the  'MIOS Bootstrap Loader' into Your PIC.

I would do it (PIC Mail  ;)), but I live in germany so I don't know...

Link to comment
Share on other sites

Hi

I checked the JDM and now the Bootstrap loader is burnt into Pic and Verified. There is no problem. But when i turn the core on still nothing happens. In the LTC module I soldered only one 74HC00. the other ones place is empty. Can this play a role?

Thank you

Gökhan

Link to comment
Share on other sites

HI,

I checked the JDM and now the Bootstrap loader is burnt into Pic and Verified. There is no problem.

Fine!  :)

but when i turn the core on still nothing happens.

Again  ;):

Do You receive the "Request for Upload" SyxString (F0 00 00 7E 40 [device-id] 01 F7) when You switch on the MidiBox ('MIOS Bootstrap Loader')?...

If not:

1) is the MAX232 stuffed?

2) is the IC2 (6N138) of the CORE-Module deconnected?

3) did ya verifed the RS232 cable (right connections)?

4) did ya checked the +V5 supply voltage?

5) maybe the pot p2 (Core -Module) is out-of-position (LCD contrast).

I soldered only one 74HC00

Better use 2x 74HC00 on your LTC-Module.

One for the the Tx + Rx connection (Midi IO) AND one for the MIDI-ACTIVITY information (Midi-IN / Midi-OUT activity  - it's good to know)!

Don't lose heart!  ;)

Greetings,

Lemonhorse

Link to comment
Share on other sites

Hello,

I do not receive the "Request for upload"....when i switch the core.

1) MAX232 is stuffed

2) Optocoupler is deconnected

3) Cable is ok

4) Checked the 5V. Ok

5) contrast is ok

Shouldn't be there something going on in Midiox when I open the core. In Midiox I select the Yamaha drivers for inout and output. Then it says midi input opened and ouput opened, but only black screen after that. One thing i am not sure is that, i dont know my crystal is parallel cut. How can i check this?

Thanx

Gökhan

Link to comment
Share on other sites

Hi Gokhan,

There is a Problem in pins 25 and 26. They both must be 5V.

right.

But mine is 3.16V in Pin 25 which goes to Midi Out and 0.2 V in Pin 26 which goes to Midi ?n.

Do you get the same result on PIC Pin 25 (Tx) and 26(Rx) when the LTC-Module is deconnected from the Core-Module?

Link to comment
Share on other sites

Tx act strange...

ok let's check the crystal:

Is it possible to you to measure Pin13 (OSC) and Pin14 (OSC) with a frequency counter or oszilloskop (is the 10Mhz ok)?

OSC PIN 13 and PIN 14: Sometimes they do not oscillate because of too different 33pF condensers (some have up to 20% tolerance in value) try to take 2x equivalent '33pF' condensers (c1 and c2).

Sucessfully tested crystals:

http://69.56.171.55/~midibox/forum/index.php?topic=1338.0

Greetz,

Lemonhorse

Link to comment
Share on other sites

Hello

Thanx for your advice, but unfortunately I dont have the opportunuty to check with an oscilloscope. Today I bought another 10 Mhz crystal and the Tx voltage was again different. (0.3. V). When I went to the electronics shop I asked for "Parallel Cut" Crystal, But they just stared me and said they do not know what it means. So is how can I know that my Crystal is paralel Cut  or not? Can I maybe try the crystal with different condensers such as 22pF??

I thank you very much

Gökhan

Link to comment
Share on other sites

Hi Gokhan,

10 Mhz crystal:

-----------------------

So is how can I know that my Crystal is paralel Cut  or not?

This type of construction (with 10Mhz!) is what I use (Core-Module):

%21HC18.jpg

I think this type of construction is not working with the Core Module:

%21OSZI.jpg

Hope that anwer your question  :-\

Can I maybe try the crystal with different condensers such as 22pF??

don't think so...

Greetings,

Lemonhorse

Link to comment
Share on other sites

Hello

I my crystal is almost the same as in the picture above. I also have another one which is similar to the other one( short ) , i also tried that but it also didn't change anything. If we assume that the crystal is ok, then what else can be the problem?

Thank You very much

Gökhan

Link to comment
Share on other sites

Do u think that the PiC may be burnt or something? I tried the Rx Tx shortening and Send/Receive Sysex in Midiox, the receieved data is slightly more than the send. What does this mean?

And the 7805 heats up very well.  I am slowly loosing my energy :(

My e-mail address is www.kavadar_15@hotmail.com, i am almost every day on msn. So I will appreciate any help :)

Thank you very much

Gökhan

Link to comment
Share on other sites

Hi Gokhan,

Do u think that the PiC may be burnt or something? I tried the Rx Tx shortening and Send/Receive Sysex in Midiox, the receieved data is slightly more than the send. What does this mean?

I' don't know...

btw:

In the beginning I also had a lot of problems  :)

in one case I had a non-working soldering point (a lost ground connection) -  on another Midibox-Core I just forgot the bridge J4::(SC)<---->Pin28::PIC and so on...

So I propose that you should check all connections and Pins of the Core-Module over and over again! 

furthermore:

for now I assume, that the OSC is not working accurate - perhaps I'm wrong but, I think you should check the OSC.

Good luck again - and don't give up!

- Lemonhorse

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...