Hi all
I’m coding since a while now with platformio on esp32 wroom 32d board with an j-link edu.
I’m happy with it but I have some problems while debugging. The debugger stucks at some point and does not continue. The console says:
Progam received signal
SIGTRAP, Trace/breakpoint trap.
If I press continue it always stops on the same point. Clear all breakpoints and clean project does not help. It stucks also if there are no breakpoints set.
How can I get off this issue?
Another question is how to disable the optimization so that the debugger has to do all programmlines?
This is a type of breakpoint triggered in usercode when something has gone horribly wrong and wants to invoke the debugger so that the user can have a look at it.
Where does it stop? With what code can the issue be reproduced?
Hi maxgerhardt
it seems that the problem as a cause of a cast.
I have a bmp280 barometer and want to read its configvalues. some of the values are int8_t and others are uint8_t. I wrote a function for both of them.
For the int8_t values I want to make a cast while calling the function.
Well there it is, you’re pasing a uint8_t number value to a function expecting a pointer. You need pass it a pointer to a buffer here, not the address of the buffer convert to an 8-bit value. Write