Search found 9 matches
- Mon Aug 10, 2026 3:31 pm
- Forum: Showcase
- Topic: My first code ever in C, how do you rate it?
- Replies: 11
- Views: 143
Re: My first code ever in C, how do you rate it?
Not cleared. Those variables are part of the stack, and when a task exits that stack is handed back to the heap allocator...
I see, so if I understood correctly, it doesn't manually zero the bits in memory, it just reports as "free" the memory bytes to be used for other stuff.
This means they ...
- Mon Aug 03, 2026 6:45 pm
- Forum: Showcase
- Topic: My first code ever in C, how do you rate it?
- Replies: 11
- Views: 143
Re: My first code ever in C, how do you rate it?
Is that all the backtrace the panic is giving you? Normally it gives you a nice stack dump leading to the call path that triggered it.
Regardless, there is something NULL in one of your semaphores. Usually, something being NULL means A. it hasn't been initialized yet, or B. it has been free'ed ...
- Sun Aug 02, 2026 4:39 pm
- Forum: Showcase
- Topic: My first code ever in C, how do you rate it?
- Replies: 11
- Views: 143
Re: My first code ever in C, how do you rate it?
That looks a lot better. One more remark, but it's more 'advanced': it's not necessarily useful now but it'll help you when your projects get bigger. You ideally want to separate the interface from the implementation, and you're not really doing that. What I mean by that is that in the .h file ...
- Sun Jul 26, 2026 6:13 pm
- Forum: Showcase
- Topic: My first code ever in C, how do you rate it?
- Replies: 11
- Views: 143
Re: My first code ever in C, how do you rate it?
That looks a lot better. One more remark, but it's more 'advanced': it's not necessarily useful now but it'll help you when your projects get bigger. You ideally want to...
I think I understand what you mean, this is basically what Espressif did with their API no?
For example allowing me to use ...
- Sat Jul 11, 2026 6:06 pm
- Forum: Showcase
- Topic: My first code ever in C, how do you rate it?
- Replies: 11
- Views: 143
Re: My first code ever in C, how do you rate it?
- For things that you'd expect to always succeed (outside of a bug in the code) you can also use assert() or ESP_CHECK() to test it. It's shorter than a manual if(fail) printf("failed") solution.
- gpio_reset_pin is superfluous, gpio_config already has the same functionality under the hood (iirc ...
- Sat Jul 11, 2026 10:05 am
- Forum: Showcase
- Topic: My first code ever in C, how do you rate it?
- Replies: 11
- Views: 143
Re: My first code ever in C, how do you rate it?
- For things that you'd expect to always succeed (outside of a bug in the code) you can also use assert() or ESP_CHECK() to test it. It's shorter than a manual if(fail) printf("failed") solution.
- gpio_reset_pin is superfluous, gpio_config already has the same functionality under the hood (iirc ...
- Tue Jul 07, 2026 6:31 pm
- Forum: Showcase
- Topic: My first code ever in C, how do you rate it?
- Replies: 11
- Views: 143
My first code ever in C, how do you rate it?
I know I've used some overkill features like interrupts, but I wanted to experiment.
Initially I hoped that the glitch filter would help me against the bounce of my button, but in the end I had to find an additional workaround, otherwise it often happened that the trigger would fire twice.
The ...
Initially I hoped that the glitch filter would help me against the bounce of my button, but in the end I had to find an additional workaround, otherwise it often happened that the trigger would fire twice.
The ...
- Tue Mar 10, 2026 7:28 pm
- Forum: General Discussion
- Topic: Need help setting toolchain (user guide not helpful)
- Replies: 2
- Views: 134
Re: Need help setting toolchain (user guide not helpful)
I already have eim and Espressif IDE installed thoughDitch what you have done, and start here.
https://dl.espressif.com/dl/eim/
- Sun Mar 08, 2026 6:17 pm
- Forum: General Discussion
- Topic: Need help setting toolchain (user guide not helpful)
- Replies: 2
- Views: 134
Need help setting toolchain (user guide not helpful)
Hello everyone,
TL;DR: (Debian 12) I'm just getting started and I'm already having trouble with the guide, I think I've installed the same tools twice and many steps of said official guides actually end up in errors on my side even though I've followed the steps one-on-one.
Semi-exhaustive ...
TL;DR: (Debian 12) I'm just getting started and I'm already having trouble with the guide, I think I've installed the same tools twice and many steps of said official guides actually end up in errors on my side even though I've followed the steps one-on-one.
Semi-exhaustive ...