Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:24 29 Nov 2024 Privacy Policy
Jump to

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 : Beta Testers Wanted

     Page 6 of 26    
Author Message
MOBI
Guru

Joined: 02/12/2012
Location: Australia
Posts: 819
Posted: 12:42am 16 Jan 2014
Copy link to clipboard 
Print this post

  Quote  you need a programmer that knows about the PIC32MX150/250


Does anybody use the MPLABX IPE for programming instead of MPLABX IDE? I find it quite easy to use without setting up the full MPLABX.

David M.
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 02:23am 16 Jan 2014
Copy link to clipboard 
Print this post

Hi Geoff,

If you really need PLIB, here is what I just found. I've posted a comment on DangerousPrototypes.com, at "Our friend Microchip and open source" editorial.

[quote=funlw65]What happened with microchip’s contest as there is no page http://www.microchip.com/stacks/ ?
It was a success, or it ended silently as there were no solutions?
A least, the open-source c32 compiler is there and newlib powered…
But, too bad that C18 is declared legacy after such a success on porting it to linux and osx. It can’t be replaced by that silly xc8 compiler. Anyway, it does not matter for me anymore because of two main reasons:

1. JALv2 compiler with jallib library covers all pic12f/pic16f/pic18f microcontrollers with an incredible small code size generation – much over any free C compiler and even better than some commercial solutions.

2. I’m enjoying ATmega and ATtiny microcontrollers from some time and I am amazed – this is the main effect of trying to provide a PIC18F arduino like board (freeJALduino) (maybe this is why it seems to me that Microchip is giving up?)
[/quote]

And the reply from Marc MCcomb from Microchip was:
[quote]Hey funlw65:

The contest wasn’t a success at all. We didn’t get any submissions. We haven’t given up by any means. We’re still working on different ways to meet the needs of this community and provide a Microchip-based Arduino solution to customers who’d like one. So we’re working with a number of Third Parties to help get some open source stacks developed and there’s been some really nice progress that will hopefully come out soon. Digilent did a ton of work to provide a completely open-source version of MPIDE by (as you mention) removing dependencies on plib (contains third party IP that couldn’t be made open source) and instead use newlib. For those interested, plib is still available as an option in MPIDE just because its a pretty nice library that some folks may want to use in the future or have used on previous sketches.

I’m more than happy to answer any questions on any of this so that we can reduce conjecture and make sure everyone has the facts. So feel free to email me with your questions, comments or suggestions if you want. If I can’t answer your question, I’ll find someone who can. [/quote]

So, it seems that PLIB is still there if you need it.Edited by vasi 2014-01-17
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Alan68
Newbie

Joined: 28/01/2013
Location: Australia
Posts: 17
Posted: 08:24pm 16 Jan 2014
Copy link to clipboard 
Print this post

Hi,

I have my MicroMite working and on test.

I was looking on Ebay for a PIC32MX150F128 and came across this PIC32 Arduino kit.

It uses the other comms port for programing and you will need a PICKIT3 to reprogram the PIC.

eBay item number: 111074319500

 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 08:38pm 16 Jan 2014
Copy link to clipboard 
Print this post

Firewing R2 board is another great option, as is designed from the ground up for PIC24H/PIC32MX 28pin dip case.
http://firewing.info


Edited by vasi 2014-01-18
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 09:54pm 16 Jan 2014
Copy link to clipboard 
Print this post

  Geoffg said   I presume that you mean for the MicroMite beta. They are set in the hex file so you do not need to manually set them.

BTW, you need a programmer that knows about the PIC32MX150/250 and that means a recent version of MPLAB or MPLAB x.

Geoff


Thanks Geoff

I use Pic32Prog to program the PIC32's as these are not supported by my PicKit2
So I am not to sure if the config registers are correct
I have a couple of 32MX250's but cant seem to get them to run
I also found this in the data sheet
"If the USB module is not used, this pin must be connected to VDD."
I have connected Pin 23 to VDD but still no go :)

Has anybody tried a 32MX250 ?

This the output from Pic32Prog

Programmer for Microchip PIC32 microcontrollers, Version 1.90M
Copyright: (C) 2011-2013 Serge Vakulenko
Adapter: PICkit2 Version 2.32.0
Processor: MX250F128B (id 14D00053)
Flash memory: 128 kbytes
Boot memory: 3 kbytes
Configuration:
DEVCFG0 = 7ffffffa
2 Debugger disabled
0 JTAG disabled
18 Use PGC1/PGD1
DEVCFG1 = fc67cf59
1 Fast RC oscillator with divide-by-N and PLL
3 Primary oscillator: disabled
4 CLKO output disabled
0 Peripheral bus clock: SYSCLK / 1
8 Fail-safe clock monitor enabled
4 Clock switching enabled
DEVCFG2 = fff9ffd9
1 PLL divider: 1/2
5 PLL multiplier: 20x
7 USB PLL divider: 1/12
8 Disable USB PLL
1 PLL postscaler: 1/2
DEVCFG3 = cfffffff
USBID pin: controlled by port
USBID pin: controlled by port
4 USBID pin: controlled by USB
8 VBuson pin: controlled by USB


Regards
John
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3197
Posted: 02:57am 17 Jan 2014
Copy link to clipboard 
Print this post

All that looks correct except for:
8 Fail-safe clock monitor enabled
4 Clock switching enabled

Both should be disabled but I don't think that it is critical.

As I said in my email - I tested the PIC32MX250 without making any extra connections and it worked fine, so you should not have to worry about Vbus3V3.

The config bits are set in the hex file so you should not have to load them.

I don't know what your problem could be, as a test I programmed the 250 with the hex file and it ran OK. I was using the MPLAB X programmer and an ICD-3 but that should not affect the programming. Are you sure that your PICKit2 supports the 250? They are a new series of chips.

GeoffEdited by Geoffg 2014-01-18
Geoff Graham - http://geoffg.net
 
elproducts

Senior Member

Joined: 19/06/2011
Location: United States
Posts: 282
Posted: 03:55am 17 Jan 2014
Copy link to clipboard 
Print this post

  jman said  
I have a couple of 32MX250's but cant seem to get them to run
I also found this in the data sheet
"If the USB module is not used, this pin must be connected to VDD."
I have connected Pin 23 to VDD but still no go :)

Has anybody tried a 32MX250 ?


What cap are you using for the 47uf?
It's critical that it's a low ESR cap. In fact I'm surprised a 47uf tant works for everyone. I've only found SMD devices with low enough ESR.

I've programmed the 32mx250 with the Microstick II programmer/development board without issue.
www.elproducts.com
 
elproducts

Senior Member

Joined: 19/06/2011
Location: United States
Posts: 282
Posted: 04:17am 17 Jan 2014
Copy link to clipboard 
Print this post

  Alan68 said   Hi,

I have my MicroMite working and on test.

I was looking on Ebay for a PIC32MX150F128 and came across this PIC32 Arduino kit.

It uses the other comms port for programing and you will need a PICKIT3 to reprogram the PIC.

eBay item number: 111074319500



That is interesting. It's almost the same concept as MicroMite but the code is more pseudo C.
It has it's own serial terminal GUI.
A board like that would be easy to make for MicroMite.
www.elproducts.com
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 04:24am 17 Jan 2014
Copy link to clipboard 
Print this post

Serge Vakulenko said that the pic32prog now supports the MX1/MX2 variants, but I guess something is not working, as I bricked mine, I guess ... As I said, the pic32prog continues to detect the micro, it programs it, verifies it, everything is ok, but the burned firmware is not working (the initial firmware is not there anymore, and the new one doesn't show up).


Edited by vasi 2014-01-18
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3817
Posted: 04:52am 17 Jan 2014
Copy link to clipboard 
Print this post

You have no ICSP pins so how did you program it?

John
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 04:59am 17 Jan 2014
Copy link to clipboard 
Print this post

This is an old picture, just after "unboxing". I have sockets soldered in place.
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3817
Posted: 06:37am 17 Jan 2014
Copy link to clipboard 
Print this post

Oh, OK.

Can you program a different file? Maybe Pinguino project's bootloader?

John
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 06:55am 17 Jan 2014
Copy link to clipboard 
Print this post

Nothing works, not even a "blink". But I guess is pic32prog's fault. So for now, the only solution for MX1/MX2 is a Pickit3 programmer. Though, I will try a pic32prog update...Edited by vasi 2014-01-18
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3817
Posted: 10:19am 17 Jan 2014
Copy link to clipboard 
Print this post

It would be useful to know if a PICkit3 works. It would seem if it does to mean that pic32prog would need a fix.

John
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 10:23am 17 Jan 2014
Copy link to clipboard 
Print this post

Well, apologies to Serge, the last version of pic32prog works excellent!

John (@Jman), indeed, the switching clock config. bit is interpreted and reported wrong, but I assure you that the configuration bits are written correctly - compare the hexadecimal values of DEVCFG0,1,2,3 with the ones from your hex (but I don't know how).

Now I'm gladly blinking both LEDs of my board - I've downloaded mikroPascal for PIC32 to rapidly cook a test program. Good, this proves that pic32prog works at least with my pic (PIC32MX220F032D). Case closed.
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 10:31am 17 Jan 2014
Copy link to clipboard 
Print this post

Thanks for report back Vasi

I have programmed the PIC32MX795 with no problems
I will keep looking for the problem with the Pic32MX250. I think a PicKit3 may be the solution.

BTW what version of PicProg32 did you use ?

Regards
John
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 10:42am 17 Jan 2014
Copy link to clipboard 
Print this post

It reports 1.90M - downloaded today.

As per revision 86 ( Nov 25, 2013) it says: "Fixed printing of devcfg registers for MX1/2 family". And now is at revision 91 (Dec 24, 2013). Anyway, I guess I had a really old revision.

I wonder if it refers only at printing on the screen, and if yes, I wonder if the Windows executable is a compilation of the most recent sources (is what I use now on Windows, maybe tomorrow I will try to compile under Linux) ...
Edited by vasi 2014-01-18
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3817
Posted: 11:44pm 17 Jan 2014
Copy link to clipboard 
Print this post

Good to hear it's working! Even better that the chip wasn't actually bricked.

The config bits are often (always?) at the top (16?) bytes of the flash area. (It's in the data sheet.)

John
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 831
Posted: 05:31am 19 Jan 2014
Copy link to clipboard 
Print this post

Hi Geoff,

would it be possible to activate simultaneous the second I2C-port (Pin6/7) on the MicroMite?
It would be a great expansion to use the µMite as Slave with simultaneous connected I2C-devices as master on it.
It would be possible to use the µMite as I2C-expander with simultaneous I2C-EEprom, I2C-Clock and so one on it.

Thanks a lot!

Frank
 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 06:06am 19 Jan 2014
Copy link to clipboard 
Print this post

hi,

i hope to get the pickit3 on monday but before i need the electric schematic for the chip.
i found schemata .
will this work ?
is where any easyer ? ill guess yes .

can anybody show me picture ?

thx
 
     Page 6 of 26    
Print this page
© JAQ Software 2024