This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to set pad conf registers and where to check the result?

Other Parts Discussed in Thread: AM3517

Hi,

(original question: SPI1 somi data is observed by scope, but no data on register, why?)

I'm using am3517 and adeneo bsp. I used SPI1 channel 1 which is not used by default.

Now my problem is that I can NOT read data from RX register, even when I observed the data on somi pin by a scope.

Which part chould be wrong? I'm wondering the pad conf, but the code should be fine:

#define MCSPI1_PADS \
    PAD_ENTRY(MCSPI1_CS0, INPUT_DISABLED | PULL_RESISTOR_DISABLED | MUXMODE(0)) \
    PAD_ENTRY(MCSPI1_CS1, INPUT_DISABLED | PULL_RESISTOR_DISABLED | MUXMODE(0)) \
    PAD_ENTRY(MCSPI1_SOMI,INPUT_ENABLE | PULL_RESISTOR_DISABLED | MUXMODE(0)) \
    PAD_ENTRY(MCSPI1_SIMO,INPUT_DISABLED | PULL_RESISTOR_DISABLED | MUXMODE(0)) \
    PAD_ENTRY(MCSPI1_CLK, INPUT_ENABLE | PULL_RESISTOR_DISABLED | MUXMODE(0))

Any other place I should check? once the pads is defined, is it possible that padconf is changed by some code else?

Thanks