I tried ARIES board with arduino ide and got an following error

An error occurred while uploading the sketch
/home/swt/.arduino15/packages/vega/tools/vegaflasher/002/flasher.bat /dev/ttyUSB0 /tmp/arduino_build_245871/HelloWorld.ino.bin
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

You need to select the correct controller in the IDE and the board needs to have bootloader installed.

1 Like

Hi @ajinkya_jadhav. I see the problem here:

https://gitlab.com/riscv-vega/vega-flasher/-/blob/788b4f95439ffdbadeba52dddd522b7da4c7a452/flasher.bat#L3

sudo ${BASEDIR}/reset > /dev/null

It is possible the sudo is unnecessary in that command (I don't own one of these boards so I can't check myself). You can try removing it to see if that fixes the problem:

  1. Open the file at the following path in any text editor:
    /home/swt/.arduino15/packages/vega/tools/vegaflasher/002/flasher.bat
    
    :exclamation: The .arduino15 folder may be hidden by default in your file manager and terminal.
  2. Change line 3 of the file from:
    sudo ${BASEDIR}/reset > /dev/null
    
    to:
    ${BASEDIR}/reset > /dev/null
    
  3. Save the file.
  4. Try uploading the sketch to your Aries board again.
1 Like

thank you . i try it

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.