Hi ,
I need your expertise. I'm trying to talk to FRDM33772CSPIEVB (to be used with BATT-6EMULATOR). I connected my Master SPI board which is a S32K310 eval board to the BCC SLAVE eval board(FRDM33772CSPIEVB) by connecting the SPI signals via a bread board together, MOSI->MOSI, CS-CS, CLK-CLK, Miso-MISO. There's also a reset signal out from Master to the reset input of the slave board and grounds are connected . Some pictures from the set up are attached. Also attached is a Beagle SPI traffic LOG that shows how the SPI is set up(initialization). I also send a reset pulse to BCC for 500us.We also checked
We also check the eval board (Vcom, SPI enabled ,Reset,…….)They are ok.
what I see: is no response on the MISO TO WHAT I SEND on MOSI..
THE LIST OF SEVEN PACKETS USED IN INITIALIZING AND SETUP ARE AS FOLLOWS:
1) Assign Address: BCCSPI_TxReg( 1, BCC_REG__SYS_CFG1, bcc_spi_regs[ BCC_REG__SYS_CFG1 ], &rx_data_u16 ); WHERE bcc_spi_regs[ BCC_REG__SYS_CFG1 ] = 0x3881u | 0x0010u.
THE SECOND IS :ASSIGN SEEDS
bcc_spi_regs[ BCC_REG__INIT ] = 0x0001;
2)BCCSPI_TxReg( BCC_CLUSTER_ID__UNASSIGNED, BCC_REG__INIT, bcc_spi_regs[ BCC_REG__INIT ], &rx_data_u16 );
Configure the acquisition process
bcc_spi_regs[ BCC_REG__SYS_CFG1 ] = cfg1;0X3881
bcc_spi_regs[ BCC_REG__SYS_CFG2 ] = cfg2; 0X0030
3) BCCSPI_TxReg( BCC_CLUSTER_ID__ASSIGNED, BCC_REG__SYS_CFG1, bcc_spi_regs[ BCC_REG__SYS_CFG1 ], &u16RxData );
4) BCCSPI_TxReg( BCC_CLUSTER_ID__ASSIGNED, BCC_REG__SYS_CFG2, bcc_spi_regs[ BCC_REG__SYS_CFG2 ], &u16RxData );
bcc_spi_regs[ BCC_REG__SYS_CFG1 ] = 0x3881 | 0x0200;
5) BCCSPI_TxReg( BCC_CLUSTER_ID__ASSIGNED, BCC_REG__SYS_CFG1, bcc_spi_regs[ BCC_REG__SYS_CFG1 ], &rx_data_u16 );// EN CURRENT MEASURMENT
START ACQ PROCESS
bcc_spi_regs[ BCC_REG__ADC_CFG ] = 0x042A | 0X0800;
6) BCCSPI_TxReg( BCC_CLUSTER_ID__ASSIGNED, BCC_REG__ADC_CFG, bcc_spi_regs[ BCC_REG__ADC_CFG ], &u16RxData );
#if ( BCC_CHIP_VER_3_0 == 1 )
u16RxData = 0;
bcc_spi_regs[ BCC_REG__ADC2_OFFSET_COMP ] = 0XC000;
7) BCCSPI_TxReg( BCC_CLUSTER_ID__ASSIGNED, BCC_REG__ADC2_OFFSET_COMP, bcc_spi_regs[ BCC_REG__ADC2_OFFSET_COMP ], &u16RxData );
NOT GETTING ANY RESPONSE( 0) TO THESE PACKETS.
Please shed some light on this.
Regards,
Koorosh Hajiani