Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need to compensate for missing quotes in flash bootloader (Read 1276 times)
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
Need to compensate for missing quotes in flash bootloader
Feb 4th, 2020 at 2:21pm
Print Post  
i thought maybe i should burn the bootloader.
failed  note path is missing slashes

Burning a new bootloader
Burning bootloader to board 'Arduino M0 Pro (Programming Port)' using 'Atmel EDBG'
Erase Pattern: 
Bootloader Pattern: "{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {runtime.platform.path}/bootloaders/{bootloader.file} verify reset; shutdown"
uino7\bin\openocd.exe -d2 -s duino7/share/openocd/scripts/" -f iants/arduino_mzero/openocd_scripts/arduino_zero.cfg" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program loaders/mzero/Bootloader_D21_M0_Pro_150427.hex verify reset; shutdown"
Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 03.25.01B6
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 400 kHz
Info : SWD DPIDR 0x0bc11477
Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread 
xPSR: 0x21000000 pc: 0x000028f4 msp: 0x20002c00
Burn bootloader failed with an exception
     The uploader process failed

Error while burning bootloader.
** Programming Started **
Burn failed
auto erase enabled
Error: couldn't open C:UserschrisAppDataLocal
rduino15packages
rduinohardwaresamd
.8.1/bootloaders/mzero/Bootloader_D21_M0_Pro_150427.hex
embedded:startup.tcl:477: Error: ** Programming Failed **
in procedure 'program' 
in procedure 'program_error' called at file "embedded:startup.tcl", line 536
at file "embedded:startup.tcl", line 477
« Last Edit: Feb 4th, 2020 at 5:05pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Need to compensate for missing quotes in flash bootloader
Reply #1 - Feb 4th, 2020 at 5:11pm
Print Post  
The definition is wrong. I have highlighted above to show how the author of the platform has quoted the telnet call that includes a long file name. The long file name should be escaped/quoted too. We do see this sometimes and will test to see if things work when we convert long paths to short 8.3 paths. Windows provides a short 8.3 alternative path so this is easy to test. 

I am not sure you need to burn a bootloader, I think that the upload issues you have encountered in a different post relates to your choice of programmer in atmel studio 7. Hopefully what I have explained in your upload post means that this is not a critical issue right now. 

It would be useful to try the same bootloader command in the arduino ide which might use 8.3.
  
Back to top
IP Logged
 
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
Re: Need to compensate for missing quotes in flash bootloader
Reply #2 - Feb 4th, 2020 at 6:07pm
Print Post  
everything works peachy in arduino IDE.  burn bootloader works fine, sketches compile, download and run fine.

however, i want edbg debugging!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Need to compensate for missing quotes in flash bootloader
Reply #3 - Feb 4th, 2020 at 7:34pm
Print Post  
Okay arduino must be using 8.3 we will look at that and fix the burn bootloader. Now that you have burnt a bootloader you won't need to do that again for now. So it will be looked at in a future update
« Last Edit: Feb 4th, 2020 at 7:35pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint