Skip to content

USB related warnings on SAM / Due #1874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
matthijskooijman opened this issue Feb 18, 2014 · 2 comments
Closed

USB related warnings on SAM / Due #1874

matthijskooijman opened this issue Feb 18, 2014 · 2 comments
Assignees
Labels
Component: Core Related to the code for the standard Arduino API Component: Toolchain The tools used for compilation and uploading to Arduino boards

Comments

@matthijskooijman
Copy link
Collaborator

I'm preparing a pullrequest to fix various warnings in both the AVR and SAM cores. However, there are few warnings in SAM that I'm not sure how to fix, since I'm not very familiar with that code. In case anyone has suggestions, here's the warnings:

sam/cores/arduino/USB/HID.cpp:148: warning: unused parameter 'i'
sam/cores/arduino/USB/USBCore.cpp:72: warning: "USB_MANUFACTURER" redefined
<command-line>:0: note: this is the location of the previous definition
sam/cores/arduino/USB/USBCore.cpp:94: warning: missing initializer for member 'DeviceDescriptor::idProduct'
sam/cores/arduino/USB/USBCore.cpp:94: warning: missing initializer for member 'DeviceDescriptor::deviceVersion'
sam/cores/arduino/USB/USBCore.cpp:94: warning: missing initializer for member 'DeviceDescriptor::iManufacturer'
sam/cores/arduino/USB/USBCore.cpp:94: warning: missing initializer for member 'DeviceDescriptor::iProduct'
sam/cores/arduino/USB/USBCore.cpp:94: warning: missing initializer for member 'DeviceDescriptor::iSerialNumber'
sam/cores/arduino/USB/USBCore.cpp:94: warning: missing initializer for member 'DeviceDescriptor::bNumConfigurations'
sam/cores/arduino/USB/USBCore.cpp:122: warning: unused parameter 'ep'
sam/cores/arduino/USB/USBCore.cpp:221: warning: unused parameter 'flags'

Possibly some of these are actual bugs, so I don't want to apply some kludge workaround without actually understanding the code.

@K-I-S-S
Copy link

K-I-S-S commented May 26, 2014

I MAY know what that is, ir should I say "If you fix that", you fix the problem I am having.

I'm using a Due on Linux 64 bit 12.04 LTS from CD. The Due uses ttyACM0.

I kept getting COM1 is unavailable in Linux?

I modified the preferences file and COM1 reappeared.

It was not until I did a ls -s /dev/ttyACM0 /dev/tty/USB0

The problem went away. This suggests a reassignment somewhere. 1.5.2-r2.

@sandeepmistry
Copy link
Contributor

I just tried build a sketch for the Due, and am no longer seeing these warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Related to the code for the standard Arduino API Component: Toolchain The tools used for compilation and uploading to Arduino boards
Projects
None yet
Development

No branches or pull requests

5 participants