Replies: 2 comments 1 reply
-
Are you sure there are no cases where the code may loop without sleeping? This could cause problems |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Rik,
Is it necessary to sleep in app? Can we not have indefinite loop in main app?
I think you have pointed out correctly. I noticed that I need to have atleast 1 millisecond delay in a while loop to remove this error.
I wonder how do we avoid that? I think during sleep watchdog is fed. is this right? Is there any instruction to feed watchdog in main app without adding delay of 1 millisecond?
For delay I am using vtaskdelay.
Junaid
On 20 Dec 2024, at 11:24 am, Rik ***@***.***> wrote:
Are you sure there are no cases where the code may indefinitely loop without sleeping? This could cause problems
—
Reply to this email directly, view it on GitHub<#1703 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGC62YIOZ6MAEKIN5K3E2AD2GP45XAVCNFSM6AAAAABT5QYRUGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSG43TOMY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am facing difficulty in understanding why my code gives a watchdog fail error and then led 1 blinks with five pulses. I am trying peer to peer communication and using usec_time.h to measure round trip time.
Below is mode code in app(which is what I am playing around mostly). and console output.
I will appreciate if you have any tips or tutorial to follow for better understanding on debugging the code crazyflie ecosystem and pin pointing the issue. Thanks
Console output
SYS: Crazyflie 2.1 is up and running!
SYS: Build 22:59fa2f6c6837 (2024.10.2 +22) MODIFIED
SYS: I am 0x313232313232470F0040002B and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_CORE: 1 deck(s) found
DECK_CORE: Calling INIT on driver bcFlow2 for deck 0
ZR2: Z-down sensor [OK]
PMW: Motion chip id: 0x49:0xB6
IMU: BMI088: Using I2C interface.
IMU: BMI088 Gyro connection [OK].
IMU: BMI088 Accel connection [OK]
IMU: BMP388 I2C connection [OK]
ESTIMATOR: Using Kalman (2) estimator
CONTROLLER: Using PID (1) controller
MTR-DRV: Using brushed motor driver
SYS: About to run tests in system.c.
SYS: NRF51 version: 2024.10 (CF21)
EEPROM: I2C connection [OK].
STORAGE: Storage check [OK].
IMU: BMI088 gyro self-test [OK]
DECK_CORE: Deck 0 test [OK].
SYS: The system resumed after watchdog timeout [WARNING]
SYS: watchdogNormalStart [FAIL]
Beta Was this translation helpful? Give feedback.
All reactions