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.
Reproduction:
Yields
tmf8829_probe failed.However, moving the
block before
tmf8829PowerUp(driver);intmf8829_probeand running the same reproduction code yieldsTMF8829 probe OK.