[DIY] AtmoOrb - A Hue like mood lamp based on Particle Photon with NeoPixel - *Tutorial added* (1 Viewer)

Angst

Portal Member
November 14, 2016
10
2
48
Home Country
South Africa South Africa
Picked up a second Photon/Neopixel: Followed exact procedure as the first one; but today the code won't verify/compile. Tried several times; same error:

Any ideas? :(

Edit: Opened the saved project from yesterday; tried a verify on that, and it failed as well. :confused:

Error: Could not compile. Please review your code.

32+0 records in
32+0 records out
32 bytes (32 B) copied, 0.000572919 s, 55.9 kB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0455755 s, 0.1 kB/s
In file included from lib/FastLED/src/FastLED/FastLED.h:1:0,
from /src/atmoorb.cpp:3:
lib/FastLED/src/FastLED/../FastLED.h:12:2: warning: #warning FastLED version 3001000 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3001000 (Not really a warning, just telling you here.)
^
In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED/../FastLED.h:34,
from lib/FastLED/src/FastLED/FastLED.h:1,
from /src/atmoorb.cpp:3:
lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from /src/atmoorb.cpp:2:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED/../FastLED.h:34,
from lib/FastLED/src/FastLED/FastLED.h:1,
from /src/atmoorb.cpp:3:
lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from /src/atmoorb.cpp:2:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED/../FastLED.h:34,
from lib/FastLED/src/FastLED/FastLED.h:1,
from /src/atmoorb.cpp:3:

lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:36:32: error: conflicting declaration 'typedef volatile uint8_t RwReg'
typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */
^
In file included from ./inc/application.h:92:0,
from /src/atmoorb.cpp:2:

../wiring/inc/spark_wiring_arduino.h:153:27: error: 'RwReg' has a previous declaration as 'typedef volatile uint32_t RwReg'
typedef volatile uint32_t RwReg;
^
make[2]: *** [../build/target/user/platform-0-lsrc/atmoorb.o] Error 1
make[1]: *** [user] Error 2
make: *** [main] Error 2
 
Last edited:

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Most likely it's a firmware issue on the Photon if the sketch worked on the other one, would compare both to see if they run the latest and if not update its firmware manually.
    Under Devices you can find each device firmware:

    photon_orbs.PNG


    If that is the same version check the FastLED library, just verified it with FastLED 3.1.5 which is the most recent there.
     

    Angst

    Portal Member
    November 14, 2016
    10
    2
    48
    Home Country
    South Africa South Africa
    @Rick164, a brief check reveals that both units are on fw. 0.6.0. (I was expecting dissimilar firmwares)

    Tried re-flashing both units with both new project and saved .ino from yesterday - in all cases code fails to compile via Web IDE
    FastLed 3.1.5 included in project.
    All actions done on same notebook as yesterday.

    It's so strange; especially if you've just managed to verify and compile a test sample of the code. :eek:

    Nothing odd in the project below, all lines of code accounted for; except the errors.

    5AP1CBc.jpg
     

    Angst

    Portal Member
    November 14, 2016
    10
    2
    48
    Home Country
    South Africa South Africa
    Hi @Rick164

    Had some time to return to this: I can compile other projects successfully; however NEW SKETCH > include FASTLED > Copy/Paste AtmoOrb_UDP.ino does not want to verify/compile.
    In fact, any project, even simply including FASTLED on it's own in an empty test sketch doesn't verify!

    // This #include statement was automatically added by the Particle IDE.
    #include <FastLED.h>
    void setup() {
    }
    void loop() {
    }

    Results in: "Error: Could not compile. Please review your code."

    lib/FastLED/src/led_sysdefs_arm_stm32.h:36:32: error: conflicting declaration 'typedef volatile uint8_t RwReg'
    typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */
    ^
    In file included from ./inc/application.h:92:0,
    from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
    from lib/FastLED/src/led_sysdefs.h:16,
    from lib/FastLED/src/FastLED.h:34,
    from /src/test.cpp:2:

    ../wiring/inc/spark_wiring_arduino.h:153:27: error: 'RwReg' has a previous declaration as 'typedef volatile uint32_t RwReg'
    typedef volatile uint32_t RwReg;
    ^
    make[1]: *** [../build/target/user/platform-6src/test.o] Error 1
    make: *** Error 2

    Am I the only one getting this?
    Or has a change been made to the FASTLED (3.1.5) library which is causing a compile error in the particle Web IDE?
    Anyone else building on of these Photon/NeoPixel 24 ring units right now?


    @Lightning303 - Sorry to bother you as well; I'm wondering if you could offer an opinion/thoughts? Any feedback and ideas welcomed and appreciated.


    Full error dump below:

    In file included from lib/FastLED/src/FastLED/FastLED.h:1:0,
    from /src/atmoorb_udp.cpp:3:
    lib/FastLED/src/FastLED/../FastLED.h:12:2: warning: #warning FastLED version 3001000 (Not really a warning, just telling you here.) [-Wcpp]
    #warning FastLED version 3001000 (Not really a warning, just telling you here.)
    ^
    In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
    from lib/FastLED/src/FastLED/../FastLED.h:34,
    from lib/FastLED/src/FastLED/FastLED.h:1,
    from /src/atmoorb_udp.cpp:3:
    lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
    #define cli() __disable_irq(); __disable_fault_irq();
    ^
    In file included from ./inc/application.h:92:0,
    from /src/atmoorb_udp.cpp:2:
    ../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
    #define cli() (void)HAL_disable_irq()
    ^
    In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
    from lib/FastLED/src/FastLED/../FastLED.h:34,
    from lib/FastLED/src/FastLED/FastLED.h:1,
    from /src/atmoorb_udp.cpp:3:
    lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
    #define sei() __enable_irq(); __enable_fault_irq();
    ^
    In file included from ./inc/application.h:92:0,
    from /src/atmoorb_udp.cpp:2:
    ../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
    #define sei() HAL_enable_irq(0)
    ^
    In file included from lib/FastLED/src/FastLED/../led_sysdefs.h:16:0,
    from lib/FastLED/src/FastLED/../FastLED.h:34,
    from lib/FastLED/src/FastLED/FastLED.h:1,
    from /src/atmoorb_udp.cpp:3:

    lib/FastLED/src/FastLED/../led_sysdefs_arm_stm32.h:36:32: error: conflicting declaration 'typedef volatile uint8_t RwReg'
    typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */
    ^
    In file included from ./inc/application.h:92:0,
    from /src/atmoorb_udp.cpp:2:

    ../wiring/inc/spark_wiring_arduino.h:153:27: error: 'RwReg' has a previous declaration as 'typedef volatile uint32_t RwReg'
    typedef volatile uint32_t RwReg;
    ^
    make[1]: *** ../build/target/user/platform-6src/atmoorb_udp.o Error 1
    make: *** user Error 2
     
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    There's something weird going on with the 0.6.0 and up firmwares from Photon, if you use 0.5.3 all sketches work perfectly :)
    If you want to use Photons with 0.6.0 we would need a FastLED update but dev isn't ready so far.

    Updated tutorial to reflect this so new users don't run into it, @Angst sorry for the delay and thanks for reporting it as it helped trace it back.
     

    Users who are viewing this thread

    Top Bottom