Skip to content

Upgrading to RP Pico 2W WatchDog issue #3340

Description

@djaus2

Upgrading my Softata software for Pico 2W from RPi Pico W.

(1) Have added defined(TARGET_RP2350) in

#if defined(TARGET_RP2040) || defined(TARGET_RASPBERRY_PI_PICO) || defined(TARGET_RP2350)

Compiles past that now but ..

(2) Now getting:
c:\Folders\Documents\Arduino\libraries\SoftataDevices-main\rpiwatchdog.c: In function 'watchdog_start_tick':
c:\Folders\Documents\Arduino\libraries\SoftataDevices-main\rpiwatchdog.c:14:16: error: 'watchdog_hw_t' has no member named 'tick'
14 | watchdog_hw->tick = cycles | WATCHDOG_TICK_ENABLE_BITS;
| ^~
c:\Folders\Documents\Arduino\libraries\SoftataDevices-main\rpiwatchdog.c:14:34: error: 'WATCHDOG_TICK_ENABLE_BITS' undeclared (first use in this function); did you mean 'WATCHDOG_CTRL_ENABLE_BITS'?
14 | watchdog_hw->tick = cycles | WATCHDOG_TICK_ENABLE_BITS;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| WATCHDOG_CTRL_ENABLE_BITS

============
My watchdog file rpiwatchdog.c and rpiwatchdog,h are located here:
https://github.com/djaus2/SoftataDevices

============
Nb: Is there a guide to any other changes for the Pico 2W from Pico W?, thx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions