Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 01:56 06 May 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 : Programming and Reading 170 with pickit 3

Author Message
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 02:57pm 14 Jul 2015
Copy link to clipboard 
Print this post

Hello, I have a pic32mx170f256b that I have a mmbasic program on. I want to read the chip with the pickit 3 and create a hex file with mmbasic and my program so that I can program another 170 with mmbasic AND my program at one time. I hooked up my pickit 3, loaded mmbasic, fired up mmedit and loaded my program. All is good...

I hooked up my pickit 3 again and instead of hitting program, I hit read so I could get the hex file in whole. Everything seems to be working until this error appears...


2015-07-14T20:50:01-0400- Completed loading IPE.

Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.30.09
Firmware type..............PIC32MX

Target detected
Device ID Revision = 20000000
2015-07-14T20:51:36-0400- Reading...

The following memory area(s) will be read:
program memory: start address = 0x0, end address = 0x3ffff
boot config memory
configuration memory

Reading...
Failed to read device
The MPLAB PICkit 3 is missing a Memory Object.
2015-07-14T20:51:41-0400- Read failed

Target removed

I don't get it. It programs perfectly, but I can't seem to read the hex file back out. I know the device ID Revision may look weird, but it is the same when I program mmbasic hex file into the chip. It is actually a SOIC surface mount version of the pic32mx170f256b. I have tried this on 3 different chips, all of which program and run perfectly. Just can't read the hex file.

Any help would be greatly appreciated.

Thanks!!!!!
Edited by viscomjim 2015-07-16
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 02:19am 17 Jul 2015
Copy link to clipboard 
Print this post

In the uMite manual Geoff shows the following...

  Quote  "Single, Secure HEX File"
"If you write a program for the Micromite and set the following options:"
"OPTION BREAK 0 OPTION AUTORUN ON"
"you will end up with a program that cannot be stopped or interrupted. To further bullet proof it you could use the watchdog timer and OPTION PIN."
"You can then use a PICKit3 and MPLAB IPE to read the complete flash memory of the Micromite and export it as a hex file. This will contain the Micromite firmware as well as your BASIC program and the above options."
"This file can be sent to someone as custom firmware for the PIC32MX170F250 chip. They can load the hex file and it will immediately start running your program. To them it will be indistinguishable from firmware written in C (other than the startup banner produced by MMBasic). hey do not have to load MMBasic and"
"they do not need know anything about programming the Micromite."


Has anyone had success with this and picket 3 with MPLAB IPE, and if so, how did you get this to work??? Still loosing hair on this one.

JimEdited by viscomjim 2015-07-18
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 03:02am 17 Jul 2015
Copy link to clipboard 
Print this post

I just tried reading a chip and it worked fine. Your error message might be hinting that you need to reinstall MPLAB X with a more up to date version.




Geoff Graham - http://geoffg.net
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 03:42am 17 Jul 2015
Copy link to clipboard 
Print this post

Thanks Geoff, I will do that and report back.
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 06:29pm 29 Jul 2015
Copy link to clipboard 
Print this post

Just as Geoff expected, I downloaded new IPE and THIS WORKS GREAT!!!!!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024