Skip to content

tmf8829_probe SPI default path fails: tmf8829PowerUp runs before BL_CMD_I2C_OFF latches the interface #2

@rowandempster

Description

@rowandempster

Reproduction:

static int setup_chip(tmf8829_chip *chip)
{
// Set Bus type to SPI
tmf8829_set_busType(chip, 1);
enablePinHigh(chip);
tmf8829_probe(chip);
}

Yields tmf8829_probe failed.

However, moving the

    /* Switch off unused communication interface */
    if (chip->bustype == BUS_SPI)
        error = tmf8829BootloaderCmdI2cOff(driver);
    else
        error = tmf8829BootloaderCmdSpiOff(driver);

block before tmf8829PowerUp(driver); in tmf8829_probe and running the same reproduction code yields TMF8829 probe OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions