FastLED-Sparkcore icon indicating copy to clipboard operation
FastLED-Sparkcore copied to clipboard

conflicting declaration 'typedef volatile uint8_t RwReg'

Open konahart opened this issue 8 years ago • 10 comments

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

konahart avatar Mar 06 '17 05:03 konahart

I have the same issue.

Sturgeon637 avatar Mar 13 '17 19:03 Sturgeon637

looks like anther variable conflict. Same thing here.

cosmicc avatar Mar 23 '17 15:03 cosmicc

Can we get some resolution here?

GreatHornedOwl avatar Mar 26 '17 21:03 GreatHornedOwl

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

Sturgeon637 avatar Mar 27 '17 00:03 Sturgeon637

Hi Sturgeon637,

That worked, thanks a million!

GreatHornedOwl

GreatHornedOwl avatar Mar 27 '17 00:03 GreatHornedOwl

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

RickDB avatar Jun 08 '17 22:06 RickDB

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

focalintent avatar Jun 08 '17 22:06 focalintent

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 avatar Jun 08 '17 22:06 RickDB

Just committed if you want to take a peek:

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

RickDB avatar Jun 08 '17 22:06 RickDB

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

Jerware avatar Jun 23 '17 01:06 Jerware