Search found 81 matches

by gtjoseph
Sun Mar 12, 2023 1:20 am
Forum: ESP-IDF
Topic: Is there a way to create custom entries for esp_err_to_name?
Replies: 0
Views: 592

Is there a way to create custom entries for esp_err_to_name?

...other than cloning and customizing gen_esp_err_to_name.py (and maybe esp_err_to_name.c.in) that is.
by gtjoseph
Thu Feb 09, 2023 1:13 pm
Forum: ESP-IDF
Topic: nvs_open and nvs_get work from namespaces that do not exist.
Replies: 2
Views: 1294

Re: nvs_open and nvs_get work from namespaces that do not exist.

Hard to say what's going on without seeing the input to nvs_partition_gen.py and parttool.py for each device but nvs_open WILL create a namespace if it doesn't already exist and if it was called with NVS_READWRITE. When you say "reads garbage values" are you saying that the read returns ESP_OK when ...
by gtjoseph
Thu Feb 09, 2023 1:05 pm
Forum: Hardware
Topic: Interfacing with TTL devices
Replies: 3
Views: 1701

Re: Interfacing with TTL devices

The TXS0108 series of level shifters are popular, cheap and dead simple to use.
https://www.ti.com/lit/ds/symlink/txs01 ... 5947678061

You can get just the chips themselves or get them pre-mounted to a carrier board with standard pin spacing.
by gtjoseph
Mon Jan 23, 2023 6:05 pm
Forum: ESP-IDF
Topic: Is there a reason bool and float aren't supported in nvs_flash?
Replies: 2
Views: 1081

Re: Is there a reason bool and float aren't supported in nvs_flash?

The template for "is_integral" in nvs_handle.hpp needed to be split out to 3 separate cases because float isn't integral and even though bool is, the way the logic works it'd be resolved to signed-no, length 1 (0x01) NVS_TYPE_U8 .
by gtjoseph
Mon Jan 23, 2023 2:14 am
Forum: ESP-IDF
Topic: Is there a reason bool and float aren't supported in nvs_flash?
Replies: 2
Views: 1081

Is there a reason bool and float aren't supported in nvs_flash?

There doesn't seem to be an implementation for either bool or float in the nvs_flash component. Is there a reason? bool is easy to represent as an integer of course but having a specific type for it is handy on read because you can translate the value to a 'true" or "false" string. I added the neces...
by gtjoseph
Wed Jan 18, 2023 12:52 am
Forum: IDEs for ESP-IDF
Topic: How to use C++ with ESP-IDF and FreeRTOS please ?
Replies: 2
Views: 3421

Re: How to use C++ with ESP-IDF and FreeRTOS please ?

At the beginning ot my main.cpp file, I put the include files in a extern "C" { ..... } You should NOT use extern "C" { ..... } around any header files provided by esp-idf. They're already taken care of. If you still have issues after removing the extern "C" { ..... } , post back. It should just wo...
by gtjoseph
Fri Jan 13, 2023 3:02 am
Forum: ESP-IDF
Topic: nvs_open return ESP_ERR_NVS_NOT_FOUND after erase flash
Replies: 3
Views: 1637

Re: nvs_open return ESP_ERR_NVS_NOT_FOUND after erase flash

hello, i have a working project that uses nvs. if i do a idf.py erase-flash and reflash the project, NVS don't work anymore because when i do esp_err_t err = nvs_open("storage", NVS_READONLY, &my_handle); it return ESP_ERR_NVS_NOT_FOUND. if i flash an example from $IDF_PATH/examples/storage/nvs... ...
by gtjoseph
Tue Jan 03, 2023 3:30 pm
Forum: ESP-IDF
Topic: Plans for experimental_cpp_component?
Replies: 4
Views: 4237

Re: Plans for experimental_cpp_component?

Thanks Jakob. I may have had my 'git diff' backwards. :)
The only issue right now is that esp_mqtt_cxx is built against experimental_cpp_component but I copied it out to a separate component and changed it to use esp-idf-cxx. It compiles fine but haven't had a chance to test it yet.
by gtjoseph
Sat Dec 31, 2022 11:08 pm
Forum: ESP-IDF
Topic: Plans for experimental_cpp_component?
Replies: 4
Views: 4237

Which to use, experimental_cpp_component or esp-idf-cxx?

I posted my original question about a year ago but never got a response. Since then, esp-idf-cxx was added as a standalone component but it appears to be a bit behind experimental_cpp_component. Should we start using esp-idf-cxx and can we count on it being maintained?