This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

beaglebone or evmsk build SPI sample

Dear all:

I need to use the evmskAM335x board SPI interface. However, there is not SPI  sample project in beagle/evmsk file

also, I try to build spiFlash sample under evm file .

ex:/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi

Which can't not work and no UARTConsole to uart0.

I think  the board configuration is not the same. So I need to change it.

(1)I try to  modified the makefile at /home/iii/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi

DEVICE=am335x
EVM=evmskAM335x

(2)Then , I update the void function on ./include/armv7a/am335x/evmskAM335x.h

extern int McSPIPinMuxSetup(unsigned int instanceNum);
extern int McSPI0CSPinMuxSetup(unsigned int csPinNum);
extern void McSPI0ModuleClkConfig(void);

(3)

I copy the mcspi.c from \platform\evmAM335x to evmskAM335x

Here I got the message:

Debug/mcspiFlash.o: In function `main':
/home/iii/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi/../../../../../../examples/evmskAM335x/mcspi//mcspiFlash.c:150: undefined reference to `McSPI0ModuleClkConfig'
/home/iii/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi/../../../../../../examples/evmskAM335x/mcspi//mcspiFlash.c:150: undefined reference to `McSPI0ModuleClkConfig'
/home/iii/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi/../../../../../../examples/evmskAM335x/mcspi//mcspiFlash.c:153: undefined reference to `McSPIPinMuxSetup'
/home/iii/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi/../../../../../../examples/evmskAM335x/mcspi//mcspiFlash.c:153: undefined reference to `McSPIPinMuxSetup'
/home/iii/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi/../../../../../../examples/evmskAM335x/mcspi//mcspiFlash.c:158: undefined reference to `McSPI0CSPinMuxSetup'
/home/iii/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmAM335x/mcspi/../../../../../../examples/evmskAM335x/mcspi//mcspiFlash.c:158: undefined reference to `McSPI0CSPinMuxSetup'

Do you have any suggestion for build SPI application for evmskAM335x board or beagle / BBB?

Best Regards, Joe.

  • Hi Joe,
    The same application will not work for EVMSK and BBB as Serial flash is not present on the boards with SPI interface.
    Please check the schematics for confirmation.

    -Murali Krishna Dama

  • Dear Murali:

    Thanks for your replay.

    We did our own board from bbb data, and use the SPI1 to connection MSP430.

    However , my first goal is to build up the SPI interface, and then talk to MSP430.

    So I try to use the sample project , then port it to my own scenario.
  • Dear Joe,

    Could you solve this problem? There should be some solutions to this problem. How is this question answered I am not sure...

    At least the SPI should function on BBB an dpeople have done it I guess but no definite solution is posted anywhere...