Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

gpio_init not called for reset line before use - device locked in reset #19

@Stephen-Bath

Description

@Stephen-Bath

Routine wizchip_reset within file port\ioLibrary_Driver\src\w5x00_spi.c attempts to use the reset GPIO line, however the rest line has not been initialised.

The line gpio_init(PIN_RST); needs to be inserted as the first line of the wizchip_reset function.

Without correctly initialising the reset line, it is not driven to a sufficient voltage by the RP2040 to bring the w5x00 device out of reset. Therefore when this library is used with an ethernet module that does not provide an explicit pull-up on the reset line (such as the ETH WIZ Click board) the w5x00 device is held permanently in reset making the device unusable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions