AS7 command prompt default folder path change?

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

Hello, when i load Atmel Studio 7 command prompt the default drive/folder path starts in(on my machine):  C:\Users\draftting 1\Documents>

Is there a way to change the default path at startup?

cd\ command will clear to c:\> which is desirable, or also typing my way to the folder i need.

The issue is i am trying to put batch files in the default loaded folder and hex files one folder down to be used and i would like control over that without typing in manually.

I believe the space in "draftting 1" is causing issues with atprogram saying unrecognized or ambiguous command right after draftting.

I will rename the machine if i have to :) Other than wanting load up path control, iv tested my batch and hex file in other folder paths without spaces in the folder name and it works fine.

 

Batchfile:
 

atprogram -t atmelice -i isp -d atmega128a write -fs --values 2f97ff program -c -fl -f C:\Users\Draftting 1\Documents\17360PGM\magsensor.hex

This topic has a solution.

~William

Last Edited: Thu. Sep 10, 2020 - 03:13 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote the path of it has spaces in it...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

My guess is it auto switches to %HOMEDRIVE%%HOMEPATH% in fact. So you could change those before you start AS7 perhaps?

 

But as for your error why not simply use?:

atprogram -t atmelice -i isp -d atmega128a write -fs --values 2f97ff program -c -fl -f "C:\Users\Draftting 1\Documents\17360PGM\magsensor.hex"

Quoting strings turns items with spaces into a single item as far as the command processor is concerned.

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

Thanks, the quotes solved my path issue and will let me setup up programming on any pc easy.

I double checked regular cmd and it loads to the same path, so i will research your suggestion clawson.

I do prefer the command prompt because production programing is hitting two key strokes and swapping a  connector without exiting, never touching the mouse.

 

There are old projects at the office that use older STK500 software programming with mkII programmers that 'just work' by mouse clicking a single batchfile.

Iv had issues trying to get the same functionality with AS7 as old projects now need to be programmable with the Atmel ICE and be as user friendly as possible.

Trying to get other people at the office to not have to change there GUI routine even though command prompt is better IMO.

 

~William

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

vertamps wrote:
Iv had issues trying to get the same functionality with AS7 as old projects now need to be programmable with the Atmel ICE and be as user friendly as possible.
AN2466 Using Atmel-ICE for AVR® Programming In Mass Production

Might also consider MPLAB IPE.

MPLAB® IPE - Developer Help

 

"Dare to be naïve." - Buckminster Fuller