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

Not building, c vs c++ style? esp-idf. #2

Open
Tachyon42 opened this issue Mar 22, 2019 · 3 comments
Open

Not building, c vs c++ style? esp-idf. #2

Tachyon42 opened this issue Mar 22, 2019 · 3 comments

Comments

@Tachyon42
Copy link

Getting some errors when attempting to build in esp-idf

Could be my own fault, fairly new to this environment (and c++ generally)

This is what it dies with, some Googling suggests I can rewrite those parts in another compatible form (no dots, : instead of = etc.) but I have no idea if I should, if it's for the ESP32 should it not build as is?

tachyon@DESKTOP-DIOF72L:~/projects/frodo-go$ make
CXX build/extflash/components/extflash/extflash.o
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp: In member function 'esp_err_t ExtFlash::init(const ext_flash_config_t*)':
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp:96:5: warning: missing initializer for member 'spi_bus_config_t::flags' [-Wmissing-field-initializers]
};
^
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp:113:5: sorry, unimplemented: non-trivial designated initializers not supported
};
^
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp:113:5: sorry, unimplemented: non-trivial designated initializers not supported
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp:113:5: sorry, unimplemented: non-trivial designated initializers not supported
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp:113:5: sorry, unimplemented: non-trivial designated initializers not supported
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp:113:5: sorry, unimplemented: non-trivial designated initializers not supported
/home/tachyon/projects/frodo-go/components/extflash/components/extflash/extflash.cpp:113:5: warning: missing initializer for member 'spi_device_interface_config_t::post_cb' [-Wmissing-field-initializers]
/home/tachyon/esp/esp-idf/make/component_wrapper.mk:285: recipe for target 'components/extflash/extflash.o' failed
make[1]: *** [components/extflash/extflash.o] Error 1
/home/tachyon/esp/esp-idf/make/project.mk:468: recipe for target 'component-extflash-build' failed
make: *** [component-extflash-build] Error 2

@lllucius
Copy link
Owner

Looks to me like an ESP32 SDK version incompatibility. Could be I need to update the components to build with a newer version. What version are you using?

@elietaillardat
Copy link

Add .input_delay_ns = 0 in spi_device_interface_config_t devcfg struct def

@Rahulelectobuddy
Copy link

Rahulelectobuddy commented Aug 7, 2019

I am also getting same problem. Same issue with extflash project also.

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

4 participants