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.