AnsweredAssumed Answered

How to enable MQX-3.7 watchdog& timer in IAR

Question asked by Gavin Li on Jul 19, 2011
Latest reply on Jul 21, 2011 by Gavin Li

I am using IAR 6.2 and MQX3.7 with TWRK60 board

The watchdog is default enabled in mqx_cnfg.h, but link failed.

Then I added "define MQX_USE_SW_WATCHDOGS  1" to user_config.h, and it doesn't help.

 

How to enable the watchdog?

 

The same problem for timer.

 

Building configuration: cdc_vcom_twrk60n512 - Int Flash Debug
Updating build tree...
spi.c 
Warning[Pe111]: statement is unreachable C:\Program Files\Freescale\Freescale MQX 3.7\usb\device\examples\cdc\virtual_com\spi.c 80
Warning[Pe550]: variable "on_timer" was set but never used C:\Program Files\Freescale\Freescale MQX 3.7\usb\device\examples\cdc\virtual_com\spi.c 35
Warning[Pe550]: variable "result" was set but never used C:\Program Files\Freescale\Freescale MQX 3.7\usb\device\examples\cdc\virtual_com\spi.c 94
Linking
Error[Li005]: no definition for "_watchdog_create_component" [referenced from C:\Program Files\Freescale\
Freescale MQX 3.7\usb\device\examples\cdc\virtual_com\iar\twrk60n512\Int Flash Debug\Obj\spi.o]
Error[Li005]: no definition for "_watchdog_start_ticks" [referenced from C:\Program Files\Freescale\
Freescale MQX 3.7\usb\device\examples\cdc\virtual_com\iar\twrk60n512\Int Flash Debug\Obj\spi.o]
Error[Li005]: no definition for "_timer_start_oneshot_at_ticks" [referenced from C:\Program Files\Freescale\
Freescale MQX 3.7\usb\device\examples\cdc\virtual_com\iar\twrk60n512\Int Flash Debug\Obj\spi.o]
Error while running Linker
 
Total number of errors: 3
Total number of warnings: 3

Outcomes