Dear Colleagues,
A bought an MCBSTR9 DSK + Ulink2 programmer. I never had so much trouble with lack of a good quickstart documentation than with this setup.
My problem: I wrote simple program that should just switch on every 2nd pin on GPIO7 and run in an endless loop (just in case), but it actually doesn't do anything (even the port direction, data, etc registers don't respond - the debugger shows they're all reset all the time). For what I can see, it does compile and load correctly
In the configuration file (STR91x.s) I left all by default, except that I switched on the Port Clock Gating for GPIO7
Can someone please tell me what am I missing here?
Here's my simple program:
#include <91x_lib.h>
int main (void) {
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_DeInit(GPIO7);
GPIO_InitStruct.GPIO_Direction = GPIO_PinOutput;
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_All;
GPIO_InitStruct.GPIO_Type = GPIO_Type_PushPull ;
GPIO_Init (GPIO7, &GPIO_InitStruct);
GPIO_Write(GPIO7, 0xAA);
while(1); }
Best Regards, Istvan