Programming not complete

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi :)

I am trying to load a hex-file to atmega1280 via mplabX IPE.  It is successful in erasing the chip but I am unable to program the micro-controller. The only error that shows up on output IPE is "PROGRAMMING NOT COMPLETE". Can someone please let me know what might the problem ?

I have made checked for The power supply and the connections . They are proper.  Also ,as I am new to Linux-Ubuntu, I am unable to proceed further. 

This topic has a solution.
Last Edited: Fri. Nov 8, 2019 - 09:29 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How exactly are you trying to program the device? 

 

You need a programming tool like Pickit to actually program devices. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is your setup ? is it a custom pcb or an evaluation board with a USB through mEDBG ? give us more information.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks you for the response. I am trying to program the micro-controller on PCB via ATMEL-ICE debuggers. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for choosing to reply me :)
I am providing a power supply of 5V with SMPS to the micro-controller . 

I have connected an atmel- ICE debugger to  the micro controller(which is soldered on PCB)  through which I program it

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could you show a schematic for your connection...Debugging header or pins <----> atmega1280

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You need to use the 100 mils connector. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 3

The_time wrote:

You need to use the 100 mils connector. 

 

?? we dont know how does the schematics looks like before jumping to the connector, normally Atmel-ICE comes with different connectors if bought online throgh digikey or mouser. However, for the specific chip that the OP is using, JTAG connection is required. hence, the question to see his schmatics...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry for the late reply.

 

Schematic using the ATMEGA2560 is as follows:

VTG <-----> 3.3V

GND <-----> GND

TCK <----->  Pin#93, PF4

TDO <----->  Pin#91, PF6

TDI  <----->  Pin#90, PF7

TMS <----->  Pin#92, PF5 

nSRST <-----> Pin#30, /RESET, Pulled by 10kOhm

 

I have also mentioned that the Microcontroller is operating at 3.3V.

 

I have tried using the same setup on Windows using the ATMEL Studio (AS7) setup which seems to be working perfectly fine.

Now when i perform the same over MPLAB-X on both OS ie. Linux or Windows it seems to be prompting this error.

 

I am using 100mils*5*2 FRC connectors for my setup.

 

Following error throws up on using IPE.

 

Following error throws up on using MPLAB-X IDE:

 

 

I am unable to understand why the difference in Atmel Studio v/s MPLAB-X for the same Microcontroller Setup.

 

Regards.

Sowmya M.

Last Edited: Thu. Nov 7, 2019 - 09:32 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Use a DMM to check the actual voltage on the VTG pin in the header. Does it read (as seems to be detected by Atmel-ICE) below 1.5V ?

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I havents used MPLAB-X recently, here in this forum most of the people use AS7, However, I suppose that if the ICE is working fine with AS7 and NOT working with MPLAB-X then the problem should be in the setting. Some questions:

 

- Are you using the AVR port in ICE ?

- Does your target have a complaint 10-pin JTAG header in 50- or 100-mil ?

- How you are powering your custom board ? Atmel-ICE cannot supply power to your custom board thats why you need to supply your custom board with external source...e.g. battery.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 3

You could try manipulating the XML data in the DFP to see if this helps.  I have noticed that the mega2560 claims: minvoltage="4.5" for example...

Look in your install path for:

\packs\Microchip\ATmega_DFP\<pack_version>\edc\<device_name>.PIC

then look for the 

<edc:Power>

tag and see what it claims.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Thank you all for the suggestions.
 

It did work!!! According to your instructions, I changed the edc: min voltage(to 2.7V)  and the programming is successful.

Since, we are using Atmega2560V clocked at 8MHz and in the data sheet it says the operating voltage is 2.7V to 5.5, I kept the voltage to 2.7V    

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good to hear!  I think MPLAB is being incorrectly pessimistic on speed/voltage-grades.