Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
HI,
This seems like it should be easy, but I'm not having any luck. I want to use MIBSPI5CLK, MIBSPI5SOMI[0] and MIBSPI5SIMO[0] as GIO outputs. In HalCoGen I have these set as GIO outputs on the MIBSPI5 Port tab. I have the MIBSPI5 driver enabled on the Driver Enable tab (I've tried it both ways). I have the MIBSPI5 pins selected on the PINMUX tab (I've tried it both ways).
I have very simple loop in Code Composer V7.0.0.00043:
int32_t TEST_COUNT = 0; // this is the counter for toggling the GIO bit
gioInit();
while(1)
{
if (TEST_COUNT == 10000000)
{
TEST_COUNT = 0;
gioToggleBit(gioPORTA,0);
gioToggleBit(mibspiPORT5,9);
gioToggleBit(mibspiPORT5,10);
gioToggleBit(mibspiPORT5,11);
}
else
{
TEST_COUNT ++;
}
}
GIOA0 toggles just fine, but not the MIBSPI pins. I also can't control the pu/pd on the MIBSPI pins.
My includes are :
#include "sys_common.h"
#include "gio.h"
#include "reg_mibspi.h"
What am I missing?
Thanks.