Hello, I am sorry in advance for my poor skills, I just started programming microcontroller for university matter. In fact I am about to ride a paper for an example experiment within a course. Therefore I need to (already prepared hardware by my supervisor) use an XMC 4500 Relax (Lite) Kit of Infineon and I am using also DAVE 4 V6 with J-Link on Win 10 Pro N 64-Bit.
As I said I dont know much about yet, but thats why I choose this topic. However I dont want to get just a solution, but also an understanding why my problem is appearing, if possible.
The Debugger wont work properly (according to my supervisor), but he is convinced, the problem is upt to my OS. So he suggested using another Os (such as Win 7 with Virtual Box for example). Anyhow I tried this and it actually did work. But it would be easier to use the Debugger on my primary OS so I thought somebody is able to help me or give some advise where/how to look for solutions.
The PNG shows what exactly is happening when debug project for the first time. I also qouted the Console output.
<terminated, exit value: -1>JLinkGDBServerCL.exe
PS: In addition I may say, that the microcontroller itself does work properly, as well as a comport connection from matlab itself.
As I said I dont know much about yet, but thats why I choose this topic. However I dont want to get just a solution, but also an understanding why my problem is appearing, if possible.
The Debugger wont work properly (according to my supervisor), but he is convinced, the problem is upt to my OS. So he suggested using another Os (such as Win 7 with Virtual Box for example). Anyhow I tried this and it actually did work. But it would be easier to use the Debugger on my primary OS so I thought somebody is able to help me or give some advise where/how to look for solutions.
The PNG shows what exactly is happening when debug project for the first time. I also qouted the Console output.
<terminated, exit value: -1>JLinkGDBServerCL.exe
<terminated, exit value: 0>arm-none-eabi-gdbSEGGER J-Link GDB Server V6.00d Command Line Version
JLinkARM.dll V6.00d (DLL compiled Jul 29 2016 19:07:54)
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: on
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: XMC4500-F100x1024
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Lite-XMC4000 Rev.1 compiled Apr 2 2015 18:25:20
Hardware: V1.00
S/N: 551010176
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x2000FF3C)
Read 2 bytes @ address 0x00000000 (Data = 0xFF3C)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x08000200)
R0 = E000ED08, R1 = 00000263, R2 = 02000080, R3 = C8000201
R4 = 00000536, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 0C000004, R10= 00000000, R11= 00000000
R12= 00000000, R13= 10000800, MSP= 10000800, PSP= 00000000
R14(LR) = 000000ED, R15(PC) = 08000200
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x08000200 (Data = 0xD08CF8DF)
Read 2 bytes @ address 0x08000200 (Data = 0xF8DF)
Select auto target interface speed (1539 kHz)
Flash breakpoints enabled
Read 4 bytes @ address 0x08000200 (Data = 0xD08CF8DF)
Downloading 4096 bytes @ address 0x0C000000 - Verified OK
Downloading 4096 bytes @ address 0x0C001000 - Verified OK
Downloading 4096 bytes @ address 0x0C002000 - Verified OK
Downloading 4096 bytes @ address 0x0C003000 - Verified OK
Downloading 4096 bytes @ address 0x0C004000 - Verified OK
Downloading 4096 bytes @ address 0x0C005000 - Verified OK
Downloading 788 bytes @ address 0x0C006000 - Verified OK
Downloading 272 bytes @ address 0x0C006314 - Verified OK
Read 4 bytes @ address 0x08000200 (Data = 0xD08CF8DF)
Resetting target
Halting target CPU...
...Target halted (PC = 0x08000200)
Starting target CPU...
GDB closed TCP/IP connection
Restoring target state and closing J-Link connection...
<terminated, exit value: 0>Semihosting and SWVGNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160210-cvs
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32
--target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: the current language does not match this frame.
Thanks in advance.SEGGER J-Link GDB Server V6.00d - Terminal output channel
Connection closed by the GDB server.
PS: In addition I may say, that the microcontroller itself does work properly, as well as a comport connection from matlab itself.
The post was edited 1 time, last by Pratched ().