AnsweredAssumed Answered

CodeWarrior v5.2 Created Watchdog Code

Question asked by Matthew Gardner on Jul 12, 2019
Latest reply on Aug 6, 2019 by ZhangJennie

Hi, I am working on converting a cosmic compiled code into a codewarrior compiled code. I've worked on changing all the pwm global names over to what codewarrior calls them. My code compiles but the log2phy generated code will not allow my code to work. My circuit board has a built in watchdog function to where if pin 66 outputs a weird signal it will send a repeating signal to my reset pin of my chip. My code has its own update_watchdog() method, but codewarrior seems to have its own watchdog method called __FEED_COP(). If I replace all my "update_watchdog()" functions with __FEED_COP(), my code compiles and loads onto my board but still doesn't have functionality even if that reset signal is no longer repeating. It seems I need my update_watchdog method but also need to incorporate codewarrior's but I'm not sure how to do that.