Products > Embedded Computing
MPLAB/Harmony3: instantiating plib_wdt.[ch]?
(1/1)
fearless:
There's an MPLAB/Harmony WDT example for the SAME54. Relative to the Harmony directory, it is
{HarmonyDir}/csp_apps_sam_d5x_e5x/apps/wdt/wdt_timeout/
When you build the example project, it creates (relative to your project directory):
{ProjectDir}/firmware/src/config/sam_e54_xpro/peripheral/plib_wdt.c
{ProjectDir}/firmware/src/config/sam_e54_xpro/peripheral/plib_wdt.c
I want the same thing. BUT: when I build a project using MPLAB/Harmony3, I can't figure out how to cajole MHC into creating plib_wdt.*. It's not listed as an available peripheral. I tried enabling the WDT system fuse (under the System module), but that didn't result in plib_wdt files. I even tried looking in the python and .ftl files to see what would generate the files, but couldn't quite decipher it.
Suggestions? (Please resist making "drop MPLAB" comments. It's already been a rough day...) Thanks!
ataradov:
It should be listed as a peripheral that you can add just like any other peripheral.
If it does not appear, double check that all your components (csp, dev_packs) are up to date and then look in the MHC logs to see if there are any errors related to enumeration of the WDT peripheral.
fearless:
--- Quote ---It should be listed as a peripheral that you can add just like any other peripheral.
If it does not appear, double check that all your components (csp, dev_packs) are up to date and then look in the MHC logs to see if there are any errors related to enumeration of the WDT peripheral.
--- End quote ---
Turns out that's not the case, at least not for WDT. The trick is under System => WDT => Use WDT? needs to be checked. I missed that because I was looking at the fuse settings instead.
Navigation
[0] Message Index
Go to full version