Error hid project can only be used with an usb mcu

Использую arduino 1.8.6. При проверки выдаёт ошибку Gamepad_ProjectKPP:31:3: error: 'Gamepad' was not declared in this scope exit status 1 'Gamepad' was not declared in this scope Сам код. const int pinButton2 = 2; const int pinButton4 = 4; void setup() { pinMode(pinButton2...

  • #1

Использую arduino 1.8.6.

При проверки выдаёт ошибку

Gamepad_ProjectKPP:31:3: error: 'Gamepad' was not declared in this scope
exit status 1
'Gamepad' was not declared in this scope

Сам код.

const int pinButton2 = 2;

const int pinButton4 = 4;


void setup() {

  pinMode(pinButton2, INPUT_PULLUP);

  pinMode(pinButton4, INPUT_PULLUP);


  Gamepad.begin();

}


void loop() {


   if (!digitalRead(pinButton2))

   Gamepad.press(2);

  else

    Gamepad.release(2);

 

  if (!digitalRead(pinButton4))

    Gamepad.press(4);

  else

    Gamepad.release(4);


  Gamepad.write();

}

  • #2

Использую arduino 1.8.6.

При проверки выдаёт ошибку

Gamepad_ProjectKPP:31:3: error: 'Gamepad' was not declared in this scope
exit status 1
'Gamepad' was not declared in this scope

Сам код.

const int pinButton2 = 2;

const int pinButton4 = 4;


void setup() {

  pinMode(pinButton2, INPUT_PULLUP);

  pinMode(pinButton4, INPUT_PULLUP);


  Gamepad.begin();

}


void loop() {


   if (!digitalRead(pinButton2))

   Gamepad.press(2);

  else

    Gamepad.release(2);



  if (!digitalRead(pinButton4))

    Gamepad.press(4);

  else

    Gamepad.release(4);


  Gamepad.write();

}

если это весь код, то не хватает библиотеки описывающей класс Gamepad , если нет то кидайте весь скетч…

  • #3

если это весь код, то не хватает библиотеки описывающей класс Gamepad , если нет то кидайте весь скетч…

Это весь код. Я искал библиотеку Gamepad, не нашел.
Можно этот код переписать, чтобы он работал без этой библиотеки?

  • #5

Помогло но сейчас появилась новая ошибка.

Не используется: E:DocumentsArduinolibrariesHID-2.5.0
E:DocumentsArduinolibrariesHID-Projectsrc/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.

 #error HID Project can only be used with an USB MCU.

  ^

exit status 1
Ошибка компиляции для платы Arduino Pro or Pro Mini.
Выбранная папка/zip файл не содержит корректных библиотек

Your_Andrew


  • #6

Нужно библиотеку GamePad перенести в папку где храняться все библиотеки Ардуино.

  • #7

Arduino UNO тебе поможет,
нельзя просто брать и копировать чей-то проект смотри для каких плат его проектировали…

  • #8

Arduino UNO тебе поможет,
нельзя просто брать и копировать чей-то проект смотри для каких плат его проектировали…

Этот код для рычага кпп для кнопок. Ясно, все спасибо за помощь.

Изменено: 27 Янв 2019

  • #9

Arduino UNO тебе поможет,
нельзя просто брать и копировать чей-то проект смотри для каких плат его проектировали…

МОЖНО и НУЖНО, иначе зачем всё это?

AlexGyver


  • #10

@Gogsia, библиотека работает только с Leonardo/Micro/Pro Micro

  • #11

Здравствуйте.
Столкнулся с такой же проблемой «error HID Project can only be used with an USB MCU». Получается между платами есть какая-то разница в реализации USB? Ткните носом пожалуйста, где про это можно прочитать подробнее? Хочется понять на будущее возможные проблемы у USB при выборе плат для проектов.
Спасибо.

  • #12

Короче разница в том, что у одних плат контроллер это отдельный чип и он убогий, у других же поддержка USB нативная в самом контроллере.

Hello!

I’m trying to upload a sketch to my Arduino UNO that allows it to receive signals from a GameCube controller and be used as a USB-device. I have followed every step on this page: https://github.com/NicoHood/HID but I keep getting this error:

Arduino:1.7.10 (Mac OS X), Card:"Arduino Uno"

Build options changed, rebuilding all
In file included from Gamecube_USB_HID.ino:1:0: 
/Users/myName/Documents/Arduino/libraries/HID-master/src/HID-Project.h:35:2: error: #error HID Project     can only be used with an USB MCU.
 #error HID Project can only be used with an USB MCU.
  ^
In file included from /Users/nyName/Documents/Arduino/libraries/HID-master/src/HID-Project.h:39:0,
                 from Gamecube_USB_HID.ino:1:
/Users/myName/Documents/Arduino/libraries/HID-master/src/SingleReport/SingleAbsoluteMouse.h:28:26:     fatal error: PluggableUSB.h: No such file or directory
 #include "PluggableUSB.h"
                          ^
compilation terminated.

Does anyone know how to fix this? I thought that the Arduino UNO had an MCU with the HoodLoader2.

Thank you very much for your time.

All the best, pin_kRobot

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

 
 

Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled

 

Save the new Output to a Text File and….

  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  VS Arduino › › › Compiling Issue for Arduino Uno running Hoodloader2

Hot Topic (More than 8 Replies) Compiling Issue for Arduino Uno running Hoodloader2 (Read 3222 times)


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Compiling Issue for Arduino Uno running Hoodloader2

May 9th, 2020 at 9:11pm

Print Post
 

I can’t seem to get my installation of Visual Micro to compile any code when compiling for Arduino Uno running Hoodloader2(https://github.com/NicoHood/HoodLoader2). I can compile/upload the code in the default Arduino IDE, but not in Visual Micro. I’ve tried choosing all relevant options for board libraries (Hoodloader16u2 and Hoodloader2 Uno, the Uno option works properly in Arduino IDE) but no luck. I did create a board.txt file and add «vm.ctags=false» because that did pop up in the output at one point.

Need some help, I hate having to write my code in vmicro but then compile in Arduino IDE! Embarrassed

Back to top

IP Logged
 


Tim@Visual Micro

Administrator

*****
Offline

Posts: 11684
Location: United Kingdom

Joined: Apr 10th, 2010

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #1 — May 10th, 2020 at 12:38pm

Print Post
 

Hi,

There is an update due to be released but you can download it from here.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

If that doesn’t help then please follow the guide in yellow above.

Thanks

Back to top

WWW
 

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #2 — May 11th, 2020 at 6:58pm

Print Post
 

Hi,

I’ve tried installing, no luck unfortunately. I have attached the requested .txt


Please Register or Login to the Forum to see File Attachments

Back to top

IP Logged
 


Tim@Visual Micro

Administrator

*****
Offline

Posts: 11684
Location: United Kingdom

Joined: Apr 10th, 2010

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #3 — May 11th, 2020 at 7:46pm

Print Post
 

It would be useful to see the arduino ide verbose output but I suspect the issue is related to an out of date board manager arduino avr package. The avr is also installed below the arduino ide and I guess arduino is using that when visual micro is using the one you have in board manager. 

I see you have a custom board.txt and there is a non-arduino hood platform with a modified platform.txt that relies on a later avr toolchain than the one in board mnager.

Solutions

One solution is to use board manager to update your downloaded arduino tool chains. 

Another solution is to dump the downloaded arduino board manager package by deleting «C:UsersmonkeAppDataLocalarduino15packagesarduino». This would mean using board manager to re-download any arduino 32 bit packages that you use but this time don’t download the Arduino AVR package.

Restarting Visual Studio or click the Rescan option should then build okay.

Back to top

WWW
 

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #4 — May 12th, 2020 at 8:41pm

Print Post
 

Sorry but I don’t think I understand. I’ve tried deleting the file suggested and updating with board manager but I’m not having any luck. Everything seems up to date (vMicro, Arduino, and Hoodloader2)

Back to top

IP Logged
 


Tim@Visual Micro

Administrator

*****
Offline

Posts: 11684
Location: United Kingdom

Joined: Apr 10th, 2010

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #5 — May 12th, 2020 at 8:48pm

Print Post
 

Please delete this folder and restart Visual Studio C:UsersmonkeAppDataLocalarduino15packagesarduino

If you have a problem after that please provide the build output in yellow above again so we can see the config has changed.

« Last Edit: May 12th, 2020 at 8:49pm by Tim@Visual Micro »  

Back to top

WWW
 

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #6 — May 12th, 2020 at 10:51pm

Print Post
 

Okay, so after deleting that folder and restarting this is the output. I do appreciate the time


Please Register or Login to the Forum to see File Attachments

Back to top

IP Logged
 


Tim@Visual Micro

Administrator

*****
Offline

Posts: 11684
Location: United Kingdom

Joined: Apr 10th, 2010

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #7 — May 13th, 2020 at 11:36am

Print Post
 

What is in your board.txt?

There appears to be an entry for vm.ctags=false. Can you remove this entry and try building again?

« Last Edit: May 13th, 2020 at 4:48pm by Simon@Visual Micro »  

Back to top

WWW
 

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #8 — May 13th, 2020 at 5:44pm

Print Post
 

That was actually the only entry in the board.txt file. Here is a the output with that entry removed.


Please Register or Login to the Forum to see File Attachments

Back to top

IP Logged
 


Tim@Visual Micro

Administrator

*****
Offline

Posts: 11684
Location: United Kingdom

Joined: Apr 10th, 2010

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #9 — May 13th, 2020 at 6:06pm

Print Post
 

Thanks. Please switch off debugging and submit the report again. It’s easier to diagnose without debug.

Back to top

WWW
 

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #10 — May 14th, 2020 at 2:14am

Print Post
 

Round 2!


Please Register or Login to the Forum to see File Attachments

Back to top

IP Logged
 


Simon@Visual Micro

Administrator

*****
Offline

Posts: 1637

Joined: Feb 13th, 2019

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #11 — May 14th, 2020 at 10:14am

Print Post
 

Would it be possible to attach or email over a copy of the sketch in use in this scenario?

I am having trouble replicating this reliably at present (as not ofay with the HoodLoader2 bundle), and not sure which example is best to replicate (from HID Library, or Hoodloader2 Package)

Back to top

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #12 — May 14th, 2020 at 8:25pm

Print Post
 

I tried attaching but it seems my solution is too big. So I’ve linked to a dropbox that contains the code. 
Dropbox Link: https://www.dropbox.com/sh/050iuii6e0t6eur/AAD5tseKIoborMdC6SJfC2hJa?dl=0

If you prefer email, should I email this to sales@visualmicro.com? If so does it matter what email I send from?

Back to top

IP Logged
 


Simon@Visual Micro

Administrator

*****
Offline

Posts: 1637

Joined: Feb 13th, 2019

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #13 — May 15th, 2020 at 12:12pm

Print Post
 

Thanks for the solution, and I have managed to repro this, but only with what appears to be the wrong board (from the output given in compilation).

Using: Arduino 1.8.12, HID Library v1.0 (from Arduino IDE) , and v2.0.5 of the Hoodloader board package, with HID-master lib 2.6.1, which all seems to be the same.
It builds for me on the HoodLoader216u2 board in both Arduino IDE and Visual Micro.
It fails on the Hoodloader2 Uno board in both Arduino IDE and Visual Micro for the same reason, though this is not clear from the output in vMicro at present.

Code

Select All

librariesHID-mastersrc/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU. 

Could you attach the log from the Arduino IDE as well, with the Preferences > Show Versbose Output > Compilation option checked, and confirm which board is selected, and IDE version?

Back to top

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #14 — May 15th, 2020 at 6:08pm

Print Post
 

So something strange has happened. Previously I was compiling successfully in Arduino IDE using the «Hoodloader2 Uno» option, but now that one is not working. When I switch it to «16u2» the code compiles and uploads fine. So I tried again using vMicro, the «Hoodloader2 Uno»option doesn’t work but the «16u2» option not only compiles successfully but uploads. Hmmm.

Would you still like to see the output? At this point I feel bad using up your time and am just happy that I can finally develop in MS Visual Studios properly now.

Back to top

IP Logged
 


Tim@Visual Micro

Administrator

*****
Offline

Posts: 11684
Location: United Kingdom

Joined: Apr 10th, 2010

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #15 — May 15th, 2020 at 6:33pm

Print Post
 

Thanks for the update and thought. It helps other users to know about these issues and to understand how to resolve.

I am sure Simon will have some questions or observations for you early next week. 

One point of note is that it is possible you were previously using an older hood package in Board Manager. You could try using Arduino IDE Board Manager to install an older version. Then restart Visual Micro.

« Last Edit: May 15th, 2020 at 6:33pm by Tim@Visual Micro »  

Back to top

WWW
 

IP Logged
 


DeDz

Newbies

*
Offline

Posts: 9

Joined: May 9th, 2020

Re: Compiling Issue for Arduino Uno running Hoodloader2

Reply #16 — May 15th, 2020 at 7:05pm

Print Post
 

Certainly! I’ll keep checking and try to help as much as I can. I appreciate the effort from you guys. I was worried this wouldn’t get resolved and I’d be stuck.  Wink

Back to top

IP Logged
 

User avatar

RetroGamingNow

Posts: 137
Joined: Fri Jul 15, 2016 7:55 pm
Has thanked: 9 times
Been thanked: 24 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

wermy wrote:For OSX users: I was able to program the board using the following steps:

Follow the instructions here to install the sparkfun boards for the Arduino IDE to use: https://github.com/sparkfun/Arduino_Boards
Wire up a button (or even just two wires that you momentarily press together to act as a button) to the RESET and GND pins on the board

In the Arduino IDE under the Tools menu:
Select Sparkfun Pro Micro for the Board option
Select ATMega32U4 5V, 16MHz for Processor
Select AVRISP for Programmer (NOT «AVR ISP mkii»)

Press the Upload button in the Arduino IDE
Immediately press the reset button you wired up (or touch the wires together for a moment)
It should program it just fine!

I cant seem to get this to work. I was able to do everything you said above but seems like my MAC is not installing whatever drivers are necessary for this USBasp. What am i doing wrong?


User avatar

SwingeyP

Posts: 14
Joined: Mon Jul 25, 2016 2:48 am
Has thanked: 1 time
Contact:

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by SwingeyP » Mon Aug 15, 2016 4:48 am

Hello again @Helder

I tried the board with a windows 7 laptop from work. Same result I am afraid.

I ordered two boards from you and so decided to wire up the second. This gives excatly the same result when connected to win10, Win7 and thePiZero. Weird to say the least. Both boards seem to program ok via the USBASP programmer. I just get nothing when connecting. No gamepads detected. No HID just an error reporting that the USB device connected has malfunctioned and an ‘unrecognised USB device’ in the device manager.

I find it hard to believe that both boards would not function in this way and i’m sure it’s me doing something wrong. I have followed all the support threads wired up exactly as you describe. Swapped the D+ and D- wires just to check in all setting but still nothing.

I have built several arcade machines in the past using MAME and KADE. As a test I configued the KADE and tried that with my Win10 and WIn 7 machines. That worked no problem. I then connected that to the PiZero. Worked a treat! The problem doesn’t appear to be with the USB on my machines or the PIZero.

Back to the AIO board I connected the USB from PI Zero connections to a USB to SERIAL convertor PCB. This allowed me to connect to COM1 and try a serial port ‘sniffer’ to see if anyting was going on. This also failed. Nothing happening at all when buttons pressed :-(

I’m sorry to be the one giving so much agro as everyone else seems to be up and running with no hassle.

What should I try next?

Thanks for all your help.

Paul.


User avatar

Popcorn

Trailblazer
Trailblazer
Posts: 354
Joined: Thu May 05, 2016 12:58 am
Location: Berlin
Has thanked: 29 times
Been thanked: 71 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by Popcorn » Mon Aug 15, 2016 9:10 am

For OSX, if you don’t have the «Sparkfun Pro Micro» board listed in Tools / Boards, then do the following:

In the main menu bar, go to the «Arduino menu» and «Preferences»

In the last field titled «Additional Boards Manager URLs» field, enter this url:

Code: Select all

https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json

and press OK. Then go to Tools / Boards / Boards Manager.

Select Type «Contributed» and select «SparkFun AVR Boards» and «Install» and then «Close». Then in Tools / Boards, you should be able to select «SparkFun Pro Micro».

From there, just follow Wermy’s instructions from there.


o-prime

Posts: 14
Joined: Wed Jun 22, 2016 2:27 pm
Location: Germany
Has thanked: 11 times
Been thanked: 1 time

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by o-prime » Fri Sep 09, 2016 5:00 am

I want to program the AIO PCB with the new controller sketches. But i get this error code while uploading:

…DesktopArduinoGBZ_ControllerNoAnalogGameboy.hexGameboy.hex.ino:1:21: fatal error: Gamepad.h: No such file or directory#include <Gamepad.h>^compilation terminated.exit status 1

Is this because this bootlaoder problem and i have to buy a USBASP to make it work?


User avatar

Helder

Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by Helder » Mon Sep 12, 2016 5:58 pm

o-prime wrote:I want to program the AIO PCB with the new controller sketches. But i get this error code while uploading:

…DesktopArduinoGBZ_ControllerNoAnalogGameboy.hexGameboy.hex.ino:1:21: fatal error: Gamepad.h: No such file or directory#include <Gamepad.h>^compilation terminated.exit status 1

Is this because this bootlaoder problem and i have to buy a USBASP to make it work?

You need to download a library for it, use the images below to install the one I have highlighted.

Image

Image

Chat with me and other members On Discord

Don’t contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.

Helder’s Game Tech Website

We will not support any cloned work so don’t come to us with technical issues to resolve, go talk to the cloner for help.


User avatar

solder

Posts: 71
Joined: Thu May 05, 2016 3:27 am
Has thanked: 26 times
Been thanked: 14 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by solder » Sat Oct 15, 2016 3:40 pm

Thx @Helder, went for it & flashed successfully on OSX using a piece of wire :o
3 tries after i noticed i was missing some Arduino library ;D

done.png
done.png (5.65 KiB) Viewed 9639 times


larsen2011

Posts: 35
Joined: Sun Jul 17, 2016 11:37 am
Has thanked: 16 times
Been thanked: 4 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by larsen2011 » Thu Oct 20, 2016 10:55 am

Also trying to use this update method, fixed the first problem (same as above for solder), now struggling with this:

In file included from D:DocumentsArduinoNew GBZ Controller SketchesGamepadNoAnalog-HIDGamepadNoAnalog-HID.ino:1:0:

D:DocumentsArduinolibrariesHID-Projectsrc/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.

#error HID Project can only be used with an USB MCU.

Any idea how to solve it @Helder?


User avatar

Helder

Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by Helder » Thu Oct 20, 2016 12:58 pm

larsen2011 wrote:Also trying to use this update method, fixed the first problem (same as above for solder), now struggling with this:

In file included from D:DocumentsArduinoNew GBZ Controller SketchesGamepadNoAnalog-HIDGamepadNoAnalog-HID.ino:1:0:

D:DocumentsArduinolibrariesHID-Projectsrc/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.

#error HID Project can only be used with an USB MCU.

Any idea how to solve it @Helder?

Pictures of what you have chosen as your MCU is helpful. Be sure to choose the Leonardo as the MCU in the Auduino IDE.

Chat with me and other members On Discord

Don’t contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.

Helder’s Game Tech Website

We will not support any cloned work so don’t come to us with technical issues to resolve, go talk to the cloner for help.


larsen2011

Posts: 35
Joined: Sun Jul 17, 2016 11:37 am
Has thanked: 16 times
Been thanked: 4 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by larsen2011 » Thu Oct 20, 2016 1:48 pm

I’m a complete newbie to this Arduino topic… Sorry @helder

I’ve not chosen anything.
I’ve connected everything as per the first post, and used the software linked / the sketches linked and went through the guide. As mentioned, I was able to get rid of the first error message, as it was the same as @solder , now I don’t know what to do now.

After connecting my board to the PC it showed up as «Arduino Leonardo» and not as the «Sparkfun» as shown in your pictures.

If there is another thread or external link that I can read through to get this solved, please share. Or let me please know what settings I need to change / choose in the software.

Thanks!


User avatar

Helder

Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: How to Program Helder’s All in One GBZ PCB with Arduino IDE

Post

by Helder » Thu Oct 20, 2016 3:12 pm

larsen2011 wrote:I’m a complete newbie to this Arduino topic… Sorry @helder

I’ve not chosen anything.
I’ve connected everything as per the first post, and used the software linked / the sketches linked and went through the guide. As mentioned, I was able to get rid of the first error message, as it was the same as @solder , now I don’t know what to do now.

After connecting my board to the PC it showed up as «Arduino Leonardo» and not as the «Sparkfun» as shown in your pictures.

If there is another thread or external link that I can read through to get this solved, please share. Or let me please know what settings I need to change / choose in the software.

Thanks!

Do everything that is on the first post and get the new sketches and when you choose the board you choose this:
Image

Be sure the board goes into the bootloader mode by using a switch or jumper wire from any GND point to the Reset on the ISP header area. Once you do go into bootloader choose the Com Port that shows in the COM Port menu in the above picture.

Chat with me and other members On Discord

Don’t contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.

Helder’s Game Tech Website

We will not support any cloned work so don’t come to us with technical issues to resolve, go talk to the cloner for help.


Who is online

Users browsing this forum: No registered users and 1 guest

Страница 1 из 2

  1. Arduino: 1.8.1 (Windows 7), Плата:»Arduino/Genuino Uno»

    Скетч использует 876 байт (2%) памяти устройства. Всего доступно 32256 байт.
    Глобальные переменные используют 9 байт (0%) динамической памяти, оставляя 2039 байт для локальных переменных. Максимум: 2048 байт.
    avrdude: ser_open(): can’t open device «\.COM3»: Не удается найти указанный файл.

    Проблема загрузки в плату. Помощь по загрузке: http://www.arduino.cc/en/Guide/Troubleshooting#upload .
    Неверная библиотека найдена в C:UsersСветланаDocumentsArduinolibraries__MACOSX: C:UsersСветланаDocumentsArduinolibraries__MACOSX
    Неверная библиотека найдена в C:UsersСветланаDocumentsArduinolibraries__MACOSX: C:UsersСветланаDocumentsArduinolibraries__MACOSX

    не могу понять,почему не загружается в плату(

  2. Порт недоступен. Проверьте состояние порта в менеджере устройств. Либо неверный порт выбрали, либо проблема с драйвером.


    Yaroduino и tizzer нравится это.

  3. У меня тоже такое было. Если к ней что то подключено — всё отключите, и переподключите ардуино к компу. Если не помогло тогда надо прошить загрузчик через другую ардуину. Подробнее: КЛИК
    Сам решил эту проблему таким образом. Удачи!

    У меня тоже такое было. Если к ней что то подключено — всё отключите, и переподключите ардуино к компу. Если не помогло тогда надо прошить загрузчик через другую ардуину. Подробнее: КЛИК
    Сам решил эту проблему таким образом. Удачи!

  4. здравствуйте у меня таже ошибка, посмотрел в диспетчере устройств порта нет, подскажите, пожалуйcта, как разблокировать этот порт.

    Последнее редактирование: 6 ноя 2017

  5. Драйвер не установлен, либо установлен неподходящий. VID/PID какие?

  6. Спасибо, драйвера не те переустановил, заработало.

  7. помогите пожалуйста вот такая ошибка что делать
    Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Плата:»Arduino/Genuino Uno»
    In file included from C:UserskinziAppDataLocalTempRar$DIa3284.20021Logitech_Shifter_USBLogitech_Shifter_USB.ino:1:0:
    C:UserskinziDocumentsArduinolibrariesJoysticksrc/Joystick.h:32:2: error: #error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
    #error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
    ^
    exit status 1
    Ошибка компиляции для платы Arduino/Genuino Uno.
    Этот отчёт будет иметь больше информации с
    включенной опцией Файл -> Настройки ->
    «Показать подробный вывод во время компиляции»

  8. Для уны пытаетесь использовать библиотеку для работы с юсб-джостиком.
    Вы уверены, что вам это нужно?

  9. не важно, уверен он или нет — работать все равно не будет :)

  10. чтобы оно не_работало, его для начала необходимо скомпилировать. А здесь даже это не идет. Ну, компилятор-то тупой и исполнительный. Дурак, вообщем.

  11. ну это-то не проблема — пррверку на тип МК выкинуть и все :)

  12. Здравствуйте, подскажите пожалуйста что это и как это исправить?

    Arduino: 1.8.9 (Windows 8.1), Плата:»Arduino/Genuino Uno»

    Скетч использует 930 байт (2%) памяти устройства. Всего доступно 32256 байт.
    Глобальные переменные используют 9 байт (0%) динамической памяти, оставляя 2039 байт для локальных переменных. Максимум: 2048 байт.
    Скетч использует 930 байт (2%) памяти устройства. Всего доступно 32256 байт.
    Глобальные переменные используют 9 байт (0%) динамической памяти, оставляя 2039 байт для локальных переменных. Максимум: 2048 байт.
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20
    Произошла ошибка при загрузке скетча

    Этот отчёт будет иметь больше информации с
    включенной опцией Файл -> Настройки ->
    «Показать подробный вывод во время компиляции»

  13. слетел загрузчик. Как прописать — и здесь и в сети инфы валом.

  14. крайне распространенная ошибка. Вариантов много — плохой USB кабель или разъем, слетел загрузчик на ардуино. дохлая плата и тд

  15. Добавлю от себя-не та плата выбрана.УНО может быть Duemilanove или наоборот.

  16. от себя добавлю — скорости порта и загрущика не савподають.

  17. Здравствуйте, а как настроить скорость загрузчика

  18. Тык — там внизу есть описание ошибок и возможные решения, посмотрите

  19. Здравствуйте, а как настроить скорость загрузчика.
    Вариант не установленных драйверов исключён?
    Используемый провод 4-х жильный и не повреждён.

Страница 1 из 2

@me-no-dev I did a bit of reading and discovered that. Stopping it and restarting solves it. I’m wondering if we can do something about it. The wifiudp class inherits from the class so u can stop all and stop all except. I’m wondering if we can extend that to the udpcontext so that they can be stop started and paused, as there are plenty of libs that role their own udp implementation using just udpcontext and not wifiudp.

Christian Schneider

@cschneider

@rneurink Thanks .. will look into it

the error: HID Project can only be used with an USB MCU

previously, i had flash my arduino uno, with HoodLoader2.0.5 bootloader

@josemlp91 Did you read the «read me»? It doesn’t support Esp.

Ghost

@ghost~58924f23d73408ce4f47802b

is anyone interested in having serialEvent implemented? —> see esp8266/Arduino#752

RASGO.XYZ

@rasgo_xyz_twitter

have anyone here used eboot with an an UART instead of WiFi (OTA) ?

this would be useful in case you want to program esp8266 with an external MCU an still have a fallback method: if the upload fails the older app can still run

Ivan Kravets

@ivankravets

@me-no-dev @igrr

regardless of the plans/dates we should make the staging branch for pio behave the same as on ESP32

Done! Would be thankful for a merge.

  • esp8266/Arduino#3321

Is there already a release to use the 16M of the Wemos D1 mini pro?

@igrr @me-no-dev
Dear Sirs, I am using Arduino ESP8266 Core version 2.3.0 and I observed abnormal ESP Free Heap reduction, especially when I used sprintf in a function that is executed offen each 2 seconds. Do you know anything about this?
Using exactly the same code, but doing string manipulation using different way -not sprintf but String- this memory leakage seems minimal.
What do you think about? Thanks in advance. Best Regards, Mike Kranidis

No, unfortunately the problem wasn’t sprintf related… I don’t know…

Ghost

@ghost~58924f23d73408ce4f47802b

question: my knowledge doesn’t reach far enough to understand why Is can’t use the F()-macro in inline functions.

@bertmelis You make a statement without details about not being able to use F() when calling an inline. Can you provide a snippit of the code and the error you get? Is it a compile error or an exception?

Ghost

@ghost~58924f23d73408ce4f47802b

I see now that my statement was indeed not very verbose…

I’s a compile error: error: __c causes a section type conflict with __c

I’m writing a library for some special serial communication. For debugging, I inserted a number of messages, also in a class method I declared «inline». The statement itself is pretty straighforward:

_debugPrinter->println(F("Checksum OK"));

The compile error:

....platformiopackagesframework-arduinoespressif8266coresesp8266/pgmspace.h:21:51: error: __c causes a section type conflict with __c
#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
^

Ghost

@ghost~58924f23d73408ce4f47802b

Is it something architectural? I thought the PROGMEM strings are «global» which is in conflict with the inline use.

Martin Ayotte

@martinayotte

@brutzler , just follow this esp8266/Arduino#2351

Hey, I was using a nodemcu and a wemos d1 mini for an led project. I was powering them with a TP4056 with parallel 18650s. I was powering the boards and the leds with the TP4056 and 18650s. The webserver I used to change patterns programmed with fastled worked for a good 30 minutes, then when I changed to a certain pattern the nodemcu and wemos d1 mini both crashed and started doing watchdog resets.

after it tries to start up the webserver. Did I fry the 1117 voltage regulator

or the shokkty diode?, I need to get a 9v battery for my multimeter, but I am wondering if anyone else has had this issue powering ws2812b led lights and a nodemcu and or a wemos d1 mini with 18650s and a TP4056

i also tried another setup with the led lights getting their own 18650s with a TP4056, and the nodemcu / wemos d1 mini with its own 18650 and TP4056, and the same thing happened after a few minutes.

@bertmelis What is the signature of your println function? Where are you calling this from?
The progmem are global, the __c is static and defined within a scope making them global and unique.
Did you search for section type conflict error?

Ghost

@ghost~58924f23d73408ce4f47802b

It is called from within a library I created. I’ll try to reproduce in a simple example.

Ghost

@ghost~58924f23d73408ce4f47802b

I can’t reproduce using a simple example (maybe it’s too simple, but I don’t know where my error comes from). My real life example is residing in https://github.com/bertmelis/VitoWifi. I can’t put any PROGMEM debug messages in Optolink.cpp inside the inline checksum methods.

(you may find the lib written badly, but I’m only auto-didacting since a couple of months)

Lars Englund

@larsenglund

Should I dig for the problem in ESP8266mDNS.cpp?

(line 261 contains the closing bracket for the addServiceTxt method so I’m guessing the line numbers are incorrect or refering to some other file?)

Lars Englund

@larsenglund

The code for sending out querys has worked fine before so I’m thinking something in my network might cause it?

I found wireshark pretty handy for debugging this stuff as mDNS packets are broadcast. You might find a massive packet is locking up the parsing and causing the watchdog to trigger. What CPU speed have you set?

Lars Englund

@larsenglund

160mhz

Lars Englund

@larsenglund

Hmm, after some debugging in ESP8266mDNS.cpp::_parsePacket() I found that it enters an infinite loop trying to add a new answer to answer list (around line 644)

It adds the three first answers to the list without any problem but when the fourth is parsed and ready to be added while (answer->next != 0) { never exits..

Could answer->next have been corruptedhow?

Since every new answer gets intialized to answer->next = 0;

Could be a bad packet that is causing a buffer overflow, stopping the traversal from terminating. Hard to say with out looking at the packet

Lars Englund

@larsenglund

Reading answers RX: REQ, ID:0, Q:0, A:4, NS:0, ADD:0
 4 5f 65 73 70 
found matching service: esp
 4 5f 74 63 70 
 5 6c 6f 63 61 6c 
type: 000c rdlength: 28
0a 65 73 70 5f 44 41 33 35 45 41 04 5f 65 73 70 04 5f 74 63 70 05 6c 6f 63 61 6c 00 
 10 65 73 70 5f 44 41 33 35 45 41 
 4 5f 65 73 70 
found matching service: esp
 4 5f 74 63 70 
 5 6c 6f 63 61 6c 
type: 0010 rdlength: 0

 10 65 73 70 5f 44 41 33 35 45 41 
 4 5f 65 73 70 
found matching service: esp
 4 5f 74 63 70 
 5 6c 6f 63 61 6c 
type: 0021 rdlength: 24
 10 65 73 70 5f 64 61 33 35 65 61 
esp_da35ea
 10 65 73 70 5f 64 61 33 35 65 61 
 5 6c 6f 63 61 6c 
type: 0001 rdlength: 4
All answers parsed, adding to _answers list..
else

It’s after this packet the loop starts so it does not look like a buffer overflow

Also I have checked that I have lots of heap space left (>28K)

Lars Englund

@larsenglund

I see now that the problem occurs when _parsePacket has returned after parsing the first three packets and is then called again in MDNSResponder::update() and continues to add a fourth answer to the same answer list.. if that has any significance.. also the next-pointer of the last element in the answer list has changed from 0 to pointing to the last item itself when entering parsePacket the second time (thus causing the infinite loop)

Boggle.. what could be causing the next-pointer to be overwritten between two calls to _parsePacket

Понравилась статья? Поделить с друзьями:
  • Error helm upgrade requires 2 arguments
  • Error heater автономка скания не запускается
  • Error header что значит
  • Error header как переводится
  • Error header name must be a valid http token