Search found 12 matches

by AgentSmithers
Sat Aug 17, 2024 10:03 pm
Forum: ESP8266
Topic: Is reading and writing a Littlefs logfile at the same time allowed?
Replies: 5
Views: 2290

Re: Is reading and writing a Littlefs logfile at the same time allowed?

This question is specific to LittleFS, not so much Arduino as an interrupt may be triggered to write the data while reading is in progress, however, if LittleFS creates a variable to hold if the data is locked then that will be an issue. Have you implemented an interrupt/protothreads to handle trigg...
by AgentSmithers
Wed Aug 14, 2024 7:21 pm
Forum: ESP8266
Topic: Is reading and writing a Littlefs logfile at the same time allowed?
Replies: 5
Views: 2290

Re: Is reading and writing a Littlefs logfile at the same time allowed?

arjen1 wrote:
Wed Aug 14, 2024 5:18 pm
I am using the built in LittleFS, I did not install any other library for LittleFS.
Is this an Arduino project? I am unsure what you mean by "Built-in".
by AgentSmithers
Wed Aug 14, 2024 12:27 pm
Forum: ESP8266
Topic: Is reading and writing a Littlefs logfile at the same time allowed?
Replies: 5
Views: 2290

Re: Is reading and writing a Littlefs logfile at the same time allowed?

Are you using Arduino's LittleFS or some other variation? If so can you provide the link to confirm the implementation.
by AgentSmithers
Wed Aug 07, 2024 8:50 am
Forum: ESP8266
Topic: Compiling .S using xtensa-lx106-elf-gcc
Replies: 4
Views: 1979

Re: Compiling .S using xtensa-lx106-elf-gcc

Is it your understanding this is due to a missing .H file that would be added to the blinky.c file for example and not a ".a"(Library file) ? No, you'd need to #include it in the assembly file that throws those errors. Thanks, Ive spent a few hours trying to diag the issue. Im going to dive a bit m...
by AgentSmithers
Wed Aug 07, 2024 4:25 am
Forum: ESP8266
Topic: Compiling .S using xtensa-lx106-elf-gcc
Replies: 4
Views: 1979

Re: Compiling .S using xtensa-lx106-elf-gcc

Potentially you're missing an include that defines those symbols to whatever the Xtensa assembler wants. Sorry, I don't know what include that would be, it's been ages since I touched an 8266. That is really odd, I fell like I've followed the instructions to a 'T' and have read them multiple multip...
by AgentSmithers
Tue Aug 06, 2024 10:22 am
Forum: ESP8266
Topic: Compiling .S using xtensa-lx106-elf-gcc
Replies: 4
Views: 1979

Compiling .S using xtensa-lx106-elf-gcc

:evil: CC = xtensa-lx106-elf-gcc CFLAGS = -I. -DICACHE_FLASH -mlongcalls -Og LDLIBS = -nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -lc -Wl,--end-group -lgcc LDFLAGS = -Teagle.app.v6.ld -ggdb INCLUDES = -Iinclude -I../driver_lib/include SUBDIRS = gdbstub COMPONENTS_eagle.app....
by AgentSmithers
Mon Aug 05, 2024 10:25 am
Forum: ESP8266
Topic: reject client
Replies: 1
Views: 2268

Re: reject client

Im using the NONOS SDK, are you trying to keep the AP open and accept a specific client or just the first one? In my case I do the following: Use struct softap_config to set max_connection=1 wifi_softap_set_config(&softapConfig); If you register wifi_set_event_handler_cb(wifi_handle_event_cb); then ...
by AgentSmithers
Mon Aug 05, 2024 10:03 am
Forum: ESP8266
Topic: ESP8266 NONOS SDK - Panic Handler and preserving a stacktrace
Replies: 0
Views: 1668

ESP8266 NONOS SDK - Panic Handler and preserving a stacktrace

Greetings Gents, Been looking around all of good and was wondering if anyone knows how to implement a stacktrace for the ESP8266. I see the ESP32 is decently documented on overriding the Panic Handler and I may have to result into digging into the Arduino code to see how they implanted it but my who...
by AgentSmithers
Sat Jul 09, 2022 4:16 am
Forum: ESP-IDF
Topic: Even wear on flash and storing Data in chucks of 4000
Replies: 1
Views: 966

Even wear on flash and storing Data in chucks of 4000

Hey everyone, After reviewing nvs_set_str, it appears that I can store a string up to 4000bytes by appending using a sample like here: http://www.macpczone.co.uk/content/esp32-esp-idf-storing-text-string-nvs-and-updating-it-so-it-can-survive-power-cycles The my buffer will go over type and I'd like ...