Skip to content
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

conflicting declaration 'typedef volatile uint8_t RwReg' #15

Open
konahart opened this issue Mar 6, 2017 · 10 comments
Open

conflicting declaration 'typedef volatile uint8_t RwReg' #15

konahart opened this issue Mar 6, 2017 · 10 comments

Comments

@konahart
Copy link

konahart commented Mar 6, 2017

Including FastLED from Particle Build now produces an error that it previously did not:

FastLED/led_sysdefs_arm_stm32.h:36:32: error: conflicting declaration 'typedef volatile uint8_t RwReg'
 typedef volatile       uint8_t RwReg
@Sturgeon637
Copy link

I have the same issue.

@cosmicc
Copy link

cosmicc commented Mar 23, 2017

looks like anther variable conflict. Same thing here.

@GreatHornedOwl
Copy link

Can we get some resolution here?

@Sturgeon637
Copy link

Hello GreatHornedOwl,
For right now, just set your System Firmware Target to no greater than 0.6.0 and #include "Particle.h".
You can set this in the devices panel. Click on the ">" and you will see the System Firmware Target pull down.

Cheers,

Sturgeon637

@GreatHornedOwl
Copy link

Hi Sturgeon637,

That worked, thanks a million!

GreatHornedOwl

@RickDB
Copy link

RickDB commented Jun 8, 2017

Workaround does the trick 👍 , any idea if this can be fixed in any future Particle library update?

@focalintent
Copy link
Owner

When I get back to working on library stuff it will get fixed.

@RickDB
Copy link

RickDB commented Jun 8, 2017

Found a quick fix for this by renaming those conflicting variables, mind if I do a PR for review?
Tried different names for variable like adding additional LED suffix but compiler complained so just made RwReg -> Rwrg and RoReg -> RoRg so that is doesn't collide with Particle internals.

Based it off this fork as that makes it compatible with Particle V2 library as well which should make it as little work as possible to publish afterwards :)

https://github.com/ACamposPT/FastLED-Sparkcore

Tested in build particle environment with firmware 0.6.2 (using internal repo publish) and both the AtmoOrbs work fine after flashing.

@RickDB
Copy link

RickDB commented Jun 8, 2017

Just committed if you want to take a peek:

https://github.com/RickDB/FastLED-Sparkcore/tree/fix_variable_conflicts

@Jerware
Copy link

Jerware commented Jun 23, 2017

This was fixed in Particle Firmware 0.6.2 and was covered in the following thread. This issue can be closed.

https://community.particle.io/t/fastled-not-compiling-to-photon/30031/25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants