Sign in to follow this  
Followers 0
graham

programming the midibox core

16 posts in this topic

Is it possible to program a 18f452 just using a pickit 3 without resorting to midi. Ive spent 3 weeks trying to get mios studio and midi ox to communicate with the core with no success. I'm on my third midi interface, second lot of midi cables and built 2 different cores, one with a pic18f452 and the other with a pic18f4620 midi gets sent through the input and I've shorted the two pins together as in the instructions and midi comes out of the board and makes it correctly into my midi monitor so i can send midi notes, controllers and sysex from the laptop through the core and into my midi monitor but still cant get any core to connect to mios studio, just about to bin the whole lot and move on with my life tbh four wasted weeks!

Share this post


Link to post
Share on other sites

Hi Graham,
Please explain what you did in details.  Maybe you forgot something...
Did you get a blank PIC or a pre-programmed one(bootloader already flashed)?

Best
Bruno

Share this post


Link to post
Share on other sites

Hi Bruno, 

Thanks for your reply,

I got a blank PIC18F452 and downloaded the "miosv1-9h" and burned "bootloader_v1_2b_pic18f452.hex" from the "burner" folder inside the "PIC18F452 folder", is this correct so far?

Graham

Share this post


Link to post
Share on other sites

Hello,
Yes you're right...
It depends on the circuit you use, is it an MBHP board or you made yourself?
MCLR pin(#1) is connected to programmer during bootloader flashing, After bootloader programing, MCLR pin must be tied to 5V for normal run.
Is it the case?

Best
Bruno

Share this post


Link to post
Share on other sites

Hi,

It's a MBHP board, the PIC is removed from the board and put in an adaptor in the PICKIT3 to program, then plugged in the mbhp core board, pin 1 is pulled up to 5v with a 100R resistor, is this correct?

Share this post


Link to post
Share on other sites

Yes correct!
If bootloader is programmed correctly, you should connect it to MIOS STUDIO and get a message from the Core which says Core is ready. If not it's a midi issue...
- Check that you did not reverse any pin from J12/J13 to your MIDI DIN connectors...
- Check resistors value around 6N138 optocoupler IC, R5, R6, R7, R8, R11, D1 should be in the right way. Check the optocoupler itself(IC2 6N138), replace it if you can.

Bruno

Share this post


Link to post
Share on other sites

Thanks,

I get the message "no response from mios8 or mios3 core" however if I unplug the PIC and power the board, linking the midi rx and tx pins 25 & 26, and connect my midi monitor box to the core midi out, it shows note, mod wheel a controller information when I send it from mios studio, so I'm a bit puzzled.

I've got another core board, so I'm going to build another with totally different components and a new PIC and I'm getting another midi interface, surely this will work,

thanks for your help, it confirms I'm not doing something stupid.

Thanks Graham

Share this post


Link to post
Share on other sites
Just now, graham said:

if I unplug the PIC and power the board, linking the midi rx and tx pins 25 & 26, and connect my midi monitor box to the core midi out, it shows note, mod wheel a controller information when I send it from mios studio, so I'm a bit puzzled.

Seems your MIDI I/O and Power are fine, You made a good test for that.

5 minutes ago, graham said:

it confirms I'm not doing something stupid.

Nothing stupid for sure.

Maybe maybe maybe..
During the bootloader programming. You did "Write and Verify", Any message Nothing wrong?
Always In your programmer software, check if the Configuration Bits are well loaded during the hex file load. if Not do it manually.

Share this post


Link to post
Share on other sites

Yes, the write and verify were fine, I don't know what you mean by the configuration bits? I just loaded the hex file into the programmer and pressed burn, is there something else I need to do?

Share this post


Link to post
Share on other sites

my programmer dosen't have this, it has something similar I think, I included screen shots

Untitled.jpg

Untitled1.jpg

Share this post


Link to post
Share on other sites

I have managed to program a 18F452 with this programmer for the mr9090 drum machine.

Share this post


Link to post
Share on other sites

Configuration bits seem fine too.

Check the OSC, Q1 on board. Replace it maybe...

Share this post


Link to post
Share on other sites

Thanks, I will do, unfortunately my frequency meter wont measure that, 

thanks again for you help

Share this post


Link to post
Share on other sites

Hi,

Got as far as burning the "software implemented loopback test" this worked, so I concluded that the hardware, pic and midi were all working!

but still got the message that "mios wouldntt connect"

tried to load a hex file and got the message "unable to connect" but it then loaded the file!

I've now loaded hex files and got the core working and the display is working.

no idea why mios studio says its not getting a response and can't connect but still it loads files?

anyway I'm extremely happy now, thanks for all your help and giving me ideas and the will to carry on, I couldn't have done it without you so once again many thanks for your help and time responding to me.

Share this post


Link to post
Share on other sites
2 hours ago, graham said:

no idea why mios studio says its not getting a response and can't connect but still it loads files?

Sometimes after a lot of test and try, I loose connection... Then I restart everything and it connects again.
But,  "not connected and still load hex" never happens to me.

 

2 hours ago, graham said:

anyway I'm extremely happy now, thanks for all your help and giving me ideas and the will to carry on, I couldn't have done it without you so once again many thanks for your help and time responding to me.

You're welcome.

Best regards
Bruno

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0