VS Arduino
>> >> Version Compatibility Issues (SOLVED: Updated Library Required Code Change)
https://www.visualmicro.com/forums/YaBB.pl?num=1576172139

Message started by Chuck_P on Dec 12th, 2019 at 5:35pm

Title: Version Compatibility Issues (SOLVED: Updated Library Required Code Change)
Post by Chuck_P on Dec 12th, 2019 at 5:35pm
I am currently using vMicro on Atmel Studio 7 with Arduino IDE to build code for Adafruit Metro M0 Express and Arduino Zero boards. My application includes an Adafruit Motor Shield V 2.3 and an Adafruit OLED display that uses an SSD1306 driver chip over SPI. These devices were working normally. However, over time, I had updated software versions of libraries, Atmel Studio, vMicro, and my Arduino IDE. To resolve a deep search compile failure, I since downgraded the Arduino IDE to 1.8.9.

Currently, my code builds without error, however the Adafruit OLED display is no longer working (remains blank) and motors controlled by the motor shield appear to spin up but stop responding to commands thereafter.

I do not have a debugger but other aspects of my code such as interrupts, LED control, and timer routines appear to work normally. I suspect library functions are not properly complied.

I would appreciate guidance regarding application versions that work nicely together.

Here is current version information:

[code]Atmel Studio 7 (Version: 7.0.2389 - )

Arduino IDE 1.8.9

OS Version: Microsoft Windows NT 6.2.9200.0
Platform: Win32NT

Installed Packages: Arduino IDE for Atmel Studio 7 - 1811.24.0
Arduino IDE for Atmel Studio 7
Version: 1811.24.0
Package GUID: 324cac6d-ff67-4e2e-8fc9-7a587b2d6045
Company: Arduino Team @ Visual Micro


Installed Packages: Shell VSIX manifest - 7.0
Shell VSIX manifest
Version: 7.0
Package GUID: e874ffe4-fbe3-4624-9a17-61014ede02d0
Company: Atmel Corporation


Installed Packages: Atmel Start - 1.0.162.0
Atmel Start
Version: 1.0.162.0
Package GUID: F8853255-9C7B-4DC2-8E0F-64D9324AEB0E
Company: Atmel


Installed Packages: Atmel Software Framework - 3.47.0.1648
ASF
Version: 3.47.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.47.0
Release Description: ASF - 3.47.0 Release

ASF
Version: 3.46.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.46.0
Release Description: ASF - 3.46.0 Release

ASF
Version: 3.45.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.45.0
Release Description: ASF - 3.45.0 Release

ASF
Version: 3.44.1
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.44.1
Release Description: ASF - 3.44.1 Release

ASF
Version: 3.44.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.44.0
Release Description: ASF - 3.44.0 Release

ASF
Version: 3.43.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.43.0
Release Description: ASF - 3.43.0 Release

ASF
Version: 3.42.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.42.0
Release Description: ASF - 3.42.0 Release

ASF
Version: 3.41.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.41.0
Release Description: ASF - 3.41.0 Release

ASF
Version: 3.40.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.40.0
Release Description: ASF - 3.40.0 Release

ASF
Version: 3.39.0
Package GUID: 4CE20911-D794-4550-8B94-6C66A93228B8
Company: Atmel
HelpUrl: http://asf.atmel.com/3.39.0
Release Description: ASF - 3.39.0 Release



Installed Packages: LiveWatch - 2.0.65
LiveWatch
Version: 2.0.65
Package GUID: 7DF6DCFD-2BCA-41C7-9C0E-1B7F606B008E
Company: Atmel


Installed Packages: GdbConsole - 7.0.188
GdbConsole
Version: 7.0.188
Package GUID: 49258291-0FED-4501-881B-6BAA91BEBCA8
Company: Atmel


Installed Packages: Atmel Kits - 7.0.129
Atmel Kits
Version: 7.0.129
Package GUID: 6F4B8FE4-C464-4916-8B43-AC92431C1CDF
Company: Atmel


Installed Packages: AtmelToolchainProvider - 7.0.908
AtmelToolchainProvider
Version: 7.0.908
Package GUID: AtmelToolchainProvider.Atmel.10EF9C74-D8DA-4872-85F5-D8BB3101E245
Company: Atmel


Installed Packages: Data Visualizer Extension - 2.20.735
Data Visualizer Extension
Version: 2.20.735
Package GUID: 25dc067d-df31-4e22-be7f-cc6a77ccc7f3
Company: Atmel


Installed Packages: Microchip Gallery - 8.1.0
Microchip Gallery
Version: 8.1.0
Package GUID: AtmelStudio7ExtensionManager
Company: Microchip


Installed Packages: Visual Assist for Atmel Studio - 10.9.2332.2
Visual Assist for Atmel Studio
Version: 10.9.2332.2
Package GUID: 7997A33C-B154-4b75-B2AC658CD58C9510
Company: Whole Tomato Software



[/code]

Title: Re: Version Compatibility Issues
Post by Visual Micro on Dec 12th, 2019 at 5:45pm
Please follow the guide in yellow above.

Title: Re: Version Compatibility Issues
Post by Chuck_P on Dec 13th, 2019 at 9:12pm
:)

I solved my OLED display issue. Perhaps the solution will help someone else as well. The Adafruit display used digital pin 4 as the OLED_RESET pin. I had not declared this pin as an output in my code. Eariler versions of Adafruit's library must have configured the pin and my code worked. After updating their library, the display ceased to work. I assume they removed the declaration for some reason. After adding the declaration into my code, the display is functional once again. This was a bit tricky to debug.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.