Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Colour Maximite programming problems...
Page 2 of 4 | |||||
Author | Message | ||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9082 |
Great - HOW? The IDE will not permit me to load a hex file, it want project files or the source code in C. Smoke makes things work. When the smoke gets out, it stops! |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
I can't remember offhand as I use the IPE all the time now. Let me go check (something like import Hex file, change bits (leave un-ticked) then 'program') Give me a few mins - I'll go look For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Try these steps! 1> File, Import, (load hex file) 2> Configure, Configuration Bits . . . (set as per Geoff's pdf) 3> Configure, Select Device (ensure correct PIC) 4> Programmer, Select Programmer (select your programming device) 5> Programmer, Program WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9082 |
SUCCESS!!!! It feckin' works!!!! I used version 4.0 with bootloader, and we have colour VGA and and the yellow LED on the UBW32 lights up about half a second from power-up. Thanks WW - you're a star! Now that we have it working, I can now work on upgrading to 4.5. I will test the USB, and I expect that will also now work. Smoke makes things work. When the smoke gets out, it stops! |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9082 |
MMBASIC is working now on the UBW32, but I can't make the bootloader work. I tried re-flashing the PIC32 with the 4.4B firmware with bootloader, but no amount of grounding C13 will put the device into bootloader mode. I am following the standard procedure for getting into the bootloader - ground C13 then apply power. This should cause the PWR LED to start blinking, but this never happens, it just goes directly to MMBASIC. Does not really bother me that much now, as I have a working method for programming the HEX in via the IDE and setting the config bits. Whatever works, but it would be nice to know why the bootloader does not want to work. Smoke makes things work. When the smoke gets out, it stops! |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Can't help there I'm afraid as no UBW32 here to try it on. All I would say is follow Geoff's instructions to the letter - maybe you're missing something (or assuming something incorrectly). Take a break and try after an hour or so following Geoff's instruction. Do let us know later if you have success! WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
cosmic frog Senior Member Joined: 09/02/2012 Location: United KingdomPosts: 278 |
I think you have to press two of the three buttons on powerup on the UBW32 to update it using usb. I think its RESET and USER together when you apply power. Dave. |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2870 |
Grogster, Sorry I saw this just as I was about to pack up from work and go home.. Have a read of my manual for the UBW32-MCC that I designed for Dontronics.. Manual available here.. Manual I havent got the time to read it for the exact details Hopefully the answer is in there. Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
From Mick's manual: This maybe the clue you need?? WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9082 |
That reference to J2 CAN'T be right. Looking at the schematic for the UBW32, J2 is an alternative power input connector. Shorting that out, would short out the power supply input. Smoke makes things work. When the smoke gets out, it stops! |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
J2 should be C13 (Bootload) on the UBW-mcc which Mick refers to above. Or rather - it is according to the schematic. J1 is the Power input that you don't want to short! WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2870 |
Gday Grogster, Back home now... It refers to the J2 on MY UBW32-MCC PCB... The PCB that I designed to make a UBW32 into a CMM.. If you look at my circuit you will see that J2 connects C13 and GND which I believe is the CMM boot button.. It is late errr Early here and I have had a big 12 hr day at work and just taken a couple of shots of `medicine' before I jump into bed and annoy the missus. If you are still stuck tomorrow I will try to explain it a bit better. Regards, Mick PS. I am still waiting for my order from Shenzhen.. as its now Fri... errr Saturday there wont be a delivery till Monday at earliest so that would make this `snail mail' order 19 days at least. Mik Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5923 |
Grounding pin C13 is definitely the way to get into bootloader mode. If you use the pickit to load any HEX other than one with bootloader, you will loose the bootloader. Jim VK7JH MMedit MMBasic Help |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9082 |
Thanks for all that, guys, especially Mick for clarifying that J2 was HIS J2, not the UBW32's J2. Yep, definitely used HEX's with bootloader. First one I tried was 4.0 with bootloader, but I could not get the bootloader to work(although MMBASIC now was!), so I used PICkit3 and IDE to program in version 4.4B with bootloader from the UBW32 download from Geoff's site. I've just checked with multimeter - C13 IS at ground with the switch in the bootloader position, and is open circuit when the switch is in the run position. I did this test, in case there was a problem with that PCB trace(unlikely) or perhaps the switch I used was a factory dud and was not making contact etc, but it is. Smoke makes things work. When the smoke gets out, it stops! |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2870 |
Gday Grogs, Just about to go help the Mother in Law before going off to work again... But I think I have a spare UBW32-MCC PCB (The MCC means Maximite Colour Computer) PCB I will swap for one of your new boards if you like (the one with the VT100) If I dont have one I will wrench one out of Don's tight grasp.. Let me know if interested. Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9082 |
Actually, yes - that would be a good swap, if you can find a board. It will allow me to have a smaller testing/programming platform for the UBW32 modules(which I plan to use more of), rather then having the big 200 x 150 mainboard on the bench for testing! Smoke makes things work. When the smoke gets out, it stops! |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5923 |
Running out of ideas! Now that you have the pickit programming going OK, could you try reprogramming (with bootloader) using the default IDE settings. Jim VK7JH MMedit MMBasic Help |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Grogs - I take it you are aware that you ground C13 WHILE POWERING UP to enter Boot-load mode? Simply grounding it while the MaxiMite is on does NOT enter boot-load!! Just asking . . . . . WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9082 |
@ Jim - Will try that later, and let you know. I assume that the config bits are always the same default when you fire up IDE, and you change them for that programming cycle if needed, otherwise, they will always be the same. I will check on that when I crank up IDE, then try putting the code in again. In the output window, I do see that the PICkit3 says it is going to write the boot config memory along with the program memory, so all things being equal, you'd expect it to work wouldn't you? (rhetorical) @ WW - confirmed. Power off, put switch to BOOTLOADER position(which ground-references C13), then power up. MMBASIC starts normally instead of going into bootloader mode. This is a curiosity at the moment. So long as I can get a version of MMBASIC in there and running, I don't REALLY care if we can't figure out why the bootloader is not coming into effect. Smoke makes things work. When the smoke gets out, it stops! |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5923 |
You would normally have the IDE set with the "Configuration bits set in software" or similar. By selecting that option, you go back to the original settings that worked for me and many (but not all) others. Jim VK7JH MMedit MMBasic Help |
||||
Page 2 of 4 |
Print this page |