Search found 134 matches

by PeterR
Fri Jun 07, 2019 1:55 pm
Forum: General Discussion
Topic: Debugging pthreads
Replies: 2
Views: 102

Re: Debugging pthreads

Thanks, always nice to get some neat, commented code. I will use that for my FreeRTOS code.

But... I am using C++11 'tasks' not FreeRTOS.
So I am looking for a way to get std::thread.id out onto console.
by PeterR
Fri Jun 07, 2019 12:26 pm
Forum: General Discussion
Topic: Debugging pthreads
Replies: 2
Views: 102

Debugging pthreads

Hi, I am using C++11 std::thread for portability. Sometimes I see: ***ERROR*** A stack overflow in task pthread has been detected. abort() was called at PC 0x4008496c on core 0 0x4008496c: vApplicationStackOverflowHook at C:/msys32/home/Pete/esp/esp-idf/components/esp32/panic.c:716 The error report ...
by PeterR
Fri May 03, 2019 3:25 pm
Forum: General Discussion
Topic: Host/Target builds
Replies: 0
Views: 104

Host/Target builds

I am developing a application which will be used on a number of platforms. Presently the target is ESP32 and I use a Visual Studio host (not cross) build for subsystem and unit testing and debugging. The 'best' structure I have come up with is: /esp/<project-name>/components/my-component /esp/<proje...
by PeterR
Wed May 01, 2019 9:14 am
Forum: General Discussion
Topic: MINGW issues: to_string is not a member of std
Replies: 9
Views: 575

Re: MINGW issues: to_string is not a member of std

Thanks. I loaded Boost type_id which is trivial to get working. We're lucky to have C++11 on an embedded platform so I will keep with boost for portability sake. You may stand down if I'm the only one interested in RTTI. BTW: I would rather time were spent improving amount of IRAM available e.g. bui...
by PeterR
Fri Apr 26, 2019 5:26 pm
Forum: General Discussion
Topic: MINGW issues: to_string is not a member of std
Replies: 9
Views: 575

Re: MINGW issues: to_string is not a member of std

Going to add boost typeid when I have time.
by PeterR
Fri Apr 26, 2019 5:13 pm
Forum: General Discussion
Topic: stack overflow while using multiple UARTs
Replies: 7
Views: 325

Re: stack overflow while using multiple UARTs

Cool.
I would look a little deeper though.
What length strings did you have? What frequency of error etc?

My suggestion my just be masking a root issue e.g. rogue pointer.
You shouldn't be getting many UART corruptions so that suggests another problem.

Have fun!
by PeterR
Fri Apr 26, 2019 1:06 pm
Forum: General Discussion
Topic: stack overflow while using multiple UARTs
Replies: 7
Views: 325

Re: stack overflow while using multiple UARTs

Looks like your monitor is being crashed as well due to encoding issues which is consistent with my earlier suggestion. To rephrase: No good will come from sending a raw stream to printf() (eventually). I would: printf("%.20s\n", line) or similar. I would also check for non ascii characters & dump i...
by PeterR
Fri Apr 26, 2019 12:53 pm
Forum: General Discussion
Topic: MINGW issues: to_string is not a member of std
Replies: 9
Views: 575

Re: MINGW issues: to_string is not a member of std

Thanks. I'm surprised -frtti works as I didn't think we had a libstdc++ compiled with RTTI support. I guess there's enough support for whatever Catch2 is using - good news! The use case was a type safe boost::any (BTW: in specreg.h 'PS' conflicts with Boost) You are right. I had my UUT as -frtti whi...
by PeterR
Thu Apr 25, 2019 7:17 pm
Forum: General Discussion
Topic: stack overflow while using multiple UARTs
Replies: 7
Views: 325

Re: stack overflow while using multiple UARTs

1024 is quite light for a task which printf(). I set 2048 for my driver soak test stacks (which are only a little more complicated than your code) but I had issues so I went to 4096 as a no brainer. (Clearly a no brainer as there is no reason why I should use 2^n as a stack size!) EDIT: & I did not ...
by PeterR
Thu Apr 25, 2019 11:11 am
Forum: General Discussion
Topic: MINGW issues: to_string is not a member of std
Replies: 9
Views: 575

Re: MINGW issues: to_string is not a member of std

Catch2 works fine on the ESP32 with a couple of tweaks. Catch2 is probably the easiest test framework to get started on & I would recommend. 1) Add the following compile options to each file: #define CATCH_CONFIG_NO_POSIX_SIGNALS 1 #define CATCH_CONFIG_NO_CPP11_TO_STRING 1 2) Use the CATCH_CONFIG_RU...

Go to advanced search