Author Topic: MPLAB/Harmony3: instantiating plib_wdt.[ch]?  (Read 435 times)

0 Members and 1 Guest are viewing this topic.

Offline fearlessTopic starter

  • Contributor
  • Posts: 18
  • Country: us
MPLAB/Harmony3: instantiating plib_wdt.[ch]?
« on: March 07, 2023, 02:15:09 am »
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!
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 10932
  • Country: us
    • Personal site
Re: MPLAB/Harmony3: instantiating plib_wdt.[ch]?
« Reply #1 on: March 07, 2023, 02:47:31 am »
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.
Alex
 

Offline fearlessTopic starter

  • Contributor
  • Posts: 18
  • Country: us
Re: MPLAB/Harmony3: instantiating plib_wdt.[ch]?
« Reply #2 on: March 07, 2023, 02:53:14 am »
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.

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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf