Chat freely about anything...
User avatar
By INYRMind
#77592 Hi, looks like a very promising project. Thank you for make that available.

I got a build error:
Code: Select allCC ota.c
In file included from ota.h:4:0,
                 from ota.c:1:
ota.c: In function 'application_function_flash_select':
util.h:232:53: error: expected expression before ')' token
  string_format_flash_ptr(dst, fmt_flash, __VA_ARGS__); \
                                                     ^
ota.c:768:2: note: in expansion of macro 'string_format'
  string_format(dst, "ERROR flash-select: no OTA image\n");
  ^
Makefile:333: recipe for target 'ota.o' failed
make: *** [ota.o] Error 1

Looks like my compiler dont like "__VA_ARGS__", as far as I know this is not a standard.

Code: Select all$~/esp8266-universal-io-bridge$ /opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc --version
xtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-60-g37b07f6f) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


By the way I am using ubuntu 18.04. I just cloned and compiled the sdk previously succesful.

Thanks!
User avatar
By eriksl
#77639 I am using this one, from the opensdk:

Code: Select allxtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-55-gecfc19a) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
User avatar
By eriksl
#77640 For myself I never make non-ota ("plain") images, so a bug easily creeps in there.

Having said that, please pull and try again :-)
User avatar
By eriksl
#77641 I just finished a beeper using the uarts (both) (you can supply random frequencies) and a complenentary sequencer, so you can play a pre-programmed tune :-)

Next up is ws2812b support.