Julian07 Posted November 17, 2007 Report Share Posted November 17, 2007 Hi people, how are you? My name's Julian, and i'm a newbie from Argentina. I'll start by telling you all about my problemI made my own pcbs, according to the files I downloaded. I soldered all the stuff, burned the bootloader to my pic 18F452 with the pic burner (design also listed in main site). Till this point, we're cool. Now, the problem comes when i try to upload mios with miostudio. I plug a power supply, nice, strong and filtered. Got my 9V, got my lcd, one line black and the other blank. And when i start checking midi in and out pages, i realized that it keeps sending and receiving upload requests every 2 secs. This, i think it should stop at the time mios starts uploading, but it doesn't, making the upload to cancel on the 16th message! I tried every single thing listed on the forum, and every test, midi, core, everything, but it keeps working this way. I have some expertise in electronics, that is soldering, making pcbs, measuring voltages and all the stuff, so i managed to check the pcb, compare it with the circuit, i also checked for solderings, and i also went through all the board, and measured every single track for shorts.I dont know where to head to from here, so please, i need some help. I would really really appreciate it.Best regards for all Quote Link to comment Share on other sites More sharing options...
nILS Posted November 17, 2007 Report Share Posted November 17, 2007 AFAIK your problems could mean one or more of the following:- Most general: There's a bridge somewhere- More likely: You MIDI In on the core isn't working or not receiving any signals. Is the optocoupler dead (http://www.ucapps.de/howtodebug/mbhp_core_opto_test.gif)? Did you re-check the wiring? Try uploading MIOS w/o "smart mode" and see if it'll work (it won't cancel the upload even though there's upload requests) Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 17, 2007 Author Report Share Posted November 17, 2007 Hi nILS Podewski. I did check both the optocoupler and the tracks, several times, 4 to be exact. Also bought another pic, and programmed with bootloader, still happens the same. I also uploaded w/o smart mode, and happens exactly the same! Thanks, regards Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 17, 2007 Author Report Share Posted November 17, 2007 Hi nILS Podewski. I did check both the optocoupler and the tracks, several times, 4 to be exact. Also bought another pic, and programmed with bootloader, still happens the same. I also uploaded w/o smart mode, and happens exactly the same! Thanks, regardsIt cancels the upload, whether i use smart mode or not, on the 16th msg! Quote Link to comment Share on other sites More sharing options...
Dave_Wheeler Posted November 17, 2007 Report Share Posted November 17, 2007 Hi Julian,Well done for getting so far.The first test I would do is the documented test with just an LED and a series resistor. This will certainly show if there is a polarity issue (DIN socket connections) or if there is actually a MIDI signal getting to the board.What is the exact Opto Coupler you have used ?Good LuckDave Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 17, 2007 Author Report Share Posted November 17, 2007 hi dave, i'll check the led thing, though i did something similar. I'll tell you later how it went. I'm using 6N138. Thanks a lot! Quote Link to comment Share on other sites More sharing options...
nILS Posted November 17, 2007 Report Share Posted November 17, 2007 You could just unplug the MIDI out of the Core - this way, no more upload requests. Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 17, 2007 Author Report Share Posted November 17, 2007 Ok, nils. You say that i should only plug the core's midi in, and send mios w/o smart mode? Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 17, 2007 Author Report Share Posted November 17, 2007 Ok, nils. You say that i should only plug the core's midi in, and send mios w/o smart mode?Tried it, nothing happened. Still the same... Quote Link to comment Share on other sites More sharing options...
nILS Posted November 17, 2007 Report Share Posted November 17, 2007 You might wanna join the chat - that makes it a lot easier :DErm, how can you have NO MIDI OUT from the Core connected and still get upload requests? ??? Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 17, 2007 Author Report Share Posted November 17, 2007 i will join the chat. I meant miostudio reported te upload, but when i reset the core, nothing new happened Quote Link to comment Share on other sites More sharing options...
nILS Posted November 18, 2007 Report Share Posted November 18, 2007 *IF* the upload succeeded the PIC will be reset automatically. Quote Link to comment Share on other sites More sharing options...
nILS Posted November 18, 2007 Report Share Posted November 18, 2007 As SmashTV just kindly pointed out, trying to upload the wrong MIOS version will give you the same error. Hence the question: What .hex file are you trying to upload? Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 18, 2007 Author Report Share Posted November 18, 2007 I use mios_v1_9f_pic18f452.hex, which i think it's the last version. The thing is, when the upload starts, shouldn't the "upload request every 2 secs" stop? Quote Link to comment Share on other sites More sharing options...
nILS Posted November 18, 2007 Report Share Posted November 18, 2007 Yes, it should, IF the upload makes it to the Core.Do your PICs have different device IDs? You have to select the correct one or the upload never reaches the PIC. Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 18, 2007 Author Report Share Posted November 18, 2007 But i have read around that if i dont change it, it will always be 0, right? As i'm a newbie, i tried to stay away from that stuff, cuz i'm starting with a basic kit, and i won't use more than one core. Quote Link to comment Share on other sites More sharing options...
sparx Posted November 18, 2007 Report Share Posted November 18, 2007 How long after switch on are you sendingthe code?Seem to recall having to send the sysex very quickly after the power is applied to the core.But it has been a while and things sure change fast around here!Hope that helps?RegardsSparx Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 18, 2007 Author Report Share Posted November 18, 2007 But if i use a basic config, it should always be 0, right? I came to the conclussion that my core is not receiving midi data. I tried to upload mios via sysex, using hex2syx and sysexbox, and it happens exactly tha same. going to check the rx path again.Thanks a lot for your help, i'll let you know how it worked later Quote Link to comment Share on other sites More sharing options...
nILS Posted November 18, 2007 Report Share Posted November 18, 2007 Sparx: He only has the bootstap on the PIC - this gives him an upload request every 2 seconds, so it doesn't matter when you start the upload.Julian: Try setting the deviceID in MIOS Studio to other values. If that doesn't help, you MIDI In is most likely not working at all. Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 18, 2007 Author Report Share Posted November 18, 2007 Ok, tried to upload via sysexbox, and it seemed nothing changed. I try the to upload via miostudio, and the message has changed. it's now Received unexpected MIOS SysEx message = 00007E400001F7 expected = 00007E4001.Have i given a step forward or backwards? Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 18, 2007 Author Report Share Posted November 18, 2007 Ok, tried to upload via sysexbox, and it seemed nothing changed. I try the to upload via miostudio, and the message has changed. it's now Received unexpected MIOS SysEx message = 00007E400001F7 expected = 00007E4001.Have i given a step forward or backwards?my mistake, sorry. i noticed that message changed because of the device id... Quote Link to comment Share on other sites More sharing options...
Julian07 Posted November 18, 2007 Author Report Share Posted November 18, 2007 Well, here's where i'm standing. I measured the midi out from my usb adapter, and found out that the voltage is very low to make the optocoupler run. I'm taking one of these ways: I'll find an optocoupler that needs less input signal to run, or i'll get a soundcard. Thanks a lot for your help, i'm very grateful. And again, i'll let you know how things are around here. Quote Link to comment Share on other sites More sharing options...
TK. Posted November 20, 2007 Report Share Posted November 20, 2007 Which USB interface are you using? (just for the records)Best Regards, Thorsten. 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.