This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

no other program is working in MCBSTR9 Board.

hi,
here we are using MCBSTR9 Evaluation Board. for this board only one example has given. it is working. the path for this program is: ARM/RV30/BOARDS/KEIL/BLINKY.
program is:
#include <91x_lib.h>
void delay(u32);
int main (void)
{ SCU->GPIOOUT[7] = 0x5555; /* P7.0..7 output - mode 1 */
GPIO7->DDR = 0xFF; /* P7.0..7 Outputs (LED Data) */
while (1)
{ /* Loop forever */
GPIO7->DR[0x3FC] = 0xF0; /* Turn on LED */
delay(0x0FFF);
GPIO7->DR[0x3FC] = 0x0F; /* Turn on LED */
delay(0x0FFF);
} }
void delay(u32 i)
{ u8 j;
while(i-->0)
for(j=0;j<=100;j++);
}

The path for another program :ARM/RV30/BOARDS/ST/BLINKY ,with some modifications according to my board, is not working.
i don't know why it is not working in my board(MCBSTR9 Evaluation Board).

the modified code which is not working in my board is:

#include "91x_lib.h"
GPIO_InitTypeDef GPIO_InitStructure;
u32 var;
void SCU_Configuration(void);
static void Delay(u32 nCount);
int main()
{ #ifdef DEBUG
debug();
#endif
SCU_Configuration();
GPIO_StructInit(&GPIO_InitStructure);
/* GPIO Configuration ------------------------------------*/
GPIO_DeInit(GPIO7);
GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;
GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;
GPIO_Init (GPIO7, &GPIO_InitStructure);

while(1)
{ GPIO7->DR[0x3FC] = 0xFF;
Delay(0x0FF);
GPIO7->DR[0x3FC] = 0x00;
GPIO_WriteBit(GPIO7, GPIO_Pin_0, Bit_RESET);
GPIO_WriteBit(GPIO7, GPIO_Pin_1, Bit_RESET);
GPIO_WriteBit(GPIO7, GPIO_Pin_2, Bit_RESET);
GPIO_WriteBit(GPIO7, GPIO_Pin_3, Bit_RESET);
Delay(0x0FF);
} }
void SCU_Configuration(void)
{ SCU_APBPeriphClockConfig(__GPIO7 ,ENABLE);
} static void Delay(u32 nCount)
{ u32 j = 0;
for(j = nCount; j != 0; j--);
}

to work this program in my board (MCBSTR9) what i have to do?
Thanks in advance

regards
raj.