Hi guy's, i'm looking for someone who can solve my problem. I've got EasyMXPRO for stellaris, and LM3S9B95 CORTEX M3 microcontroller. I'm begginer, but i want to configure that stuff with Code Composer. I can build project, but debuuger running all the time when find that line:
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE, GPIO_PINS_ALL);
there's my example code:
#include<stdint.h>
#include<stdbool.h>
#include <inc/hw_gpio.h>
#include"inc/hw_memmap.h"
#include"driverlib/sysctl.h"
#include"driverlib/gpio.h"
#include"driverlib/rom.h"
#define GPIO_PINS_ALL GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7
int main(void) {
uint8_t port_val = 0;
ROM_SysCtlClockSet (SYSCTL_SYSDIV_5 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_8MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE, GPIO_PINS_ALL);
for(;;)
{
GPIOPinWrite (GPIO_PORTA_BASE, 0xFF, port_val++);
}
return 0;
}
I think that i've got problem with configuration of CCS, but i tried a lot of things, and anything was worked on. The debugger is turnning on so i think that isn't problem with drivers or communication. My OS is W10.
Thanks for all advice's.
P.S Sorry for my English.