This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

question about SPI availability on nrf5340 with secure and non secure modes

1. Your documents mention only SPI3 and SPI4 are available in non- secure mode.. which means spi-0,1,2 should not be available in non-secure mode.. But if i use nrfx drivers, I am able to use spi-2 in secure and non secure mode.. so does nrfx drivers override SPM ? 
2. Are all SPI ports (0-4) available in secure mode ? is there a list of what's available in secure mode ?
3. My device will use uart0, i2c1, spi2, i2c3 and spi4 and qspi in my device.. can Nordic confirm if this is possible in either non-secure or secure mode or do i have to use some kind of mixed mode ?
4. are all SPI ports available in your latest nrf5340 samples ? devzone is wild and has stories of spi3 not being accessible.. will i be wrong to expect to know a single sourceof truth somewhere that says what's available in each mode or of there are any gotachs if i want to use a lot of peripherals ?

Parents
  • Hi again!

    I'm finally back with an answer here. As SPI, UART and TWI all shares the same base address setting instance non-secure will render all the other instances non-secure as well. For example, TWI2 is configured as non-secure by SPM by default. Thus, SPIM2 will be non-secure as well!

    Thank you for your patience.

    Best regards,
    Carl Richard

Reply
  • Hi again!

    I'm finally back with an answer here. As SPI, UART and TWI all shares the same base address setting instance non-secure will render all the other instances non-secure as well. For example, TWI2 is configured as non-secure by SPM by default. Thus, SPIM2 will be non-secure as well!

    Thank you for your patience.

    Best regards,
    Carl Richard

Children
No Data
Related