Issue Compiling several examples with Arduino with original commercial edge (1)

Hi

Replicated on both OSX Catalina and Windows 10. I have a recently purchased commercial edge and himax camera and have tried multiple times, achieving the same error on both platforms for the person detection and magic wand examples.

When following the guide found at https://learn.sparkfun.com/tutorials/pr … th-arduino

which points to the repository https://github.com/sparkfun/Tensorflow_AIOT2019 and compiling with Arduino 1.8.10

I can successfully compile the micro_speech example, But not the other two, if I change the board to sparkfun edge2 they both do compile successfully, also OK for my other boards.

Just before the error on the edge1 is the following but doesn’t appear to actually state the error that caused it

Using library Arduino_TensorFlowLite at version 1.15.0-ALPHA in folder: /Users/pwcircle/Documents/Arduino/libraries/Arduino_TensorFlowLite

/Users/pwcircle/Library/Arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld: /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/core/include/hm01b0/HM01B0.c.o:/Users/pwcircle/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.24/variants/edge/include/hm01b0/HM01B0.c:35: multiple definition of `g_HM01B0_pin_int’; /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0.c.o:/var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0.c:35: first defined here

/Users/pwcircle/Library/Arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld: /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/core/include/hm01b0/HM01B0.c.o:/Users/pwcircle/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.24/variants/edge/include/hm01b0/HM01B0.c:26: multiple definition of `g_HM01B0_pin_vsync’; /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0.c.o:/var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0.c:26: first defined here

/Users/pwcircle/Library/Arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld: /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/core/include/hm01b0/HM01B0.c.o:/Users/pwcircle/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.24/variants/edge/include/hm01b0/HM01B0_Walking1s_01.h:21: multiple definition of `sHM01b0TestModeScript_Walking1s’; /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0.c.o:/var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0_Walking1s_01.h:21: first defined here

/Users/pwcircle/Library/Arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld: /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/core/include/hm01b0/HM01B0_debug.c.o: in function `hm01b0_framebuffer_dump’:

/Users/pwcircle/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.24/variants/edge/include/hm01b0/HM01B0_debug.c:19: multiple definition of `hm01b0_framebuffer_dump’; /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0_debug.c.o:/var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0_debug.c:19: first defined here

/Users/pwcircle/Library/Arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld: /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/core/include/hm01b0/HM01B0_optimized.c.o: in function `hm01b0_blocking_read_oneframe_scaled’:

/Users/pwcircle/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.24/variants/edge/include/hm01b0/HM01B0_optimized.c:43: multiple definition of `hm01b0_blocking_read_oneframe_scaled’; /var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0_optimized.c.o:/var/folders/56/0z6ntyds14ndg3nz1ys6734w0000gn/T/arduino_build_748685/sketch/HM01B0_optimized.c:43: first defined here

collect2: error: ld returned 1 exit status

exit status 1

Error compiling for board SparkFun Edge.

Thanks for any help

PW

Hey there - I suspect these compilation issues are due to me restructuring the camera support. I expect to have it wrapped up soon.

Previously there were at least 3 ‘strains’ of the camera driver maintained in different places. I am working on consolidating it but I ran into some unexpected issues. I will reply here when it is all working.

Sorry for the inconvenience!

P.s. it would be possible for you to revert to previous versions of various SW packages but I don’t recall exacltly which versions worked. My guess:

Arduino core v1.0.23

Himax Camera Driver v0.0.2

AIOT2019 at this commit: https://github.com/sparkfun/Tensorflow_ … 9f5f2d43ab

Thanks for the speedy response, i’d tried a few different combinations of version with no luck. I’ve got several projects on the go so i can wait till the update.

Regards

Sorry for the noise did the issue resolved and i can run it with my sparkfun edge ?