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

Who can help me with debug session problem?

Hello

I work with Tiva C Series LaunchPad, exactly EK-TM4C123GXL evaluation kit in Keil uVision. The problem is when I start a debug session, it stop immediately without any error message, and it happens with any project. Who works with the same board? Who have the same project?

The actual project is about a simple ADC reading, with CMSIS-CORE for Cortex-M and System Startup for TM4C123x Series. The code is:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "TM4C123.h" // Device header
int result; // Variable to value of ADC conversion
/* Main Function */
int main(void) {
SYSCTL->RCGCGPIO |= 0x10; // Enable clock access to PORTE
SYSCTL->RCGCADC |= 0x1; // Enable clock access to ADC0
GPIOE->AFSEL |= 0x8; // Set PE3 with alternative function
GPIOE->DEN &= ~0x8; // Set no PF3 ditial pin
GPIOE->AMSEL |= 0x8; // Set PE3 analog pin
/* ADC0 Initialization */
ADC0->ACTSS &= ~0x8; // Disable SS3
ADC0->EMUX &= ~0xF000; // Software Trigger conversion in SS3
ADC0->SSMUX3 = 0; // AIN0 in sample 1, SS3
ADC0->SSCTL3 |= 0x6; // One sample, 1st last sample
ADC0->ACTSS |= 0x8; // Enable SS3
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I expect anybody have a solution.

0