Search found 382 matches

by permal
Mon Aug 19, 2019 12:13 pm
Forum: ESP32 IDF
Topic: Toolchain recommendation? What are you using?
Replies: 2
Views: 408

Re: Toolchain recommendation? What are you using?

I favor CLion for the IDE. It's easy to setup and works fine with IDF. I've also used VSCode and it works, but I find it a bit messy setting up. Is there an editor/toolchain combination that let's me easily jump to the outside code like "driver/spi_slave.h" or go to the defintion of functions like t...
by permal
Mon Aug 19, 2019 6:46 am
Forum: General Discussion
Topic: undefined reference to `esp_aes_init'
Replies: 10
Views: 1321

Re: undefined reference to `esp_aes_init'

Angus, That's the ting - it's not any longer. I've spent the weekend redoing my build system so that it follows IDF's component-based variant when building for the ESP (too much hassle using IDF as a lib when it is removed two steps from the main app). The only thing I'm doing differently is that I ...
by permal
Mon Aug 19, 2019 4:27 am
Forum: General Discussion
Topic: undefined reference to `esp_aes_init'
Replies: 10
Views: 1321

Re: undefined reference to `esp_aes_init'

v4.0-dev-1443-g39f090a4f
tensa-esp32-elf-gcc (crosstool-NG esp32-2019r1) 8.2.0

CMake output attached.
by permal
Sat Aug 17, 2019 7:58 am
Forum: General Discussion
Topic: undefined reference to `esp_aes_init'
Replies: 10
Views: 1321

Re: undefined reference to `esp_aes_init'

I do have WPA_MBEDTLS_CRYPTO, which presumably enables USE_MBEDTLS_CRYPTO

Disabling WPA_MBEDTLS_CRYPTO allows the project to compile, but that's not what I want.
by permal
Fri Aug 16, 2019 6:55 pm
Forum: General Discussion
Topic: undefined reference to `esp_aes_init'
Replies: 10
Views: 1321

undefined reference to `esp_aes_init'

I'm following the "rename main" component instructions in the documentation , but have gotten stuck on the following errors: : && /home/permal/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -mlongcalls -Wno-frame-address -nostdlib CMakeFiles/smooth_tes...
by permal
Mon Aug 12, 2019 5:28 pm
Forum: General Discussion
Topic: dangerous relocation: l32r: literal target out of range (try using text-section-literals)
Replies: 25
Views: 2552

Re: dangerous relocation: l32r: literal target out of range (try using text-section-literals)

Thanks for the reply, Angus.

I had a look at esp32.project.ld.in ....it's like programming language in and of itself! I'll stick to -mtext-section-literals for now.

As to why -mlongcalls doesn't propagate I don't know, will have to investigate later.
by permal
Mon Aug 12, 2019 6:39 am
Forum: General Discussion
Topic: dangerous relocation: l32r: literal target out of range (try using text-section-literals)
Replies: 25
Views: 2552

Re: dangerous relocation: l32r: literal target out of range (try using text-section-literals)

@ESP_Angus They are now (and it is working), since I added the compiler flags as per the earlier post. Are these settings enabled by default in ESP-IDF? If so they are probably not propagated to my code since I build IDF as a library and link against it.
by permal
Sun Aug 11, 2019 7:01 pm
Forum: General Discussion
Topic: dangerous relocation: l32r: literal target out of range (try using text-section-literals)
Replies: 25
Views: 2552

Re: dangerous relocation: l32r: literal target out of range (try using text-section-literals)

Here's the dump as am attached file. 6.5M so a bit too much to post as text.

Size:

text data bss dec hex filename
2060236 812740 32592 2905568 2c55e0 g3
2060236 812740 32592 2905568 2c55e0 (TOTALS)
by permal
Sun Aug 11, 2019 5:36 pm
Forum: General Discussion
Topic: dangerous relocation: l32r: literal target out of range (try using text-section-literals)
Replies: 25
Views: 2552

Re: dangerous relocation: l32r: literal target out of range (try using text-section-literals)

make: *** No rule to make target 'size'. Stop.
I think it fails because of similar issues as outlined in this GH issue: https://github.com/espressif/esp-idf/issues/3677 but I haven't managed to figure it out yet.
by permal
Sun Aug 11, 2019 4:53 pm
Forum: General Discussion
Topic: dangerous relocation: l32r: literal target out of range (try using text-section-literals)
Replies: 25
Views: 2552

Re: dangerous relocation: l32r: literal target out of range (try using text-section-literals)

Progress! Apparently, target_link_options doesn't do what I expect, or I'm using it wrongly. This doesn't work: target_link_options(${PROJECT_NAME} PUBLIC -mlongcalls -mtext-section-literals) This, however, does: if(${ESP_PLATFORM}) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlongcalls -mtext-section-lite...

Go to advanced search