Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Wanted to introduce WDT on free RTOS running atmel SAMD20

Posted 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 SAMD20

Posted 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 SAMD20

Posted 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 SAMD20

Posted 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 SAMD20

Posted 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 SAMD20

Posted 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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists