I am using LogicPD EVM3517 and I found issues in MCSPI1 and MCSPI2 with WINCE600_TI_BSP_01_02_00_02. I created a DLL subproject in the BSP platform builder solution to open SPI1, SPI2 and just write to the bus. I scope the CLK lines and they are flat lines. I looked at the pinmux configuration. As far as I can see, the defaults are:
PAD_ENTRY(MCSPI1_CLK ,RELEASED_PAD_DEFAULT_CONFIG) \
PAD_ENTRY(MCSPI2_CLK ,RELEASED_PAD_DEFAULT_CONFIG) \
where:
#define RELEASED_PAD_DEFAULT_CONFIG (INPUT_ENABLED | PULL_RESISTOR_DISABLED | MUXMODE(SAFE_MODE))
I think this is my problem because the clock should be output lines.
Before I make the code change I would like to dump the pinmux configuration for all SPI1 and SPI2 lines. If my understand is correct, I don't see an easy way to dump the default/configured pinmux configuration. Looks like I have to right and application to call DeviceIoControl() and the driver code to pass the pinmux data up to the C++ DLL and then C# application. Is this right, because BSPGetDevicePadInfo()from bsp_padcfg.c of ceddk can only access from the driver side?
My second question is should the BSP configure the pinmux correctly when the devices (SPI1, SPI2, etc.) are selected?
Thanks,
Dennis