Jump to content

MIOS upload error


ChrisHipgrave
 Share

Recommended Posts

Hi,

I'm having some trouble uploading MIOS to my CORE. I'm getting the following errors:

Starting upload of mios_v1_9c_pic18f452.hex

Hex file contains code in MIOS range, forcing reboot!

Received Upload Request

Sending block 00000400-000004FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Aborting after 16 errors

I'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 you

Chris

Link to comment
Share on other sites

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.html

If 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.

Link to comment
Share on other sites

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 you

Chris

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.hex

Hex file contains code in MIOS range, forcing reboot!

Received Upload Request

Sending block 00000400-000004FF

Received Checksum: 1D - OK

Sending block 00000500-000005FF

Received Checksum: 4D - OK

Sending block 00000600-000006FF

Received Checksum: 11 - OK

Sending block 00000700-000007FF

Received Checksum: 0D - OK

Sending block 00000800-000008FF

Received Checksum: 1A - OK

Sending block 00000900-000009FF

Received Checksum: 61 - OK

Sending block 00000A00-00000AFF

Received Checksum: 4B - OK

Sending block 00000B00-00000BFF

Received Checksum: 1E - OK

Sending block 00000C00-00000CFF

Received Checksum: 68 - OK

Sending block 00000D00-00000DFF

Received Checksum: 09 - OK

Sending block 00000E00-00000EFF

Received Checksum: 36 - OK

Sending block 00000F00-00000FFF

Received Checksum: 63 - OK

Sending block 00001000-000010FF

Received Checksum: 78 - OK

Sending block 00001100-000011FF

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

This was an expected error - please ignore!

Error: Received unexpected Upload Request

Sending block 00001000-000010FF

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Sending block 00000800-000008FF

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Sending block 00000600-000006FF

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Received error code 0B: MIDI IN Overrun Error

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Sending block 00000500-000005FF

Error: Received unexpected Upload Request

Sending block 00000500-000005FF

Received error code 0B: MIDI IN Overrun Error

Aborting after 16 errors

Looks 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 you

Chris

Link to comment
Share on other sites

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 Reset

00000000043710 ms | [FF] System Reset

00000000053522 ms | [FF] System Reset

It 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.

Alex

http://www.toneburst.net

Link to comment
Share on other sites

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 mA

Best Regards, Thorsten.

Link to comment
Share on other sites

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 mA

Best 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

Link to comment
Share on other sites

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 mA

Best Regards, Thorsten.

Link to comment
Share on other sites

Sounds like two PIC pins are connected together, one outputs 0V, the other 5V

Potential 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 5V

Best Regards, Thorsten.

Link to comment
Share on other sites

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 me

Best Regards, Thorsten.

Link to comment
Share on other sites

  • 2 weeks later...

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 mA

Hi,

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 you

Chris

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...
 Share

×
×
  • Create New...