• AVR Freaks

Hot!Automatically program Target when source file changes?

Author
davegsm82
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2007/02/05 15:48:34
  • Location: 0
  • Status: offline
2019/04/01 05:02:28 (permalink)
0

Automatically program Target when source file changes?

I asked this in a thread last year but got no real answer on the subject. 


On PK2/3 you could automatically program the target device when the source HEX file changes (I use MIKROC environment), the PK2/3 software would recognise that the file had changed and automatically, without needing to click any messages or anything, and then automatically download to the target device, all done silently in the background with the programming tool window minimised.

The PK4 IPE software doesn't do this, Why? Microchip? for someone doing debugging and regular live code development/updates this is an ESSENTIAL feature. I would still be using my PK3 but it doesn't support the K42 family, so that is not an answer. 

Please can this be added to a future release?

Also, while I'm on, can we PLEASE add an option to IGNORE voltage on the Vdd when powering the target from the PK4 and programming? It seems like even a small capacitance on the system can hold enough charge to make it think there's a battery or other power source connected, on a test bench application I don't care even if there is a power source, it shouldn't affect programming and I just want it to program regardless. 
 
Dave.
#1

11 Replies Related Threads

    davegsm82
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2007/02/05 15:48:34
    • Location: 0
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 04:21:23 (permalink)
    0
    Hello? Dev's? Mod's? Anyone?
    #2
    qhb
    Superb Member
    • Total Posts : 9985
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 04:34:34 (permalink)
    0
    davegsm82
    ..
     I would still be using my PK3 but it doesn't support the K42 family, so that is not an answer. 

    Says who?
     
    #3
    davegsm82
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2007/02/05 15:48:34
    • Location: 0
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 04:43:18 (permalink)
    0
    qhb
    davegsm82
    ..
     I would still be using my PK3 but it doesn't support the K42 family, so that is not an answer. 

    Says who?
     



    It's not natively supported in the software (i.e. the device file), and from what I've read the new method of programming (similar to SPI) isn't supported by the PK3 firmware, I've tried to hack together a new device in the file and sure enough it wouldn't program. That was a long time ago though, so please, if you know otherwise I would be ecstatic to hear from you on this. The PK4 really isn't what I hoped it would be, mainly because of the software.
     
    Regards, Dave.
    #4
    qhb
    Superb Member
    • Total Posts : 9985
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 04:52:05 (permalink)
    0
    So you're just using the PK3 in PK2 compatibility mode with the old software?
    MPLABX IDE 5.10  and IPE 5.10 both show full PK3 support for a few sample K42 chips I tried. Which precise device are you using?
     
    #5
    davegsm82
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2007/02/05 15:48:34
    • Location: 0
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 05:05:44 (permalink)
    0
    Currently I'm using the 47K42.
    Development environment is - MIKROE Mikro-C Pro for PIC.
    PK4 using IPE 5.15. 

    All I want is for the IPE to automatically download the new .hex file to the target device each time I build in MIKROC, this is how PK3 with the standalone software used to work. I'm not trying to use PK3 with IDE/IPE although I'm happy to try it but there still won't be the option to automatically download when building OUTSIDE of IDE.
     
    I appreciate your trying to help me qhb.
    #6
    qhb
    Superb Member
    • Total Posts : 9985
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 05:17:36 (permalink)
    0
    So you never found a way to get the MikroC environment to run a command line utility (i.e. IPE) after doing a build?
    #7
    davegsm82
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2007/02/05 15:48:34
    • Location: 0
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 05:29:36 (permalink)
    0
    qhb
    So you never found a way to get the MikroC environment to run a command line utility (i.e. IPE) after doing a build?




    Unfortunately not, either it's not possible or I'm too stupid to work out something that could well be very obvious to others.

    The only way I could think of doing it would be to create something to monitor the specific .hex file for changes and then run IPE on the CLI accordingly, but this would probably be bespoke to each .hex file and if I'm honest just a bit of kludge. I can't understand why the function to auto-download to target hasn't been added to the IPE when the PK3 software had it and it worked perfectly.

    With all the K42 series issues in MIKROC combined with this I feel quite depressed and keep just giving up, then coming back a few months later to see if anything has changed. I'm not a professional programmer, this is just my hobby.
     
    Regards, Dave.
    #8
    davegsm82
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2007/02/05 15:48:34
    • Location: 0
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/08 08:47:14 (permalink)
    0
    Having just read the IPE guide at;

    http://ww1.microchip.com/downloads/en/DeviceDoc/50002227C.pdf

    It would appear you can't use a CLI to program anyway, so that's another idea that is now unworkable. At most the CLI only allows you to open the IPE with a particular device and hex file loaded, nothing further, no automatic program and no automatic close at end of job.  Oh well.
    #9
    davegsm82
    New Member
    • Total Posts : 22
    • Reward points : 0
    • Joined: 2007/02/05 15:48:34
    • Location: 0
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/18 14:32:29 (permalink)
    0
    Any chance of this being looked at by a developer? Would be nice to get an answer instead of just sitting here in hope. 
     
    Seems insane that we can buy a new product which has less features than it's predecessor.
    #10
    qhb
    Superb Member
    • Total Posts : 9985
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Automatically program Target when source file changes? 2019/04/18 14:48:16 (permalink)
    0
    This is a user forum.
    You need to open a Support Ticket if you want an answer from Microchip.
     
    #11
    Mysil
    Super Member
    • Total Posts : 3321
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: online
    Re: Automatically program Target when source file changes? 2019/04/18 17:19:51 (permalink)
    0
    Hi,
    Some members associated with the Basic community have done Upgrades to the PICkit 2 Programmer Application,
    and PICkit 3 Programmer Application,
    creating: PICkit 2Plus Programmer Application, and PICkit 3+ Programmer Application.
    They have added support for a large number of new devices, including PIC18F47K42, 
    so now both PICkit 2 and PICkit 3 tools may now be used for PIC18F47K42.
     
    You may search for Anobium and PICkit 3 Plus,
    or see this thread: https://www.microchip.com/forums/FindPost/1047644
     
        Mysil
    #12
    Jump to:
    © 2019 APG vNext Commercial Version 4.5