cancel
Showing results for 
Search instead for 
Did you mean: 

UDE Debugging Error on AEK-MCU-C4MLIT1 Board Using AutoDevKit – LED Blinking Fails

ASH2930T
Associate

I am trying to turn on an LED connected to (PD_9) using the following simple code, but I am encountering an error while flashing the program in UDE. I have attached screenshots of the error and the pin configuration for reference.

Code: Simple LED Blinking

#include "components.h"

/*
* Application entry point.
*/
int main(void) {

/* Initialization of all imported components (generated automatically). */
componentsInit();

/* Set PD_9 as output */
pal_setpadmode(PORT_D, 9, PAL_MODE_OUTPUT);

/* Uncomment the below routine to enable interrupts */
//irqIsrEnable();

/* Application main loop */
for (;;) {
pal_setpad(PORT_D, 9); // Turn LED on
osalThreadDelayMilliseconds(500); // Delay 500 ms
pal_clearpad(PORT_D, 9); // Turn LED off
osalThreadDelayMilliseconds(500); // Delay 500 ms
}
}

Hardware / Pin Configuration:

  • LED GND → A1

  • LED Source → A3 (PD_9 - Pin 62)

  • Port configured as Input/Output

Flashing Process in UDE / AutoDevKit:

  1. In AutoDevKit, click option Execute and Flash.

  2. A pop-up appears in UDE (After Generation, Save compile) , then click Program All.

  3. According to me, it appears to flash successfully.

Error / Warning Observed in UDE:

"Warning, Core0, ArchSrv, the instruction pointer could not be set to value 0x00FCC030, the value reread is 0xFFFFFFFF"

Problem / Question:
Despite following the normal flashing process, even if I paste a code that worked in other project, it gives the same error. I am unable to run the code on the hardware. I suspect something might be missing either in the code, pin configuration, or flashing procedure. Could someone please guide me on what I might be doing wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
ASH2930T
Associate

I solved it; there was no issue with the configuration. I missed one step, which was to start an execution in UDE debugging. Debug - Start Program Execution.

 

View solution in original post

1 REPLY 1
ASH2930T
Associate

I solved it; there was no issue with the configuration. I missed one step, which was to start an execution in UDE debugging. Debug - Start Program Execution.