Hello,
I am testing SPI on Kinetis K50 Tower, my problem is that when I init SPI register as :
SPI0_MCR = SPI_MCR_MSTR_MASK |
SPI_MCR_DIS_RXF_MASK |
SPI_MCR_DIS_TXF_MASK | SPI_MCR_ROOE_MASK |
SPI_MCR_HALT_MASK |
SPI_MCR_PCSIS(1);
the cpu go in "hard fault" isr vector 3
If i write SPI0_MCR = 0 there is the same problem.
For information, with debugger it is not possible to write a value in this register.
I verify init MUX pin select and cpu version without result, all seem ok.
if someone have an idea ?
Thanks for your help
解決済! 解決策の投稿を見る。
very good, it 's bit 12 of SIM_SCG6
now there is acces to register and no "hard fault"
Thank you very much