Search found 5 matches

by mikkojaakkola
Sun Sep 15, 2019 10:16 pm
Forum: ESP32 IDF
Topic: Allocating RAM for extra components from RTC_NOINIT_ATTR or RTC_DATA_ATTR
Replies: 0
Views: 81

Allocating RAM for extra components from RTC_NOINIT_ATTR or RTC_DATA_ATTR

I'm using ESP-IDF 4.0 using CMake buildsystem and importing 3rd party code with CMakeList.txt that I've made for the source files. This allows me neatly update the files whenever they get updated. However, there is a small amount of data statically allocated in those files and I need to currently ma...
by mikkojaakkola
Tue Aug 13, 2019 3:53 pm
Forum: ESP32 IDF
Topic: Linking math library into the project
Replies: 1
Views: 127

Re: Linking math library into the project

I did more investigation and by manually linking libm.a, I resolved most of the issues. Shouldn't this be part of the linking process by default as linker would remove all the functions that are not being used anyway? add_library(mathlib STATIC IMPORTED GLOBAL) set_target_properties(mathlib PROPERTI...
by mikkojaakkola
Tue Aug 13, 2019 2:12 am
Forum: ESP32 IDF
Topic: Linking math library into the project
Replies: 1
Views: 127

Linking math library into the project

I'm trying to link 3rd party library (no source code available) that's compiled for ESP32 but it uses a set of math library functions like roundf, fmaxf, sinf, ... I see these implemented as special functions accessed through macros in fastmath.h but, of course, they cannot be used as they don't mat...
by mikkojaakkola
Fri Aug 02, 2019 6:35 pm
Forum: ESP32 IDF
Topic: Incorrect lengths in wifi_ap_config_t for SSID and WFA-PSK
Replies: 2
Views: 195

Re: Incorrect lengths in wifi_ap_config_t for SSID and WFA-PSK

Let's me try to understand the response. Are you saying that code is checking SSID up to null OR to the maximum length? The documentation is pretty clear stating that SSID and password needs to be null-terminated but I guess that's not the case if they are maximum length, right?
by mikkojaakkola
Fri Aug 02, 2019 3:16 am
Forum: ESP32 IDF
Topic: Incorrect lengths in wifi_ap_config_t for SSID and WFA-PSK
Replies: 2
Views: 195

Incorrect lengths in wifi_ap_config_t for SSID and WFA-PSK

typedef struct { uint8_t ssid[32]; /**< SSID of target AP. Null terminated string. */ uint8_t password[64]; /**< Password of target AP. Null terminated string.*/ wifi_scan_method_t scan_method; /**< do all channel scan or fast scan */ bool bssid_set; /**< whether set MAC address of target AP or not...

Go to advanced search