Author Topic: MPLAB - "program only" button  (Read 2004 times)

0 Members and 1 Guest are viewing this topic.

Offline DTJTopic starter

  • Frequent Contributor
  • **
  • Posts: 997
  • Country: au
MPLAB - "program only" button
« on: August 21, 2019, 06:21:41 am »
Using MPLABX IDE 3V35....


Is there a way to single click program a device without having to run through the "make" cycle?

I'm programming a few boards an am using the "Make & Program Device" button bu tI have to wait 20 seconds or so each time to make the project. I looked in the customise tool bar options to see if I could find a way to drag a program button up the top but cannot see on.

I know I can set my PK3 up as a programmer to go but would rather not.

Any ideas?
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: MPLAB - "program only" button
« Reply #1 on: August 21, 2019, 06:56:04 am »
Use IPE?
 
The following users thanked this post: DTJ

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: MPLAB - "program only" button
« Reply #2 on: August 21, 2019, 06:56:44 am »
MPLAB X comes bundled with a separate programming app that probably fits your needs better.
 
The following users thanked this post: DTJ

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2300
  • Country: gb
Re: MPLAB - "program only" button
« Reply #3 on: August 21, 2019, 07:20:54 am »
Also, after installing IPE you can use a batch file, so just a double-click to program and verify:

Code: [Select]
cd C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe
ipecmd.exe -TPICD3 -P18F2525 -M -F"C:\Firmware\myfile.hex" -K -E -C -Y
pause
 
The following users thanked this post: DTJ

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4102
  • Country: us
Re: MPLAB - "program only" button
« Reply #4 on: August 21, 2019, 10:09:45 am »
Well that's disappointing. I was wondering the same thing. Even after the build is done, it seems like X takes an extraordinarily long time to program and verify. I know about IPE, but that's a whole other maze of clicks to initially get going with just enough delay between them to be extremely annoying. Also... change password to nothing? No. Minimum password is 4 characters just to use IPE.

I'm working my way through the quirks and features of X right now, and I'm constantly forgetting what I was doing while trying to remember the maze of menus and waiting for things to happen.

There are a lot of new features, so far. I'm sure there are tons more I'll never learn about. But I find myself saving a few mouse clicks here, only to have to do a ton more, somewhere else. It is frustrating in that regard.

Like the tab spacing... Tab over to write a line of code, then the stupid thing acts like modern Word, automatically indenting the next line to the same spot. Which would be fine if backspace unindented. But instead, backspace moves the cursor back one space instead of all four, lol. Shift + tab doesn't do it either? So weird.

Forgive the rant and sidetrack, but I think we already got your answer, at least. 
« Last Edit: August 21, 2019, 10:13:21 am by KL27x »
 

Offline DTJTopic starter

  • Frequent Contributor
  • **
  • Posts: 997
  • Country: au
Re: MPLAB - "program only" button
« Reply #5 on: August 21, 2019, 12:25:19 pm »
Thanks for the reminder about the IPE guys. I had not tried it.


After working out I could not find it as I'd selected to not install it years ago when I put MPLABX on my PC, I installed it an it works as required. Thanks as always to the group!



KL27x - I'd be lucky to be using 5% of the capability of MPLABx. I guess advanced users may need the options, I tend to not explore too far lest I stuff things up and can't get them going again.



 

Offline cv007

  • Frequent Contributor
  • **
  • Posts: 826
Re: MPLAB - "program only" button
« Reply #6 on: August 21, 2019, 05:01:31 pm »
The button you are clicking- 'Make and Program Device Main Project' also has a drop down selection (down arrow indicates) where you can 'Program Device for Production Main Project'. You can also add another button to the toolbar so you can have 'Program Device for Production Main Project' as a single button. Right click the toolbar, customize.

>I have to wait 20 seconds or so each time to make the project

That sounds more like a Clean and Build (although nothing I do ever takes more than 5-10 seconds even with this option). Make and Program... is more like 'Build Main Project and Program"- if there is nothing new to build no time should be spent building, so Make and Program is probably the better option in any case as it just makes sure you are programming the latest changes.
 
The following users thanked this post: DTJ, KL27x

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4102
  • Country: us
