cancel
Showing results for 
Search instead for 
Did you mean: 

[AEK-MCU-C4MLIT1] Error in UART and Illegal instruction fetched at address 0x400a8030 in OpenOCD

trishuynh
Associate II

Dear community members,

 

My board is AEK-MCU-C4MLIT1 and I have two problem:

 

1. When I use UDE STK to debug the example SPC58ECxx_RLA Test Application for Discovery, my board blink the test LEDs but when I connect the UART with my board (I've tried with both baud 9600 and 115200) but it displays non-readable symbols. Moreover, the debugger also display the message that "The instruction pointer could not be set to value 0x400a8030, the value reread is 0xFFF...". All the problems of this first question is depicted in the figure below:

trishuynh_0-1717002716118.png

2. Then I moved to openOCD to test (already uninstalled Pls driver and Install UDESTK driver instead), I got an error message: "Illegal instruction fetched at address 0x400a8030. Memory corrupted or target reset?". Those pictures below reveal the error message and all the debug config setting that I config in my project:

trishuynh_1-1717003008430.png

****************

trishuynh_2-1717003029420.png

Driver installed and Debug config:

trishuynh_0-1717003425423.png

 

trishuynh_3-1717003045365.png

trishuynh_8-1717003133876.png

trishuynh_9-1717003142774.png

 

Any help would be very much appreciated.

TH.

 

2 REPLIES 2
ATROI
ST Employee

Hello trishuynh,

In the demo you are using, the serial works only with RS232 board, connect pin GND, 5V, D1 (SCI_0 TXD) and A10 (SCI_0 RXD), see image below.

ATROI_0-1717148147909.png


This because the serial configured in the demo project is not physically connected to the USB present in the AEK-MCU-C4MLIT1.

The baudrate used is 38400. 

Thanks,

AutoDevKit Team.

Dear ATROI,

 

Thank you so much, the first problem has been solved. Could you help me to fix the second problem about Illegal instruction fetched at address 0x400a8030 in OpenOCD as I mentioned above?. 

 

Thanks,

 

TH.