Search found 122 matches

by PeterR
Tue Apr 23, 2019 4:04 pm
Forum: General Discussion
Topic: MINGW issues: to_string is not a member of std
Replies: 0
Views: 11

MINGW issues: to_string is not a member of std

I am attempting to port some C++ code and test cases onto the ESP32. The first error is 'to_string' is not a member of 'std' A fix is described here: https://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-g-mingw EDIT: although I cannot find the relevant include directory...
by PeterR
Wed Apr 17, 2019 1:56 pm
Forum: General Discussion
Topic: Building test cases
Replies: 0
Views: 85

Building test cases

I want to run legacy Catch2 unit tests on target. The unit code is in .cpp files. I have the UUT directory structure: /esp/app/components/<component-name>/src /esp/app/components/<component-name>/include And the test harness is stored here: /esp/app/components/<component-name>/test/src /esp/app/comp...
by PeterR
Fri Mar 08, 2019 3:46 pm
Forum: General Discussion
Topic: Building multiple targets inside the same project
Replies: 1
Views: 177

Re: Building multiple targets inside the same project

This illustrates one approach where two builds share the same source code: https://github.com/espressif/esp-idf/tree/master/examples/system/unit_test If you need conditional compilation within some of the files then add a compilation flag. I think cleaner this way than all in one directory: /project...
by PeterR
Fri Mar 08, 2019 2:01 pm
Forum: General Discussion
Topic: Pushing beacon data to WebServer
Replies: 2
Views: 246

Re: Pushing beacon data to WebServer

1) Web socket. 2) Possibly MQTT (which uses Web Sockets) 3) Propriety TCP (would require an application on your server) There is a lot more handshaking with POST/GET than websockets. Its the latency and round trips which kills and the transaction ain't over until...etc. Websockets allow you to strea...
by PeterR
Fri Mar 08, 2019 1:38 pm
Forum: General Discussion
Topic: I2S Record to SDCard using FATFs
Replies: 15
Views: 1439

Re: I2S Record to SDCard using FATFs

Hi, Scan read your post and you are still: I2CRead(), WaitForSDCard , Signal, I2CRead() How long will it take for WaitForSDCard or really Signal + WaitForSDCard? Like Fly says; you need a queue (a set of buffers). Read up on circular buffers. So (e.g. & not using the perfectly usable FreeRTOS queues...
by PeterR
Thu Mar 07, 2019 1:43 pm
Forum: General Discussion
Topic: I2S Record to SDCard using FATFs
Replies: 15
Views: 1439

Re: I2S Record to SDCard using FATFs

Hi, Your problem is probably that you are writing from the same task that reads I2C. You need to decouple the two activities. fwrite() can block, erase sectors, wear level, go out for a few pints & a curry. Who knows when it will come back to you? Meanwhile, whilst fwrite() is doing whatever, you wi...
by PeterR
Wed Jan 30, 2019 4:02 pm
Forum: General Discussion
Topic: esptool.py in 'C'
Replies: 3
Views: 282

Re: esptool.py in 'C'

My bad, I was thinking about the data logger. The program upload mass storage is USB pen (not SD) & USB would not be easy on the ESP. USB pen is our customer's requirement. I agree that SD would be easier in many ways (as would copying the OTA example) but no dice. SD would need at least 3 pins and ...
by PeterR
Wed Jan 30, 2019 1:44 pm
Forum: General Discussion
Topic: esptool.py in 'C'
Replies: 3
Views: 282

esptool.py in 'C'

Does anyone have a port of esptool.py to C/C++? I have a board with two micros. I have to (customer requirement) allow the ESP to be reprogrammed from the second micro. I have a TTL serial port available and some spare I/O. The obvious solution would be to port esptool.py to 'C' and run on the micro...
by PeterR
Fri Jan 04, 2019 10:44 am
Forum: ESP32 IDF
Topic: IRAM0 segment data does not fit
Replies: 19
Views: 1669

Re: IRAM0 segment data does not fit

Darn & thanks. I saw that GCC sets by default but thought best to double check.
Scratch that idea then.
by PeterR
Thu Jan 03, 2019 11:28 am
Forum: ESP32 IDF
Topic: IRAM0 segment data does not fit
Replies: 19
Views: 1669

Re: IRAM0 segment data does not fit

Been diverted for a few weeks but: It would be worth trying the following GCC compile/link flags either to the whole project or to selected module: Compile: -fdata-section -ffunction-sections Link: -gc-sections Enabling sections will allow the linker to remove unused functions. I think that the defa...

Go to advanced search