-->
Page 2 of 3

Re: Has anyone got Serial.swap() to work?

PostPosted: Wed May 06, 2015 11:14 am
by russmathis
The setup() does have Serial.begin(9600).
The RFID tag is the RDM6300.

I've had some success.
Seems the repo I was using may have been old.
After updating to: https://github.com/rogerclarkmelbourne/arduino-esp8266/
the code builds and runs however, I cannot get VisualMicro to upload.
Using:
Visual Studio 2013 Professional
VisualMicro Latest beta for Arduino 1.6.3
And the above mentioned repo placed in the sketch folder/hardware directory
Compiles/builds with no errors
but the following output is generated when trying to upload:

Uploader will use programmer name: esptool
Error - Uploader was unable to find the required programmer: esptool on platform esp8266
Upload failed. Did you select the correct upload method for this board?
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(String buildPath, String className, Boolean verbose, Boolean ProgrammerUploadUsing, String mcuProgrammerOverrideName)
at processing.app.SketchEditor.Upload(Boolean verbose)


Anybody have and Idea about why MicroVisual can't find the esptool?
Thanks team for the help.

Re: Has anyone got Serial.swap() to work?

PostPosted: Sat May 16, 2015 4:35 pm
by nigelbe
No but esptool is found and used to create the two bin files ..._00000.bin and ...10000.bin

Re: Has anyone got Serial.swap() to work?

PostPosted: Mon May 18, 2015 3:26 am
by nigelbe
russmathis wrote:The setup() does have Serial.begin(9600).
The RFID tag is the RDM6300.

I've had some success.
Seems the repo I was using may have been old.
After updating to: https://github.com/rogerclarkmelbourne/arduino-esp8266/
the code builds and runs however, I cannot get VisualMicro to upload.
Using:
Visual Studio 2013 Professional
VisualMicro Latest beta for Arduino 1.6.3
And the above mentioned repo placed in the sketch folder/hardware directory
Compiles/builds with no errors
but the following output is generated when trying to upload:

Uploader will use programmer name: esptool
Error - Uploader was unable to find the required programmer: esptool on platform esp8266
Upload failed. Did you select the correct upload method for this board?
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(String buildPath, String className, Boolean verbose, Boolean ProgrammerUploadUsing, String mcuProgrammerOverrideName)
at processing.app.SketchEditor.Upload(Boolean verbose)


Anybody have and Idea about why MicroVisual can't find the esptool?
Thanks team for the help.


I think I've found the problem at least with the Generic ESP8266 uploader and Visual Micro

The first thing I did was to make sure the file programmers.txt (C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\programmers.txt) contains

Code: Select allesptool.name=esptool
esptool.communication=serial
esptool.protocol=esp
esptool.program.protocol=esp
esptool.program.tool=esptool
esptool.program.extra_params=

Which I got from an earlier release

next platform.txt in the same directory needs an extra line at the end:

Code: Select all#fixes for visual micro
tools.esptool.program.pattern="{path}/{cmd}" -cd {upload.resetmethod} -cb {upload.speed} -cp "{serial.port}" -ca 0x00000 -cf "{build.path}/{build.project_name}_00000.bin" -ca 0x10000 -cf "{build.path}/{build.project_name}_10000.bin"


Don't forget in AtmelStudio to press Tools->Visual Micro->Reload Toolchains

Best of luck

Nigel.

Re: Has anyone got Serial.swap() to work?

PostPosted: Fri May 22, 2015 12:50 pm
by russmathis
Hey, thanks, that worked for me!