nsunier Posted February 29, 2008 Report Share Posted February 29, 2008 Hello,I'm a newbie with MIDIBOX but have good knowledge of electronic.I ordered kits from Smash's TV and PIC from Microchip. I've burned my PIC (18F4620) successfuly with my Forest Electronics USB Prog'r+ programmer. The burning software has a verify function which told me that it was allright. :)I use the CORE module alone (in order to avoid other problems). I use a DC laboratory stabilised power supply (9V). The power consumption is of about 50mA.I use MIOS Studio beta7. I configure MIDI IN/OUT. I receive every 2 seconds:Sysex message: F0 00 00 7E 40 00 01 F7I select the HEX file corresponding to the 18F4620:mios_v1_9f_pic18f4620.hexIn MIOS Studio, I click on "Wait for upload request before starting upload" and "Smart Mode - Use feedback from core". Then I switch OFF the PSU and click on "Start". After that I switch ON the PSU and get the following messages:Starting upload of mios_v1_9f_pic18f4620.hexHex file contains code in MIOS range, forcing reboot!Received Upload RequestSending block 00000400-000004FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestAborting after 16 errorsThe MIDI IN monitor continues (also during transfer) to show every 2 seconds:Sysex message: F0 00 00 7E 40 00 01 F7I've tried several checks (I've read the MIDI Interface Troubleshooting page):- all the resistors/diodes are correct- the debug LED on Rx works well- when I remove the PIC and short Rx and Tx on PIC socket the emitted data are shown on MIDI IN monitorSo I've plugged a digital scope on Rx (red) and Tx (blue) pins. See attached files...Thanks in advance for your help/ideas.nsunier Quote Link to comment Share on other sites More sharing options...
nsunier Posted February 29, 2008 Author Report Share Posted February 29, 2008 Another plot... Quote Link to comment Share on other sites More sharing options...
stryd_one Posted February 29, 2008 Report Share Posted February 29, 2008 I've tried several checks (I've read the MIDI Interface Troubleshooting page):How'd the optocoupler test go? Would you mind posting the results of all of those tests?This smells like another dodgy midi interface... Quote Link to comment Share on other sites More sharing options...
nsunier Posted February 29, 2008 Author Report Share Posted February 29, 2008 TEST PROG1: OK Done with the Forest Electronics USB Prog'r+ programmer software.If you are not sure that the bootstrap loader has been burned successfully, use the verify function of IC-Prog/P18TEST CORE1: OK I've measured the 10MHz by the mean of a scope.ensure that you've stuffed a 10 MHz crystal (parallel cut) to your PIC18F core moduleTEST CORE2: N/Aonly relevant for MBHP_CORE_V1 and MBHP_CORE_V2 PCB: are all 5 jumpers connected to the programming port?TEST CORE3: OKCheck it visually for bad solderings or missed junctionsTEST CORE4: OK 5V measured on each test point -> VDD OK.Check Vdd of the power supply.TEST CORE5: OK 5V measured on each test point -> ground OKCheck the ground of the power supply.TEST CORE6: OK (There is a mistake in the mbhp_core_extract_midi_plugs.gif file: 2x M- for MIDI Out !?)Check the polarity of your MIDI plugs.TEST CORE7: OKCheck the polarity of the protection diode D1.TEST CORE8: OKCheck the resistor values at the MIDI Out Port: R8 and R7=220 Ohm (resistor code: red-red-brown)TEST CORE9: OK? My cables are 1:1 (pin 1 = pin 1; pin 2 = pin 2; ...). On the mbhp_core_midi_crosslink.gif file: pin 4 = pin 5; pin 5 = pin 4 !?Just to ensure: this diagram shows a crosslink between the core module and your PC:TEST CORE10: OKIf you notice a lot of request messages like shown in this snapshot, then there is a short circuit between the Rx and Tx pin of the PIC. Check the tracks which are routed from the MIDI-Link port J11 to the Rx/Tx pins for direct connections (see the layout and schematic), you could scratch with a screw driver between the tracks to ensure that they are not connected together.TEST CORE11: OKThe code upload can also fail if no, or a too small bypass cap is connected to the power rails of the PIC. A possible effect is, that for example "F0 F0 F0 F0 7E F0 00 01" will be sent by the PIC instead of the proper SysEx string "F0 00 00 7E 40 ... F7". Another effect could be, that something is received by your MIDI interface, but not displayed by the MIDI monitor because of the invalid MIDI event structure. This all can happen even when the IO and Software loopback test which is discussed below is passing,If this happens, check that the 2200 uF cap (C5 of the core module) is soldered properly. If you are unsure about the state of the cap, since you've re-used it from an old device, try another one.If you are using the optimized PSU for MIDIbox SID, bypass the outer pins of the (not mounted) 7805, so that C5 has contact with the +5V/Ground rails (see also mbhp_4xsid_c64_psu_optimized.pdf)!TEST OUT1: OK A small pulse occurs every 2 seconds.Connect a LED to your MIDI Out port and check if it flickers: mbhp_core_extract_out_led.gifTEST OUT2: OK good quality PSUSomebody noticed in the forum, that the MIDI Out of his core module didn't work because of an "incompatibility issue" with the bench supply he used and the switching PSU of his PC. The solution was to disconnect the middle pin of J12 (ground line of MIDI Out port)TEST PC1: OK Checked with two different MIDI I/O interface.check the MIDI-Ox configuration - have you select the correct ports?TEST PC2: OK? Please look at the attached files... Is it correct or not?ensure that the MIDI interface of your computer is working: loopback the MIDI Out of your PC to the MIDI In of your PC and send any SysEx dump by using the "Send/Receive SysEx" function of MIDI-Ox. The number of sent bytes must match with the number of received bytes. If it doesn't match, search for a new driver for your MIDI interface/sound card. If not available, you can possibly fix this problem by lowering the Low Level Output Buffer size (normaly set to 2048) and by increasing the output delay (normaly set to 0 ms) in the MIDI-Ox SysEx configuration menuThe next test/check results will be posted as soon as possible...This smells like another dodgy midi interface...I've tried with two MIDI I/O interfaces:Behringer BCA2000M-Audio Keystation Pro 88 (I can't use it's MIDI OUT port since it sends a alive message every few seconds) Quote Link to comment Share on other sites More sharing options...
stryd_one Posted February 29, 2008 Report Share Posted February 29, 2008 Before I start, I have to say: All newbies take note. This is a great example of how to do troubleshooting posts. We were just talking about this post in the chat. Thanks nsunier :)TEST PC2: OK? Please look at the attached files... Is it correct or not?Nah that's no good... This does suggest a faulty midi interface on the PCBut... what's the BCA2k got to do with it?I've tried with two MIDI I/O interfaces:Behringer BCA2000M-Audio Keystation Pro 88 (I can't use it's MIDI OUT port since it sends a alive message every few seconds)Those are controllers.... The midi interface means the thing on your pc :) (OK, these controllers have a midi interface of course, but I mean the PC midi interface... that's a common abbreviation I guess?)Uhm... how do these devices come into play here? It should be just the core plugged straight into your PC's midi interface... Quote Link to comment Share on other sites More sharing options...
stryd_one Posted February 29, 2008 Report Share Posted February 29, 2008 (There is a mistake in the mbhp_core_extract_midi_plugs.gif file: 2x M- for MIDI Out !?)Well spotted... TK would you mind fixing this for us?TEST CORE9: OK? My cables are 1:1 (pin 1 = pin 1; pin 2 = pin 2; ...). On the mbhp_core_midi_crosslink.gif file: pin 4 = pin 5; pin 5 = pin 4 !?Uhm... maybe that one, too! Quote Link to comment Share on other sites More sharing options...
nsunier Posted February 29, 2008 Author Report Share Posted February 29, 2008 Those are controllers.... The midi interface means the thing on your pc :) (OK, these controllers have a midi interface of course, but I mean the PC midi interface... that's a common abbreviation I guess?)Uhm... how do these devices come into play here? It should be just the core plugged straight into your PC's midi interface... Just to explain: My PC doesn't have any MIDI I/O connectors. Yes, on motherboard, there is the game port (= MIDI I/O) but I don't have the adapter to plug into. So I have an external sound card with one MIDI IN port and 2 MIDI OUT ports: the Behringer BCA2000. On other hand I have a MIDI controller/keyboard which have one MIDI IN port and one MIDI OUT port: the M-Audio Keystation Pro 88. Both of them are connected to the PC by the mean of USB. Both of them could be used as MIDI IN/OUT interface. They are listed in MIDI-OX (see attached file...) Quote Link to comment Share on other sites More sharing options...
nsunier Posted February 29, 2008 Author Report Share Posted February 29, 2008 When I do a loopback between M-Audio Keystation Pro 88 IN and OUT ports:M-Audio Keystation Pro 88 (I can't use it's MIDI OUT port since it sends a alive message every few seconds)Here is an attached plot of the M-Audio Keystation Pro 88 MIDI IN port. (alive message = Active Sensing)Now, I do a loopback between BCA2000 OUT and Keystation Pro 88 IN and send a SysEx message (see attached files...). The three screeshots show always the beginning of OUT monitor and the beginning, the first known events and the first SysEx data on IN monitor.Perhaps the BCA2000 MIDI interface is crappy?! Quote Link to comment Share on other sites More sharing options...
/tilted/ Posted February 29, 2008 Report Share Posted February 29, 2008 TEST OUT2: OK good quality PSUSomebody noticed in the forum, that the MIDI Out of his core module didn't work because of an "incompatibility issue" with the bench supply he used and the switching PSU of his PC. The solution was to disconnect the middle pin of J12 (ground line of MIDI Out port)Sorry to drift, but when did this happen? I can absolutely understand there may be a significant ground potential difference between (say) a core and a PC switching supply.What I do have trouble with is that this should cause an error on a MIDI line, which could be remedied by lifting the ground at the Tx end.The MIDI spec is quite clear that MIDI INPUT ports should NOT have their ground pins connected. This was done to reduce the likelyhood of ground loops, which can produce a sound like AC mains hum, and what's worse, can corrupt data. Also this serves to reduce the very real likelyhood of quite high ground potential difference when using switching PSUs, though this was probably not a main concern when the spec was written.My point is, the PC MIDI in connector in this other case was not built to the spec.Shock, horror. ::) Quote Link to comment Share on other sites More sharing options...
stryd_one Posted March 1, 2008 Report Share Posted March 1, 2008 Both of them are connected to the PC by the mean of USB. Both of them could be used as MIDI IN/OUT interface.Ahhh!! Sorry man, I'm with ya now :)The MIDI spec is quite clear that MIDI INPUT ports should NOT have their ground pins connected. This was done to reduce the likelyhood of ground loops, which can produce a sound like AC mains hum, and what's worse, can corrupt data. That's true, in fact I just was reading that page before I read this one. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted March 1, 2008 Report Share Posted March 1, 2008 (alive message = Active Sensing)I'm familiar with active sense messages (my k5k sends them too). They should just be ignored (by you and the reciever)Perhaps the BCA2000 MIDI interface is crappy?!Actually they both look crappy - what's (supposedly) going out, is totally different to what's coming in..... It's pretty common for midi interfaces to work fine until you try to send sysex :( Quote Link to comment Share on other sites More sharing options...
nsunier Posted March 1, 2008 Author Report Share Posted March 1, 2008 The Problem seems to be solved! :)I've tried several MIDI configurations with my two MIDI I/O interfaces without any success. I've to admit that they are both crappy interfaces.My PC motherboard doesn't have any Game Port interface. But I was reminded that I have an old Creative Sound Blaster Live! 5.1 Digital sound card. The problem is that I've already another Creative X-Fi XtremeMusic plugged into my PC. I've tried many times to reinstall drivers from both Live! and X-Fi installations CDs. It has generated many problems. It made me crazy! Finally the Game Port appeared in Control Panel but no extra MIDI I/O ports in MIDI-OX...At the end I've tried to install with success alternate drivers: kX Project. Now I've one more MIDI IN port and one more MIDI OUT port in MIDI-OX. I plugged my Game Port - MIDI cable, I made a loopback connection and launch a SysEx transfer... Exactly the same content! Wow, what's a great new!So I connect the CORE module, launch MIOS Studio beta7 and retry: I click on "Wait for upload request before starting upload" and "Smart Mode - Use feedback from core". Then I switch OFF the PSU and click on "Start". After that I switch ON the PSU and... It's fully successful. Yes!Many thanks for your precious help! ;)Please tell me how can I modify the title of this topic in order to add: [sOLVED]?Just an extra question: I've already planned to buy a specific MIDI I/O card. My choice was until now a M-Audio MIDISPORT 2x2. Do you think it's a good choice? (It's the same manufacturer as for my keyboard...:-\) Advise me what model you buy? I want one or two IN/OUT; I want USB interface; I want a small box; I want a not too expensive price; I want a reliable interface (even for SysEx). Quote Link to comment Share on other sites More sharing options...
nILS Posted March 1, 2008 Report Share Posted March 1, 2008 Congrats!Just edit your original post and change the topic to "[solved] Impossible to upload MIOS" ;) Quote Link to comment Share on other sites More sharing options...
stryd_one Posted March 1, 2008 Report Share Posted March 1, 2008 Yay! Fixed!I can smell bad midi interfaces from the wrong side of the planet. They're stinnnnky!Just an extra question: I've already planned to buy a specific MIDI I/O card. My choice was until now a M-Audio MIDISPORT 2x2. Do you think it's a good choice? Yep definitely. A few people here have them and they're known to work well, and are the standard "get this one" advice that gets handed out. Quote Link to comment Share on other sites More sharing options...
nILS Posted March 1, 2008 Report Share Posted March 1, 2008 I have one and it works really nice *most of the time*. I have to disconnect it every once in a while though. But this is most likely a driver problem rather than a hardware problem. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted March 1, 2008 Report Share Posted March 1, 2008 That'll be stinky stinky USB. Pooh! Quote Link to comment Share on other sites More sharing options...
TK. Posted March 1, 2008 Report Share Posted March 1, 2008 Well spotted... TK would you mind fixing this for us?it's fixed now...Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted March 1, 2008 Report Share Posted March 1, 2008 Thankyou sir :) Quote Link to comment Share on other sites More sharing options...
/tilted/ Posted March 2, 2008 Report Share Posted March 2, 2008 Just an extra question: I've already planned to buy a specific MIDI I/O card. My choice was until now a M-Audio MIDISPORT 2x2. Do you think it's a good choice? (It's the same manufacturer as for my keyboard...:-\) Advise me what model you buy? I want one or two IN/OUT; I want USB interface; I want a small box; I want a not too expensive price; I want a reliable interface (even for SysEx).I have a MIDISPORT 4x4. also good.P.S.I think there are a few manufacturers out there, or perhaps some OEM suppliers, who are making horrible USB midi devices very cheaply.I hear a lot of stories about people with these multi-purpose interfaces (ie, an interface which is also a keyboard, or a mix controller).Perhaps we (I?) need to start a Wiki entry about this... wait! there is one!http://www.midibox.org/dokuwiki/midi_interface_blacklist Quote Link to comment Share on other sites More sharing options...
stryd_one Posted March 3, 2008 Report Share Posted March 3, 2008 Perhaps we (I?) need to start a Wiki entry about this... wait! there is one!http://www.midibox.org/dokuwiki/midi_interface_blacklistUpdated to add these two models. Quote Link to comment Share on other sites More sharing options...
/tilted/ Posted March 3, 2008 Report Share Posted March 3, 2008 Perhaps it would also be constructive for us to have a list of models which do work? Quote Link to comment Share on other sites More sharing options...
stryd_one Posted March 3, 2008 Report Share Posted March 3, 2008 Do it :)I think they should contain links to each other, and perhapsa preamble suggesting that people include information or links to it, regarding their situation. It's not uncommon for the same interface to have varied results on different machines or setups or situations etc... 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.