Hot!PIC24FJ256GA705 and 704 - slow programming

Author
jarin
Super Member
  • Total Posts : 818
  • Reward points : 0
  • Joined: 2005/05/23 13:50:02
  • Status: offline
2017/10/02 10:48:26 (permalink)
3 (1)

PIC24FJ256GA705 and 704 - slow programming

I'm using both PIC24FJ256GA705 on respective Curiosity board and PIC24FJ256GA704 on my own PCB and ICD3. On both of them I experience annoyingly long programming time. My devtool setup is XC16 1.32 on MPLABX 4.01, running on up-to-date x64 Win7 professional, on Intel i7 with 8G of RAM.
It takes one second from clicking "Program" to build the code, then it connects to programmer in another two seconds, then it does nothing obvious for 15-20 seconds and just then the part is programmed in six seconds on Curiosity board. Similar times do apply for PIC24FJ256GA704 programmed by ICD3 on my own board, perhaps few seconds shorter.
I uploaded video here - XXX forum doesn't allow me to post video link, how awesome XXX - it shows how sluggishly it works on Discovery board.
The MPLABX tools are the fastest around, but waiting half a minute to flash 135 bytes of empty program (yielding 4,5B/s flashing speed) seems too much in 21st century. I tried the same process in IPE, but the process is as slow as with IDE.
I have option "Maintain active communication with hardware tool" checked and active. It is much worse without.
 
Does anyone have similar experience? Is there something I can try?
 
 
***************************************
EDIT:
The video is here
www. youtube.com/watch?v=jaF39LUutnc
please, remove the space after www.
post edited by jarin - 2017/10/02 10:51:02

Jaromir Sukuba, Bratislava, Slovakia
http://jaromir.xf.cz/  - open source PIC18 debugger.
#1

7 Replies Related Threads

    qhb
    Superb Member
    • Total Posts : 6257
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: PIC24FJ256GA705 and 704 - slow programming 2017/10/02 15:16:54 (permalink)
    +2 (2)
    Yep, posting links often falls over, but there's a hidden "PGD" code to embed videos directly...
     

    #2
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1541
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: PIC24FJ256GA705 and 704 - slow programming 2017/10/02 16:50:29 (permalink)
    0
    I've got a font that goes into const psv, that slows it down.
     
    Check the output.
    That's go to be erased.
    program memory: start address = 0x0, end address = 0x157ff.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #3
    jarin
    Super Member
    • Total Posts : 818
    • Reward points : 0
    • Joined: 2005/05/23 13:50:02
    • Status: offline
    Re: PIC24FJ256GA705 and 704 - slow programming 2017/10/02 23:41:44 (permalink)
    +1 (1)
    There are no fonts or whatever. Just main function with empty endless loop. The resulting binary only takes 135 Bytes of FLASH. I thought it's obvious from the video, that's why I didn't include the source file of project.

    Jaromir Sukuba, Bratislava, Slovakia
    http://jaromir.xf.cz/  - open source PIC18 debugger.
    #4
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1541
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: PIC24FJ256GA705 and 704 - slow programming 2017/10/03 07:15:50 (permalink)
    0
    Have you tried it with a pickit?

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #5
    jarin
    Super Member
    • Total Posts : 818
    • Reward points : 0
    • Joined: 2005/05/23 13:50:02
    • Status: offline
    Re: PIC24FJ256GA705 and 704 - slow programming 2017/10/03 07:23:00 (permalink)
    +1 (1)
    PK3 provides the same speed as Curiosity kit - no surprise here, as Curiosity has cut-down PicKit3 on board.
    ICD3 is just marginally faster than that.

    Jaromir Sukuba, Bratislava, Slovakia
    http://jaromir.xf.cz/  - open source PIC18 debugger.
    #6
    jarin
    Super Member
    • Total Posts : 818
    • Reward points : 0
    • Joined: 2005/05/23 13:50:02
    • Status: offline
    Re: PIC24FJ256GA705 and 704 - slow programming 2017/10/04 11:42:43 (permalink)
    +1 (1)
    I just tried the same thing on computer with Linux Mint 18.2, as Linux machines are known to work better with MPLABX and other java monsters better than Windows. This situation seems to have different root cause, so not surprisingly, it's the same as in Windows.
    I strongly believe this is some kind of bug MPLABX, and will try to open support ticket.

    Jaromir Sukuba, Bratislava, Slovakia
    http://jaromir.xf.cz/  - open source PIC18 debugger.
    #7
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1541
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: PIC24FJ256GA705 and 704 - slow programming 2017/10/04 13:46:10 (permalink)
    0
    When you write to your mpu it compiles the code, erases then writes.
    The write time seems ok, a few seconds.
     

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #8
    Jump to:
    © 2017 APG vNext Commercial Version 4.5