gokhan Posted March 13, 2005 Report Share Posted March 13, 2005 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 helpBest Regards, Gokhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 13, 2005 Report Share Posted March 13, 2005 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.htmlOpen '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.htmlfor 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.htmlInstall 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.htmlChoose 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 Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 13, 2005 Author Report Share Posted March 13, 2005 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 helpGokhan Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 13, 2005 Author Report Share Posted March 13, 2005 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 muchGokhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 14, 2005 Report Share Posted March 14, 2005 Hi Gokhan :)Now in the sysexbox i load the mios sysex file and make the device id 0000000000000100Your 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')?... Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 14, 2005 Author Report Share Posted March 14, 2005 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 beThank you ,Gökhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 14, 2005 Report Share Posted March 14, 2005 ok,I guess the Pic was not burned succesfully.Did IC-Prog (IC-Prog => 'MIOS Bootstrap Loader') verified the PIC data? No:We have to focus on the JDM...Yes:we should take a look at the LTC- Module:http://www.ucapps.de/mbhp_ltc.html Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 14, 2005 Author Report Share Posted March 14, 2005 H?,When I verify the Pic it says "Verify failed at 0000h!" . I hope that the Pic is not burnt :-\ThanxGokhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 14, 2005 Report Share Posted March 14, 2005 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.0another 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... Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 14, 2005 Author Report Share Posted March 14, 2005 HiI 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 Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 14, 2005 Report Share Posted March 14, 2005 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 74HC00Better 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 Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 14, 2005 Author Report Share Posted March 14, 2005 Hello,I do not receive the "Request for upload"....when i switch the core. 1) MAX232 is stuffed2) Optocoupler is deconnected3) Cable is ok4) Checked the 5V. Ok5) contrast is okShouldn'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?ThanxGökhan Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 14, 2005 Author Report Share Posted March 14, 2005 HelloI controlled again the voltage across the Pins. There is a Problem in pins 25 and 26. They both must be 5V. 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. Thank You very muchGökhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 14, 2005 Report Share Posted March 14, 2005 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? Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 15, 2005 Author Report Share Posted March 15, 2005 Hello I looked again;Only Core: Tx=0.5V, Rx=5V LTC Attached: Tx=3.2V, Rx=5V The other Voltages at the pins are ok. Thank youGökhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 15, 2005 Report Share Posted March 15, 2005 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.0Greetz,Lemonhorse Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 15, 2005 Author Report Share Posted March 15, 2005 HelloThanx 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 muchGökhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 16, 2005 Report Share Posted March 16, 2005 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):I think this type of construction is not working with the Core Module:Hope that anwer your question :-\Can I maybe try the crystal with different condensers such as 22pF??don't think so...Greetings,Lemonhorse Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 16, 2005 Author Report Share Posted March 16, 2005 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 muchGökhan Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 16, 2005 Author Report Share Posted March 16, 2005 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 muchGökhan Quote Link to comment Share on other sites More sharing options...
lemonhorse Posted March 16, 2005 Report Share Posted March 16, 2005 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 Quote Link to comment Share on other sites More sharing options...
gokhan Posted March 17, 2005 Author Report Share Posted March 17, 2005 HiToday i tried the Pic 16F877 with a 20 MHz crystal but the problem is the same. :( Now i have "0" Voltage at Tx. Now I think something with the Pcb is wrong and i am going to make another one.Thank youGökhan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.