Andoni Ibarreche

KV31 Flashing problem with JLink and KDS

Discussion created by Andoni Ibarreche on Sep 19, 2016
Latest reply on Sep 21, 2016 by Alice_Yang

Hi,

 

I am trying to flash a TWR-KV31F120M with a JLink and KDS with the tower_bootloader program that I modified., but I am getting an error. I have flashed the same program with the OpenSDA iincluded in the TWR board. 

 

The error I am getting is:

 

The console output is:

 

213,672 2-list-thread-groups
213,674 2^done,groups=[{id="i1",type="process"}]
213,676 (gdb)
213,748 3-gdb-show language
213,749 3^done,value="auto"
213,749 (gdb)
213,750 4-data-evaluate-expression "sizeof (void*)"
213,759 4^done,value="4"
213,759 (gdb)
213,760 5-gdb-set language auto
213,770 5^done
213,770 (gdb)
213,770 6-interpreter-exec console "show endian"
213,780 ~"The target endianness is set automatically (currently little endian)\n"
213,780 6^done
213,780 (gdb)
213,784 7-gdb-version
213,790 ~"GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140731-cvs\n"
213,790 ~"Copyright (C) 2013 Free Software Foundation, Inc.\n"
213,790 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\
ed by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
213,790 ~"This GDB was configured as \"--host=i686-w64-mingw32 --target=arm-none-eabi\".\nFor bug re\
porting instructions, please see:\n"
213,790 ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
213,790 7^done
213,790 (gdb)
213,791 8-environment-cd C:/Freescale/FSL_Kinetis_Bootloader_1_2_0/targets/MKV31F51212/kds/tower_boo\
tloader
213,801 8^done
213,801 (gdb)
213,803 9-gdb-set breakpoint pending on
213,812 9^done
213,812 (gdb)
213,812 10-enable-pretty-printing
213,823 10^done
213,823 (gdb)
213,823 11-gdb-set python print-stack none
213,833 11^done
213,833 (gdb)
213,834 12-gdb-set print object on
213,843 12^done
213,843 (gdb)
213,843 13-gdb-set print sevenbit-strings on
213,854 13^done
213,854 (gdb)
213,854 14-gdb-set charset ISO-8859-1
213,864 14^done
213,864 (gdb)
213,867 15source .gdbinit
213,875 &"source .gdbinit\n"
213,875 ~"Really redefine built-in command \"run\"? (y or n) [answered Y; input not from terminal]\n\
"
213,882 =thread-group-started,id="i1",pid="42000"
213,882 =thread-created,id="1",group-id="i1"
213,883 16-list-thread-groups --available
213,902 ~"0x00000000 in ?? ()\n"
213,902 *stopped,frame={addr="0x00000000",func="??",args=[]},thread-id="1",stopped-threads="all"
213,902 @"Flash breakpoints enabled\r\n"
213,986 @"Resetting target\r\n"
213,986 &".gdbinit:24: Error in sourced command file:\n"
213,987 &"No executable file specified.\n"
213,987 &"Use the \"file\" or \"exec-file\" command.\n"
213,987 15^error,msg=".gdbinit:24: Error in sourced command file:\nNo executable file specified.\nUs\
e the \"file\" or \"exec-file\" command."
213,987 (gdb)
213,987 16^error,msg="Can not fetch data now."
213,987 (gdb)
214,034 17set mem inaccessible-by-default off
214,034 18-list-thread-groups
214,039 &"set mem inaccessible-by-default off\n"
214,039 =cmd-param-changed,param="mem inaccessible-by-default",value="off"
214,039 17^done
214,039 (gdb)
214,039 18^done,groups=[{id="i1",type="process",pid="42000"}]
214,040 =thread-selected,id="1"
214,040 (gdb)
214,040 19-gdb-set auto-solib-add on
214,050 19^done
214,050 (gdb)
214,053 20-target-select remote localhost:2331
214,060 =thread-group-exited,id="i1"
214,071 21-gdb-exit
214,072 =thread-group-started,id="i1",pid="42000"
214,072 =thread-created,id="1",group-id="i1"
214,073 22-list-thread-groups --available
214,096 *stopped,frame={addr="0x000004d8",func="??",args=[]},thread-id="1",stopped-threads="all"
214,096 20^connected
214,096 =thread-selected,id="1"
214,096 (gdb)
214,096 21^exit
214,096 =thread-group-exited,id="i1"

 

The debug configuration I am using is:

 

 

I hope someone can help me.

 

Best Regrads,

Andoni

Outcomes