Part Number: MCU-PLUS-SDK-AM243X Tool/software: Problem: in Industrial Coms SDK 9.0, we were reading SPI data from an M93C66-W SPI serial PROM device. However, our code is broken in SDK 9.2. Background: The SPROM requires that we change the SCLK reading edge from write (PHA0) to read (PHA1). We did this in SDK 9 like this: switch(Option) { case POL0_PHA0: gSpiBus0ChCfg[0].frameFormat = MCSPI_FF_POL0_PHA0; MCSPI_chConfig(gMcspiHandle[0], &gSpiBus0ChCfg[0]); break; case POL0_PHA1: gSpiBus0ChCfg[0].frameFormat = MCSPI_FF_POL0_PHA1; MCSPI_chConfig(gMcspiHandle[0], &gSpiBus0ChCfg[0]); However, with SDK 9.2, the SCLK reading edge remains as PHA0 (I confirmed this by checking the contents of 0x2010012C). Digging deeper, I not that the MCSPI_chConfig has changed between 9.0 and 9.2 - the latter being an empty call. I even attempted to directly modify the PHA bit of 0x2010012C register but this was always reset to its orginal condition on a call to MCSPI_transfer. Question: how do I change the SCLK reading edge of an SPI transaction in SDK 9.2? Thanks, Steve
↧