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

Could you help me check my SPI configuration?

Hi Team,

I am developing an application that required SPI communication with msp430.

But, some received characters are disorders, I see them by JLinkRTTViewer logs. For example, in some points around double-hex numbers, The received part's data: AA ==> 2A; 11==> 91; EE==>6E. I am so confused about this. Could you help me check? I provide the code following.

Code here:

Parents Reply Children
  • Distorted data received at the MSP430 or nRF52?

    After the init set the MISO output pin to H0H1 drive level in case the signal is too soggy for correct reading. Ideally at the MSP430 end the output signals SCK, CSN, MOSI would also be high drive if that is an option. There is a Nordic function to do this which you can use instead of the low-level shown below.

    APP_ERROR_CHECK(nrf_drv_spis_init(&spis, &spis_config, spis_event_handler));
    NRF_P0->PIN_CNF[APP_SPIS_MISO_PIN] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);

  • Hi,

    it is at nRF52. I put your function in my code. It still has the problem.

Related