Hot answers tagged

3

The whole concept of Baud Rate with USB communication is completely meaningless. There is no such thing as "baud rate" over USB. What there is, and what you are confusing with "baud rate" is a configuration item which the host can send to the device which is a "I would like you to communicate with other devices at this speed" configuration item. This is ...


3

Use avrdude. The command format is simple, assuming you have installed it from the Linux repositories: avrdude -carduino -patmega328p -P/dev/ttyUSB0 -b115200 -Uflash:w:/path/to/project.bin.hex:i Depending on what bootloader is installed in your nano you may need to change the baud rate (-b115200) to 57600. Also, of course, the USB device should be set to ...


1

For those that hit the same issue, here is how I solved it: Expose the USB_SendSpace() information in the HID interface by editing /usr/local/arduino-1.8.12/hardware/arduino/avr/libraries/HID/src/HID.cpp u8 HID_::SendSpace(void) { return USB_SendSpace(pluggedEndpoint); } And adding the interface to class HID_ in: /usr/local/arduino-1.8.12/...


1

I have to sadly conclude that this issue posted was for nothing. the board I was using most likely has an underlying defect (of all odds, the 45 boards my teacher was using, he gives me 1 defect board? believable.) rendering the board inoperable. I plugged the board into an entirely different laptop, downloaded and installed a full IDE for it, ran it ...


1

In the Arduino IDE, the mcu will show up in Tools > Port. Your Arduino Nano will probably be visible at /dev/ttyUSB0 or /dev/ttyUSB1 following whatever is already plugged on USB. Make sure to select it. Select Nano in Tools > Board. Last step is Verify/Compile your code (^R), then Upload (^U). This link sounds to be a good read to start.


1

Running avrdude as root works. Adding permissions to ttyACM0/ttyACM1 for everybody also works. Execute sudo chmod 777 /dev/ttyACM0 sudo chmod 777 /dev/ttyACM1 and after that you should be able to compile and upload the code to the arduino The only issue with this is that you have to run that line everytime you connect the Arduino to the USB because ...


1

I use the Arduino IDE to 'build' everything. However, in case of a bigger project, I use a 'decent' code editor (Visual Studio in my case) to edit, and the Arduino IDE to build. Also, because I prefer testing all non-Arduino related code on the PC (not on the Arduino), the Visual Studio (C++) project uses some stub classes I created (specifically for my ...


1

You mean that the STK500 v2 programmer uses an emulated serial port rather than direct USB? Then I guess there is a bug in the Arduino IDE. The file programmers.txt contains the following lines describing the programmer: avrispmkii.name=AVRISP mkII avrispmkii.communication=usb avrispmkii.protocol=stk500v2 avrispmkii.program.protocol=stk500v2 avrispmkii....


Only top voted, non community-wiki answers of a minimum length are eligible