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 able to reproduce this, I set CONFIG_SPI=n in both the hello_world as well as the blinky example, and they worked. By the way, the configuration CONFIG_SPI defaults to 'n' with an ontouched prj.conf, I confirmed this by checking the file <ncs location>\zephyr\samples\basic\blinky\<build folder>\zephyr\.config.

    Could you tell me what sample you're using?

    Best regards,

    Simon

Reply
  • I'm not able to reproduce this, I set CONFIG_SPI=n in both the hello_world as well as the blinky example, and they worked. By the way, the configuration CONFIG_SPI defaults to 'n' with an ontouched prj.conf, I confirmed this by checking the file <ncs location>\zephyr\samples\basic\blinky\<build folder>\zephyr\.config.

    Could you tell me what sample you're using?

    Best regards,

    Simon

Children
Related