• AVR Freaks

AnsweredLoading .hex file works, but...

Author
vizier87
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2017/09/07 19:09:32
  • Location: 0
  • Status: offline
2018/09/03 00:49:01 (permalink)
0

Loading .hex file works, but...

Hi guys,
As told in the title, have tried programming my PIC16F1455 using the "Make and Program the Device" button, which worked well.
 
As I tried using the IPE to load the same .hex file, it successfully programmed the device but the PIC doesn't work as intended. It was just a simple blinking test program. It's funny because the platform via MPLAB IDE worked, but the IPE didn't.
 
Any explanation why this happens?
 
Thanks.
Vizier87
#1
vkalyan
New Member
  • Total Posts : 27
  • Reward points : 0
  • Joined: 2016/02/15 22:26:47
  • Location: 0
  • Status: offline
Re: Loading .hex file works, but... 2018/09/03 01:14:01 (permalink)
0
but the PIC doesn't work as intended.

Can you please elaborate on what exactly is the issue you are facing?
#2
rodims
Super Member
  • Total Posts : 1515
  • Reward points : 0
  • Joined: 2009/02/10 11:08:59
  • Location: 51.9627, 7.6262
  • Status: offline
Re: Loading .hex file works, but... 2018/09/03 01:30:55 (permalink)
4 (1)
More information would help.  Which programmer ? Did you detach the device after programming ? What do you experience ? Verify that the IPE option "Hold in Reset" is not active.
#3
NorthGuy
Super Member
  • Total Posts : 5592
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: offline
Re: Loading .hex file works, but... 2018/09/03 06:05:22 (permalink)
0
Either the HEX file you used is not the same or the MCLR pin may be kept low by IPE.
 
To get the correct HEX file, right click on the project and select "Export HEX".
#4
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Loading .hex file works, but... 2018/09/03 13:31:36 (permalink)
0
I think it's a safe guess that IPE is keeping MCLR low, and the OP is not disconnecting the programmer.
 

Nearly there...
#5
vizier87
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2017/09/07 19:09:32
  • Location: 0
  • Status: offline
Re: Loading .hex file works, but... 2018/09/03 20:32:45 (permalink)
0
Thanks for the responses everyone.
 
rodims
More information would help.  Which programmer ? Did you detach the device after programming ? What do you experience ? Verify that the IPE option "Hold in Reset" is not active.




Yeah my bad. It is Pickit3. Programmed well within the IDE but not the IPE.
 
NorthGuy
Either the HEX file you used is not the same or the MCLR pin may be kept low by IPE.
 
To get the correct HEX file, right click on the project and select "Export HEX".


Which interface do I select to be right-clicked again?
 
Vizier87
#6
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Loading .hex file works, but... 2018/09/03 20:36:23 (permalink) ☼ Best Answerby vizier87 2018/09/05 02:21:28
0
Why do you keep ignoring the questions about "holding reset low" and "disconnecting programmer" ?
 

Nearly there...
#7
tech24x7
Starting Member
  • Total Posts : 63
  • Reward points : 0
  • Joined: 2013/10/14 21:38:52
  • Location: 0
  • Status: offline
Re: Loading .hex file works, but... 2018/09/04 01:47:56 (permalink)
0
Can you try Release From Reset option under IPE -> Setting menu,  manually reset the controller and see LED blinks.
 
#8
vizier87
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2017/09/07 19:09:32
  • Location: 0
  • Status: offline
Re: Loading .hex file works, but... 2018/09/04 23:05:51 (permalink)
5 (1)
qhb
Why do you keep ignoring the questions about "holding reset low" and "disconnecting programmer" ?
 


I was skimming the replies too fast. My bad.
 
Thanks. That's the thing which went wrong I guess. I selected "Release from Reset" and it programmed all ok now.
 
Vizier87
#9
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Loading .hex file works, but... 2018/09/04 23:50:22 (permalink)
5 (1)
So if you read slower, you would have had your answer a day earlier....
 
 

Nearly there...
#10
1and0
Access is Denied
  • Total Posts : 9631
  • Reward points : 0
  • Joined: 2007/05/06 12:03:20
  • Location: Harry's Gray Matter
  • Status: offline
Re: Loading .hex file works, but... 2018/09/05 03:38:17 (permalink)
5 (1)
qhb
So if you read slower, you would have had your answer a day earlier....

In other words, learn to listen more instead of more talking. LoL: LoL
#11
Jump to:
© 2019 APG vNext Commercial Version 4.5