FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [June 2016 Threads] Wanted to introduce WDT on free RTOS running atmel SAMD20Posted by hellomanas1991 on June 2, 2016 Hi All,
I wanted to introduce WDT on atmel(RTOS running). I have tried with the WDT driver provided on Atmel IDE. It is working on basic project(Mean without RTOS). But when I am using the same driver on a project where RTOS is running just keep on resetting the system again and again.
Wanted to introduce WDT on free RTOS running atmel SAMD20Posted by rtel on June 2, 2016 You don't say why. I'm guessing, as this is a watchdog, that it is supposed to reset the system if it is not 'kicked'. Are you kicking the watchdog in an attempt to prevent the watchdog resetting the system. If so, where from and under what circumstance?
Wanted to introduce WDT on free RTOS running atmel SAMD20Posted by hellomanas1991 on June 3, 2016 Thanks for the reply !
I have a WDT which I configured for 15 sec reset time if it is not being kicked with in that time period.But the problem is that in case of RTOS after initializing all the tasks and just before the schedular starts when I am initializing the WDT. It is not waiting till the expiry time. Immediately it is resetting the system.So I am thinking it is doing something with the free RTOS Ticks count/timer tick.
Wanted to introduce WDT on free RTOS running atmel SAMD20Posted by rtel on June 3, 2016 Do you mean the system resets before the scheduler has even started? If
so, are you sure it is the WDT that is resetting the system - seems
unlikely if it is set for 15 seconds.
Is the driver for the watchdog timer enabling interrupts using the
basepri register? If so, that could cause a problem just before the
scheduler starts.
Have you tried enabling the watchdog after the scheduler has started?
Perhaps in the Daemon Task Startup Hook, if you are using timers
(http://www.freertos.org/a00016.html) - or maybe even in a one shot timer.
Wanted to introduce WDT on free RTOS running atmel SAMD20Posted by hs2sf on June 4, 2016 I'm using the SAM1B WDT w/o any problems. Except a periodic refresh task (as 1 possibility) it's completely unrelated to the RTOS. Although I'm not uing a 'driver' for the rather simple WDT setup I guess, the Atmel driver only touches WDT resoures.
You should double check you WDT setup.
Wanted to introduce WDT on free RTOS running atmel SAMD20Posted by hellomanas1991 on June 12, 2016 Thank you so much for your support ! I have resolved this issue by implementing the above solution you provided.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|