Other Parts Discussed in Thread: HALCOGEN
Hello,
I've been attempting to hook an SPI master device to the LAUNCHXL2-RM57L and read data and so far I'm getting only zeros.
The setup is simple, the master is only sending data at about 12.5mHz , the slave (Hercules) only recurring, never sending any data.
The data is short messages of 12 uint16_t at a time ,following is a logic capture of the signal characteristics.
The master is currently hooked to MIBSPI3 (I've tested MIBSPI0 as well) like so:
To make the thing work, all I did is create simple project using HAL CoGen, enabled MIBSPI3, select it in the MUX page (where oddly enough I god a conflict, and added a VERY simple code that attempts to read.
/* USER CODE END */ static int i = 0; uint16_t RX_Data[20] = { 0 }; // We're only receiving void _main(void) { /* USER CODE BEGIN (3) */ mibspiInit(); while(true) { mibspiGetData(mibspiREG3, 0, &RX_Data[0]); if(RX_Data[0] != 0) { i++; // Never getting to this point i--; } } }
Please advise,
Thanks you,
Eitan.