Dear Sir,
i am using KDS with K40 microcontroller (Kwikstik board).why i cant change Generated code(cpu.c ,vector.c...etc)Its automatically generated at startup.if i change ,then after sometime i close the KDS.if i open the project then its automatically generate orignal file.and its overwrite my code .Then my changing function washed away.please tell me how to solve the problem
Another question is by using Kinetic development studio i cant RUN the code,I cant Flash the code.But i can debug and the code is working
is there is any settings or is there any problem. I am using onboard segger jlink (K40 tower board)
Hello,
you have multiple ways/options to disable code generation, see Disable my Code Generation | MCU on Eclipse
Erich
hello
i have one more question regarding programmer.i can debug the code but i cant load the code into flash and i cant Run the code .nothing happens error says that GDB closed.i am using KDS with on board segger jlink
Hello,
try clearing all breakpoints/watchpoints, maybe it is this gdb problem described here:
Erich
hello,
There is no breakpoints
when i flash there is on console view
SEGGER J-Link GDB Server V4.92 - Terminal output channel
SEGGER J-Link GDB Server V4.92 Command Line Version
JLinkARM.dll V4.92 (DLL compiled Sep 30 2014 09:33:42)
-----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: 5 sec.
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: MK40DX256xxx10
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Lite-FSL V1 compiled Jun 25 2012 16:40:07
Hardware: V1.00
S/N: 430110131
Checking target voltage...
Target voltage: 3.15 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 = 0x20000000)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x00000A40)
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20000000, MSP= 20000000, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 00000A40
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Select auto target interface speed (2000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (VectorAddr = 0x08)
Semihosting I/O set to TELNET Client
Read 4 bytes @ address 0x00000A40 (Data = 0xB082B580)
Downloading 480 bytes @ address 0x00000000 - Verified OK
Downloading 16 bytes @ address 0x00000400 - Verified OK
Downloading 6300 bytes @ address 0x00000410 - Verified OK
Downloading 4 bytes @ address 0x00001CAC - Verified OK
Downloading 4 bytes @ address 0x00001CB0 - Verified OK
Downloading 668 bytes @ address 0x00001CB4 - Verified OK
Downloading 36 bytes @ address 0x00001F50 - Verified OK
Read 4 bytes @ address 0x00000A40 (Data = 0xB082B580)
Hello Lijo Francis:
Just checking, did you solve this problem with your KwikStik?
If not it may be due to the MCU selection from the New Project Wizard or the J-Link Debugger settings. Check the next discussion for pointers:
Regards!
Jorge Gonzalez