This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Disabling SPI on Thingy91

Hey Nordic Team,

I am trying to disable the SPI module to optimize my project and reduce flash usage. The Zephyr optimization guide refers to disabling unused peripherals so I attempted to set CONFIG_SPI=n in my project configuration (prj.conf). From my research, this should be possible because SPI is only used to control the two accelerometers and if I am not taking advantage of them in my project it follows that I should be able to disable to SPI module completely.

Unfortunately, after setting CONFIG_SPI to n in my project, the board no longer boots when the resulting firmware is flashed.

Is it Nordics understanding that I should be able to disable SPI on the Thingy91 and if so is there any other configuration then CONFIG_SPI=n in my project configuration that I might be missing?

Thanks,
Cody

Parents
  • I'm not sure why this is. I know that the adxl372 and the adxl362 are enabled by default in the Device Tree (see nrf\boards\arm\thingy91_nrf9160\thingy91_nrf9160_common.dts) but I still don't see why it fails when CONFIG_SPI=n.

    What sample do you use? Are you able to debug the Thingy:91 or get some logs to see exactly where it fails?

    I don't have access to a 10-pin cable to test the Thingy:91 at the moment, but will get ahold of one and test it on Monday/Tuesday.

    Best regards,

    Simon

Reply
  • I'm not sure why this is. I know that the adxl372 and the adxl362 are enabled by default in the Device Tree (see nrf\boards\arm\thingy91_nrf9160\thingy91_nrf9160_common.dts) but I still don't see why it fails when CONFIG_SPI=n.

    What sample do you use? Are you able to debug the Thingy:91 or get some logs to see exactly where it fails?

    I don't have access to a 10-pin cable to test the Thingy:91 at the moment, but will get ahold of one and test it on Monday/Tuesday.

    Best regards,

    Simon

Children
No Data
Related