Re: MPLAB - "program only" button
« Reply #7 on: August 21, 2019, 06:25:22 pm »
Quote
'Make and Program Device Main Project' also has a drop down selection (down arrow indicates)
Welp. Indeed it does. It's a marvel, all the extra features they crammed into the GUI.

But I think my 32" monitor is too small for this. And I already use it at reduced resolution of 1920 x 1080, rather than 2560 x 1440. I could have used this for 10 years without realizing that dot was an arrow.

And, of course... no keyboard shortcut.

I realize it took me years to figure my way around 8. So nothing new, really. But many of the things I slowly learned with 8 were mindblowing awesome. I don't imagine that happening with X. (They probably just find a few extra pixels to stuff it on the GUI). So far the two things I love are that the entire line gets highlighted with one click, for cut/past operation. And floating windows. The comment/uncomment all-highlighted buttons are nice, but I could easily live without them. 

I also am sad that there is no navigating by alphabetical list of labels. 

For me, this "drop down arrow" and scolling down to select defeats the purpose. And I don't even want it to program multiple devices, where doing that each time would be silly. I might reassemble code many times, just to catch and fix errors as I go, for every one I program a test board. I don't see the big reason to combine make and program into one button, at all. From my perspective. I suppose it guarantees you can't forget to update before flashing, but it seems dumb to take this "terrible burden" off the coder. It seems pretty obvious that w/e you flash is w/e you last compiled. In 8, you could even enable automatic programming after every successful build, if you like. That was an option.

The X paradigm would be close to perfect if only it checked to see if any files have been edited since the last build. And if not, it would program, only. Then it would be just a program button with an automatic nanny-check.
« Last Edit: August 21, 2019, 07:16:26 pm by KL27x »
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14470
  • Country: fr
Re: MPLAB - "program only" button
« Reply #8 on: August 21, 2019, 07:59:11 pm »
Quote
'Make and Program Device Main Project' also has a drop down selection (down arrow indicates)
Welp. Indeed it does. It's a marvel, all the extra features they crammed into the GUI.

But I think my 32" monitor is too small for this. And I already use it at reduced resolution of 1920 x 1080, rather than 2560 x 1440. I could have used this for 10 years without realizing that dot was an arrow.

 :-DD

 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4102
  • Country: us
Re: MPLAB - "program only" button
« Reply #9 on: August 21, 2019, 09:33:04 pm »
Oooooh! Another thing I really like. Thank gosh for cdev pointing out that drop down arrow. Setting up P2G on a PK3 was ghoulish through IPE. Now you can dick with the settings in production settings, just once. And configure PK3 for P2G in this dropdown menu, boom done. I may never open IPE, again.
 

Offline DTJTopic starter

  • Frequent Contributor
  • **
  • Posts: 997
  • Country: au
Re: MPLAB - "program only" button
« Reply #10 on: August 22, 2019, 12:37:51 pm »
The button you are clicking- 'Make and Program Device Main Project' also has a drop down selection (down arrow indicates) where you can 'Program Device for Production Main Project'. You can also add another button to the toolbar so you can have 'Program Device for Production Main Project' as a single button. Right click the toolbar, customize.


Crikey I didn't realise there was a drop down option - I'll check that out tomorrow. I'll also have another go at cutomising the toolbar.

I've been using the IPE solution today and its been ok.

Cheers.
 

Offline bookaboo

  • Frequent Contributor
  • **
  • Posts: 728
  • Country: ie
Re: MPLAB - "program only" button
« Reply #11 on: August 22, 2019, 12:52:54 pm »

Like the tab spacing... Tab over to write a line of code, then the stupid thing acts like modern Word, automatically indenting the next line to the same spot. Which would be fine if backspace unindented. But instead, backspace moves the cursor back one space instead of all four, lol. Shift + tab doesn't do it either? So weird.


You can ignore all your tab spaces then just Ctrl-Alt-F and it formats the whole script. I think this can be customised in Tools > Editor > Formatting but I just use the default.

Also for those who mentioned shortcuts:
Tools > Options > Keymap for hotkey shortcut config
Tools > Options > Editor > Code Completion for code autocomplete macros.

 

 
The following users thanked this post: KL27x


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf