Hi,
I have a little troubl with RTC and timer1&timer2 not counting impulse.
Program hangs after a while. :(
custom boart sat-tech-sbox232
Hi,
I have a little troubl with RTC and timer1&timer2 not counting impulse.
Program hangs after a while. :(
custom boart sat-tech-sbox232
Hi Mariusz,
I do not see any obvious issues with your use of nrfx_rtc API. I am not able to compile it so I did not get a chance to run and test it myself. There are some issues to compile and I do not want to patch it myself since it will make our setups different.
Make sure you compile your application with no optimizations and build it for the debug build. Run the program again the debugger and run it until you see that it is hanging. Then pause the debugger (pause/halt - do not exit the debugger).
When you halt/pause the debugger when you feel that your application is stuck/hanging, then you would see the debugger is pointing the context in which is stuck/looping. It is important to know this context to understand what is happening in your application. The stuck state normally can mean many different things based on the unique context to that application.
Also check the function call stack to understand the code path of how you application reached there. After this info, we would have more info to proceed into proper debugging direction.
on SDK 2.5.3 all is OK..... but more power consumption
Maybe I messed up the code after corrections to 2.6.1?
Ok, running on my DK52, I see messages on serial /dev/ttyACM0
I am assuming that you are able to run it without issues?
Then I am not sure how to debug this at my end. Do you think you can send the custom board to me?
unnecessary, Please compile for my custom board sat_tech_sbox232 and try run on DK52 (only change UART pins in dts), maybe something wrong with the board definition (only pin numbers changed) or maybe defconfig wrong.... i guess
Ok, I checked again, and..... no hang, but delay is not correct, I want 1s delay, and it wait a lot more (about 30s?)
k_msleep(1000);
Your compiled hex run, but delays are not correct, it should wait 1s in main loop, and it waits a lot more.
Also in my program compiled by myself there are delay issues.
I haven't changed any code to change the delays,
mkoniarz said:I want 1s delay, and it wait a lot more (about 30s?)
k_msleep(1000);
Do you mean that this k_msleep is giving you delay about 30s second? I have never seen that before. I would have thought little drift as clock issues, but 30 seconds is too much to be a clock issue.
I haven't changed any code to change the delays,
mkoniarz said:I want 1s delay, and it wait a lot more (about 30s?)
k_msleep(1000);
Do you mean that this k_msleep is giving you delay about 30s second? I have never seen that before. I would have thought little drift as clock issues, but 30 seconds is too much to be a clock issue.