I'm folloing this video to build a DIY spacemouse. I'm trying the set up the custom bord. I copied the avr folder from C:\Users\Username\AppData\Local\Arduino15\packages\arduino\hardware to C:\Users\Username\Documents\Arduino\spacemouse\joy4_tt_v2 and the sketch is at C:\Users\Username\Documents\Arduino\spacemouse\joy4_tt_v2\joy4_tt_v2.ino. In avr I have C:\Users\Username\Documents\Arduino\spacemouse\joy4_tt_v2\avr\boards.txt changed to be:
Now the custom bord should show up in my IDE as Arduino AVR Boards (in Sketchbook) (spacemous). But it doesn't. The board that I use is a arduino mirco, but this video says that I have to treat it as a Leonardo. Also uploading works only sometimes. Most of the time if takes forever, like it's stuck in a endless loop. Can some one help me out.
(where <sketchbook location> is the path of your sketchbook folder e.g., C:\Users\Username\Documents\Arduino\)
Fix the structure and then restart Arduino IDE if it is running (Arduino IDE doesn't recognize changes you make manually to the installed platforms while the IDE is running). After that, you should see the "Spacemouse" board as expected.
I'm going to ask you to provide the full verbose output from a failed upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Uncheck the box next to Show verbose output during: ☑ compile in the "Preferences" dialog.
Check the box next to Show verbose output during: ☐ upload.
Click the "OK" button.
The "Preferences" dialog will close.
Attempt an upload, as you did before.
Wait for the upload to fail. ⓘ If the upload doesn't fail this time, just try again until it does fail.
You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the error output from the upload into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.