• AVR Freaks

AnsweredMDB session scripting without user interaction - How to?

Author
guyanj
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2018/04/02 19:41:37
  • Location: 0
  • Status: offline
2019/11/13 20:43:24 (permalink)
0

MDB session scripting without user interaction - How to?

Hi all,
 
OS : Windows 10
debugger: PICkit3
MCU: PIC12F615
MPLAB 5.20
 
I have scripted an MDB session to flash my MCU with a firmware.
 
Device PIC12F615
Hwtool PICkit3 -p
Program "<C:\PATH>\<filename>.hex"
Reset MCLR
Sleep 1500
Quit

 
I get the safety check caution warning to be mindful with connecting 5V and 3.3V, and then a prompt "Do you wish to continue?"
From the command prompt, I then have to press 'y' and 'enter' or just 'enter' to proceed.
I need to auto-answer this prompt or even bypass this prompt so that I can run the script and complete flashing the MCU without any need for user intervention.
 
Could someone advise me how that can be done please?
 
Thanks guys.
 
Kind regards,
Guyan
#1
Jim Nickerson
User 452
  • Total Posts : 6376
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: MDB session scripting without user interaction - How to? 2019/11/14 08:14:55 (permalink) ☄ Helpfulby guyanj 2019/11/14 17:37:00
0
maybe using "timeout" and then "sendkeys"
#2
GeorgePauley
Moderator
  • Total Posts : 1185
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: offline
Re: MDB session scripting without user interaction - How to? 2019/11/14 10:43:21 (permalink) ☼ Best Answerby guyanj 2019/11/14 17:36:44
5 (1)
set system.yestoalldialog true
 
#3
guyanj
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2018/04/02 19:41:37
  • Location: 0
  • Status: offline
Re: MDB session scripting without user interaction - How to? 2019/11/14 17:47:22 (permalink)
0
Thanks George & Jim for the quick responses.
The set system.yestoalldialog true did the job for me! 
 
I later discovered the IPECMD, which could also be used to flash the chip without user input.
In case it would help someone, it's installed with MPLAB X IDE. The read me with instructions are in the directory:
C:/Program Files (x86)/Microchip/MPLABX/v_.__/docs/Readme for IPECMD.htm
 
Kind regards,
Guyan
#4
Jump to:
© 2019 APG vNext Commercial Version 4.5