Thank you Daniel so much for the response. I changed the PCS to 0 and it works. I thought it had to match the instance number 1.
I do not know how to get to the Master Configurations/Configurations list in your screen shot.
I just added these 2 master configs types to the main(copied from send.c) and started changing things.
const lpspi_master_config_t MasterConfig0 = {
.bitsPerSec = 50000U,
.whichPcs = LPSPI_PCS0, //changed
.pcsPolarity = LPSPI_ACTIVE_LOW, //changed
.isPcsContinuous = true, //changed
.bitcount = 8U,
.lpspiSrcClk = 48000000U,
.clkPhase = LPSPI_CLOCK_PHASE_1ST_EDGE,
.clkPolarity = LPSPI_SCK_ACTIVE_HIGH,
.lsbFirst = false,
.transferType = LPSPI_USING_INTERRUPTS,
.rxDMAChannel = 255,
.txDMAChannel = 255,
.callback = NULL,
.callbackParam = NULL,
};
const lpspi_master_config_t MasterConfig1 = {
.bitsPerSec = 50000U,
.whichPcs = LPSPI_PCS0, //changed
.pcsPolarity = LPSPI_ACTIVE_LOW, //changed
.isPcsContinuous = true, //changed
.bitcount = 8U,
.lpspiSrcClk = 48000000U,
.clkPhase = LPSPI_CLOCK_PHASE_1ST_EDGE,
.clkPolarity = LPSPI_SCK_ACTIVE_HIGH,
.lsbFirst = false,
.transferType = LPSPI_USING_INTERRUPTS,
.rxDMAChannel = 255,
.txDMAChannel = 255,
.callback = NULL,
.callbackParam = NULL,
};
I know this is wrong but I’m trying to learn how to use processor expert.
Now all my signals look right but I’m not getting my receiveData variable filled when I do a read.
I’m just sending bytes to and expander and reading them back.
Any suggestions? I’d rather configure these masters from processor expert.
If I don’t hear back from you I will post another question today.
Again thank you. I’m desperate and running out of time.
<http://www.te.com/>
Richard Clouse
Software Engineer
Global Aerospace Defense and Marine - Kilovac
TEL +1 805-220-2034 MOBILE +1 480-213-9259 EMAIL richard.clouse@te.com<mailto:richard.clouse@te.com>
<https://www.facebook.com/teconnectivity> <https://twitter.com/teconnectivity> <http://instagram.com/teconnectivity> <https://www.linkedin.com/company/te-connectivity> <https://www.youtube.com/teconnectivity>
te.com<http://www.te.com/>
Click to read<http://www.te.com/global-en/private/te-email-confidentiality-statement.html> email confidentiality disclaimer.