Skip to content

Sloeber tries to compile [assembly].asm where Arduino uses [assembly].S file directly #660

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
ligius- opened this issue Feb 16, 2017 · 7 comments
Labels
domain: build The build does not work as the Arduino IDE. good first issue If you want to become a active contributor (and you feel insecure), start looking at this issue. Help wanted If you want to become a active contributor, start looking at this issue. OS: all status: needs investigation We don't know what causes this status: workaround documented A workaround has been confirmed to solve this issue.

Comments

@ligius-
Copy link

ligius- commented Feb 16, 2017

Using V3 from the marketplace.
I'm trying to compile the Digispark examples which provide USB support, via some assembly instructions. For example the DigisparkJoystick library.

The first issue is that usbdrvasm.asm file has an "end" instruction at the end which is somehow not recognized.

The second issue is that inside the usbdrvasm.S file the #if blocks are not recognized (preprocessor is not working).

Even after the two issues above are manually fixed (by removing code) some new problems appear, which leads me to think that the avr assembler is not used.

If this is specific to my setup I will be happy to attach any details.

@jantje
Copy link
Member

jantje commented Feb 16, 2017

Oeps I forgot to update the market place.
Lots of changes were done in V4 to add support for lots of boards.

@jantje
Copy link
Member

jantje commented Feb 16, 2017

I updated the marketplace

@jantje jantje closed this as completed Feb 16, 2017
@ligius-
Copy link
Author

ligius- commented Feb 17, 2017

I removed the old plugin, updated to 4.0, reconfigured the plugin but the issues above still remain.
I've created a pastebin with the output from Arduino IDE vs. Eclipse: http://pastebin.com/QUdvFYP8

@jantje
Copy link
Member

jantje commented Feb 17, 2017

Thanks for the pastebin info.
From that info you can see that the Arduino IDE does not try to compile usbdrvasm.asm.
I do not know what the current criteria are the Arduino IDE uses to not compile and use the usbdrvasm.S file directly.
Anyway you can tell Sloeber to use the S file instead of the .asm file in 2 ways.
in the project explorer go to you project/libraries/DigiSparkMouse
Right click the usbdrvasm.asm file and select

  1. delete to fix this problem for this sloeber installation.
    2)resource configuration->exclude from build->select all->ok to fix the problem for your current project

As an independent open source project we value your submission, but we ask for support, either by helping us out coding (yeah, we do understand it does require time) or a Patreon contribution (starting from as low as 1$ a month): this allows us to support people who support us back!
As a supporter you can drag our attention and prioritize your submission...
please become a supporter!
https://www.patreon.com/jantje

@jantje jantje reopened this Feb 17, 2017
@jantje jantje changed the title Digispark asm code does not compile Sloeber tries to compile [assembly].asm where Arduino uses [assembly].S file directly Feb 17, 2017
@jantje jantje added domain: build The build does not work as the Arduino IDE. OS: all status: workaround documented A workaround has been confirmed to solve this issue. status: needs investigation We don't know what causes this labels Feb 17, 2017
jantje pushed a commit that referenced this issue Mar 1, 2018
@jantje jantje added Help wanted If you want to become a active contributor, start looking at this issue. good first issue If you want to become a active contributor (and you feel insecure), start looking at this issue. labels Apr 20, 2018
@jantje
Copy link
Member

jantje commented Apr 20, 2018

HELP!!
Can someone having this issue find out what the compilation rules are by Arduino IDE?

@jantje
Copy link
Member

jantje commented Jun 19, 2018

I'm just wondering..could it be Arduino IDE does not compile .asm files?

@jantje
Copy link
Member

jantje commented Jun 30, 2020

I think this issue is close

@jantje jantje closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: build The build does not work as the Arduino IDE. good first issue If you want to become a active contributor (and you feel insecure), start looking at this issue. Help wanted If you want to become a active contributor, start looking at this issue. OS: all status: needs investigation We don't know what causes this status: workaround documented A workaround has been confirmed to solve this issue.
Projects
None yet
Development

No branches or pull requests

2 participants