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 upload fails on arduino m0 pro due to sketch.bin missing (Read 8433 times)
pierre-alain
Newbies
*
Offline


Posts: 2
Joined: Jul 24th, 2015
upload fails on arduino m0 pro due to sketch.bin missing
Jul 24th, 2015 at 3:26pm
Print Post  
Hello, I did not find this problem on existing topics, so I added this one:
I'm launching a "start without debugging command". No problem with the building of the sketch, but then the uploading on my arduino m0 pro board fails because it doesn't find the .bin file??
With arduino IDE 1.7.6 from arduino.org the sketch is uploaded without problem. 
Maybe my problem is that I configured Visual Micro with arduino 1.6? 1.7.6 is not proposed in the list, and m0 pro needs 1.7.6 IDE. I also tested to program a uno board with the same sketch and this works fine?
Thank you for your help,


Compiling 'ihmlcd' for 'Arduino M0 Pro (Programming Port)'
ld.exe:warning: section `.bss' type changed to PROGBITS
Binary sketch size: 28 756 bytes (used 11% of a 262 144 byte maximum) (7,50 secs)
Uploading to I/O board using 'COM10'
Open On-Chip Debugger 0.9.0 (2015-05-26-16:17)
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'swd'
adapter speed: 500 kHz
adapter_nsrst_delay: 100
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 = 02.01.0157
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 500 kHz
Info : SWD IDCODE 0x0bc11477
Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x81000000 pc: 0x000028b8 msp: 0x20002c08
** Programming Started **
auto erase enabled
Error: couldn't open /ihmlcd.bin
** Programming Failed **
shutdown command invoked
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: upload fails on arduino m0 pro due to sketch.bin missing
Reply #1 - Jul 24th, 2015 at 3:33pm
Print Post  
Hi,

Arduino.org ide is not supported because they have used a stupid version number that is confusing. 

Arduino 1.6.5 is supported if you use the board manager to install the standard Zero core published by Arduino.cc

Maybe the arduino.org uses the edbg programmer which, in Visual Micro, is on the "tools>visual micro>programmers" menu

Please also look in the build folder to see if the bin file is there.

Thanks

  
Back to top
IP Logged
 
pierre-alain
Newbies
*
Offline


Posts: 2
Joined: Jul 24th, 2015
Re: upload fails on arduino m0 pro due to sketch.bin missing
Reply #2 - Jul 24th, 2015 at 4:29pm
Print Post  
Well, of course I checked the folder, no .bin file is there, but I have .elf, .hex .map .cpp.o and .cpp file.

In tools/visual micro/programmers i have "M0 pro programming port", "atmel studio device programming" and "atmel studio atmel ICE ISP". 

I tried with M0 pro programming port but have this answer
Compiling 'ihmlcd' for 'Arduino M0 Pro (Programming Port)'
ld.exe:warning: section `.bss' type changed to PROGBITS
Binary sketch size: 28 756 bytes (used 11% of a 262 144 byte maximum) (1,53 secs)
Uploading to I/O board using 'M0 Pro Programming Port'
Error during upload using programmer
MCUPreference property not found: program.pattern
The uploader returned an error


In the previous post, I did not select any programmer in tools/visual micro.

Unfortunatly, m0 pro is not supported by 1.6.5 an zero core from arduino.cc not distributed in Europe Embarrassed.
Are there no solution to accomodate with what you call there stupid version number?

thanks!
 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: upload fails on arduino m0 pro due to sketch.bin missing
Reply #3 - Jul 24th, 2015 at 4:37pm
Print Post  
The problem with the version number is that for Arduino 1.0.x is one type of system, 1.5.x is another and since 1.6.2 there is a third. 

These version numbers are very important and arduino.org tried to be clever by telling the world they have version 7. However they used an older version of the arduino ide from before 1.6.2.

So the word stupid applies correctly because this is an internal dispute between arduino.cc and arduino.org that should not be transferred to you or me.

I will try to take a look at arduino.org this weekend to see what it is doing but no promises and I only have a genuine zero to test with.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: upload fails on arduino m0 pro due to sketch.bin missing
Reply #4 - Jul 24th, 2015 at 7:12pm
Print Post  
Are you sure 1.6.5 does not support the zero pro. I think Arduino.cc relaxed the rules. Did you try it?
« Last Edit: Jul 24th, 2015 at 7:12pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint