ChrisHipgrave Posted November 1, 2006 Report Share Posted November 1, 2006 Hi,I'm having some trouble uploading MIOS to my CORE. I'm getting the following errors:Starting upload of mios_v1_9c_pic18f452.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 errorsI'm using a preloaded PIC from SmashTV and am trying to upload the "mios_v1_9c_pic18f452.hex" file.I've seen that Toneburst has the same problem but he had a different error with the same file, i think that he solved the problem by getting a new optocoupler. Will i also need to do that?Thank youChris Quote Link to comment Share on other sites More sharing options...
TK. Posted November 1, 2006 Report Share Posted November 1, 2006 Hi Chris,it can have various reasons - either the MIDI In of your Core is not working, or the MIDI Out of your PC. It could be a software driver of your MIDI interface, swapped pins on the MIDI In plug, a bad soldering joint, etc...I've written down some tests which help you to debug this: http://www.ucapps.de/howto_debug_midi.htmlIf they don't help, please write down the test IDs and the appr. results - maybe this could give somebody a hint about what is going on.Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 1, 2006 Author Report Share Posted November 1, 2006 Thanks for the reply.I do not seem to be getting 5v from pins 20(0.3v) ad 26(1.3v) of IC1 when the SID and CORE are connected. When they are not i get 5v from pin 20.Could this be why? How can i fix it?Another question:When turned on my boards sometimes make a sizzling sound, is this anything to worry about?Thank youChris Quote Link to comment Share on other sites More sharing options...
TK. Posted November 1, 2006 Report Share Posted November 1, 2006 Hm, this sounds really bad, it could be that you've already destroyed the chips! (I don't hope so!)Especially the sizzling sound... hm :-/It wasn't a good idea to connect both modules together before doing the first voltage checks as proposed in the walkthrough (http://www.ucapps.de/midibox_sid_walkthrough.html), now it will be really difficult and time intensive.I haven't so much time this evening to give you support, but maybe somebody else? I can only say: it makes sense to remove the SID module and to check the core stand-alone.Check it visually, try to find out, which tracks have the expected voltage, which not (then you know where a short could be located), check your PCB against the schematic...If you have luck, the SID is not affected and will still work.Read also the other articles in this forum, there are guys who had similar problems and got an intensive amount of tips - such "stories" could help you to understand the effects better (unfortunately nobody ever wrote a summary about this, but it would be worth a wiki page)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 2, 2006 Author Report Share Posted November 2, 2006 Ok, i've changed resistor 9 and now i'm getting 1.7v from pin 20 and 5v from everywhere else shown in mbhp_core_extract_measuring_vdd.gif.The schematic doesn't show anything else is connected to pin 20, does this mean that the board is broken somewhere? Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 2, 2006 Author Report Share Posted November 2, 2006 Hi,Now i've changed both resistors 9 and 10. I'm now getting 4v in pin 20 so i thought i'd try uploading MIOS again. This time i got a different set of errors:Starting upload of mios_v1_9c_pic18f452.hexHex file contains code in MIOS range, forcing reboot!Received Upload RequestSending block 00000400-000004FFReceived Checksum: 1D - OKSending block 00000500-000005FFReceived Checksum: 4D - OKSending block 00000600-000006FFReceived Checksum: 11 - OKSending block 00000700-000007FFReceived Checksum: 0D - OKSending block 00000800-000008FFReceived Checksum: 1A - OKSending block 00000900-000009FFReceived Checksum: 61 - OKSending block 00000A00-00000AFFReceived Checksum: 4B - OKSending block 00000B00-00000BFFReceived Checksum: 1E - OKSending block 00000C00-00000CFFReceived Checksum: 68 - OKSending block 00000D00-00000DFFReceived Checksum: 09 - OKSending block 00000E00-00000EFFReceived Checksum: 36 - OKSending block 00000F00-00000FFFReceived Checksum: 63 - OKSending block 00001000-000010FFReceived Checksum: 78 - OKSending block 00001100-000011FFError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorThis was an expected error - please ignore!Error: Received unexpected Upload RequestSending block 00001000-000010FFReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorSending block 00000800-000008FFError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestSending block 00000600-000006FFReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestReceived error code 0B: MIDI IN Overrun ErrorError: Received unexpected Upload RequestSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorSending block 00000500-000005FFError: Received unexpected Upload RequestSending block 00000500-000005FFReceived error code 0B: MIDI IN Overrun ErrorAborting after 16 errorsLooks to me like it almost worked, does anyone know what could be wrong now? Is it still to do with pin 20? TK?edit: i've just realised that i sometimes get 4v from pin 20 and sometimes it's 1.7v!Thank youChris Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 2, 2006 Author Report Share Posted November 2, 2006 I tried it again and now the MIDI in window is coming up with the following message:00000000036694 ms | [FF] System Reset00000000043710 ms | [FF] System Reset00000000053522 ms | [FF] System ResetCan anyone shed any light onto this?Thank youChris Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 3, 2006 Report Share Posted November 3, 2006 Brown Out Reset? fixed_bor_setup Quote Link to comment Share on other sites More sharing options...
toneburst Posted November 3, 2006 Report Share Posted November 3, 2006 Hi Chris,sorry to hear about your troubles.I actually only got one of my two Core boards working. The other one is still giving 'Unexpected Upload Requests' all the time, so I guess the MIDI In isn't working at all.Changing the optocoupler did work on the SmashTV board, but the Mike's MIDIShop one still didn't work, even with the optocoupler that worked in the other one.:(I tried it again and now the MIDI in window is coming up with the following message:00000000036694 ms | [FF] System Reset00000000043710 ms | [FF] System Reset00000000053522 ms | [FF] System ResetIt certainly looks like a power-related issue here.I'd test the voltages at the Core PIC socket again, and if you're not getting the right readings here, my (completely uneducated) guess is you're not providing enough power to the PIC and you might have some blown components somewhere.Alexhttp://www.toneburst.net Quote Link to comment Share on other sites More sharing options...
TK. Posted November 4, 2006 Report Share Posted November 4, 2006 I also think that this is a power problem - we had the same case some time ago. Chris: what are the specs of your Power Supply unit? (Voltage/Ampere)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 4, 2006 Author Report Share Posted November 4, 2006 Chris: what are the specs of your Power Supply unit? (Voltage/Ampere)I'm getting 5.18v DC from the 5v and 14.18v DC from the 14v.With the multimeter on the current setting it's reading 0. Is that right?Thank youChris Quote Link to comment Share on other sites More sharing options...
TK. Posted November 4, 2006 Report Share Posted November 4, 2006 So, you are using the optimized C64 PSU circuit? Did you connect the 5V at J2 or J1 (J2 would be the right one here, and note that the 7805 has to be removed in this case!)Current drain of 0 doesn't sound correct. To measure it, you have to remove one supply cable (e.g. the 5V connection), and you have to place the multimeter in between the break.You should measure ca. 7.5 mA w/o the PIC, and ca. 25 mA with the PIC. During code upload, you will measure short peaks of ca. 30 mABest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 4, 2006 Author Report Share Posted November 4, 2006 So, you are using the optimized C64 PSU circuit? Did you connect the 5V at J2 or J1 (J2 would be the right one here, and note that the 7805 has to be removed in this case!)Current drain of 0 doesn't sound correct. To measure it, you have to remove one supply cable (e.g. the 5V connection), and you have to place the multimeter in between the break.You should measure ca. 7.5 mA w/o the PIC, and ca. 25 mA with the PIC. During code upload, you will measure short peaks of ca. 30 mABest Regards, Thorsten.Yep the optimized PSU and j2 and the 7805 has been removed and the holes bridged.I wasn't measuring the current correctly before, but i snipped the +5v cable and measured the break and still 0mA.Chris Quote Link to comment Share on other sites More sharing options...
TK. Posted November 4, 2006 Report Share Posted November 4, 2006 There must still something wrong, maybe the ground is not connected to the core, or the multimeter is not in the right mode. You could try this out by measuring the current through the power LED, it should be about 10 mABest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 4, 2006 Author Report Share Posted November 4, 2006 Oh yeah, sorry i had the multimeter on the wrong setting.I'm getting a reading of about 14mA without the PIC and about 100mA with, this is wrong is it?Thank youChris Quote Link to comment Share on other sites More sharing options...
TK. Posted November 4, 2006 Report Share Posted November 4, 2006 Sounds like two PIC pins are connected together, one outputs 0V, the other 5VPotential candidates are:[tt] Name | Class | Core Port | Dir | additional informations------+-------+-----------+-----+--------------------------------------------- RC0 | B | J6/J7:RC | O | used to address the AIN multiplexers or the | | | | MF module. In both cases driven by an | | | | interrupt service routine. | | | | RC1 | B | J6/J7:SC | O | used to address the AIN multiplexers or the | | | | MF module. In both cases driven by an | | | | interrupt service routine. | | | | RC2 | C | J6:SI | O | used to address the AIN multiplexers, driven | | | | by an interrupt service routine. | | | | This pin is stuffed with an external 10k | | | | pull-up which could be useful for an | | | | application which uses this pin as input | | | | RC3 | D | J7:SO | O | used as serial output to the MF module, driven | | | | by an interrupt service routine. | | | | RD0 | E | J8:SO | O | serial output to the DOUT chain, driven by an | | | | interrupt service routine if MIOS_SRIO active | | | | RD2 | F | J8/J9:RC | O | serial latch output, used by an interrupt | | | | service routine if MIOS_SRIO active | | | | RD3 | F | J8/J9:SC | O | serial clock output, used by an interrupt | | | | service routine if MIOS_SRIO active | | | | RC4 | G | J10:RC | O | free for applications without restrictions | | | | if second CLCD not used | | | | RC5 | G | J10:SO | O | free for applications without restrictions | | | | RD4 | E | J10:SO | O | touch sensor strobe signal, used by an | | | | interrupt service routine if MIOS_SRIO | | | | active and TS_Sensitivity > 0 | | | | RD5 | H | J10:MD | O | address signal to LCD, clock output to | | J15:RS | | BankStick | | | | RD6 | H | J10:MD | O | RW signal to LCD | | J15:RW | | | | | | RD7 | I | J15:E | O | enable signal to LCD (exclusive!) | | | | RB0 | J | J15:D0 | IO | LCD data line #0 RB1 | J | J15:D1 | IO | LCD data line #1 RB2 | J | J15:D2 | IO | LCD data line #2 RB3 | J | J15:D3 | IO | LCD data line #3 RB4 | J | J15:D4 | IO | LCD data line #4 RB5 | J | J15:D5 | IO | LCD data line #5 RB6 | J | J15:D6 | IO | LCD data line #6 RB7 | J | J15:D7 | IO | LCD data line #7[/tt]The same could happen, if one of these pins is connected to ground or 5VBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 4, 2006 Author Report Share Posted November 4, 2006 ok so i checked all the pins in the list and re-soldered a dodgy resistor. The pins were not touching each other and the board is from SmashTV so the connections cannot be wrong, can they?Tried it again and now i'm getting 4.5mA without the PIC and around 90mA with. Quote Link to comment Share on other sites More sharing options...
TK. Posted November 4, 2006 Report Share Posted November 4, 2006 Thats still too much, it should be 25 mA w/ PICBest Regards, Thorsten., Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 5, 2006 Author Report Share Posted November 5, 2006 I've checked all the pins and they seem fine. Is there anything else it could be?Thank youChris Quote Link to comment Share on other sites More sharing options...
TK. Posted November 12, 2006 Report Share Posted November 12, 2006 I think that under these circumstances, it makes sense to send the board to an expert for further analysis.Did you buy the core module from Mike or SmashTV?SmashTV would propably check the board by himself, in case you bought it from Mike, just send it to meBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
ChrisHipgrave Posted November 21, 2006 Author Report Share Posted November 21, 2006 Current drain of 0 doesn't sound correct. To measure it, you have to remove one supply cable (e.g. the 5V connection), and you have to place the multimeter in between the break.You should measure ca. 7.5 mA w/o the PIC, and ca. 25 mA with the PIC. During code upload, you will measure short peaks of ca. 30 mAHi,So, i got a new CORE module from SmashTV and i've built it up.I checked my PSU again and i'm getting 5.15v and 14.18v.The first thing i tested was the current from the 5v of the PSU to vd of the CORE and i'm still getting 0mA. So i'm guessing that it's something to do with my PSU? Does anybody know what it could be?Thank youChris Quote Link to comment Share on other sites More sharing options...
TK. Posted November 26, 2006 Report Share Posted November 26, 2006 Hi Chris,this is a measuring error - some current drain should be caused by the 7805, if you measure 5V at J2, then the current should be >0mADo you see the upload request from the PIC in the meantime?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.