LPC54616J512 - Problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54616J512 - Problem

2,934件の閲覧回数
jan92
Contributor II

Hello I have a problem to run program in the LPC54646J512 from MCUexpresso. The program is just simple while loop as it is from MCUexpresso: 

int main(void) {
/* Init board hardware. */
BOARD_InitBootPins();
BOARD_InitBootClocks();
/* Init FSL debug console. */
BOARD_InitDebugConsole();

printf("Hello World\n");

/* Force the counter to be placed into memory. */
volatile static int i = 0 ;
/* Enter an infinite loop, just incrementing a counter. */
while(1) {
i++ ;
}
return 0 ;
}

When I run debug, it allwas ends whith this message: "No source available for "(gdb[81].proc[42000].threadGroup[i1],gdb[81].proc[42000].OSthread[1]).thread[1].frame[0]" lpc54616.PNG

But when I create the new project for LPC54618 and then change in the MCU Settings the chip to LPC54616. Then it works...

Thanks for help.

タグ(2)
7 返答(返信)

2,447件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

OK, I can reproduce the problem. The warning given in the build is a partial clue ...

c:/nxp/mcuxpressoide_10.0.2_411/ide/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol ResetISR; defaulting to 00000000

The issue is basically that the project has no startup file in it, as an appropriate startup file appears to be missing from the LPC54616 SDK.

We'll report the across to the SDK team. But in the meantime, you can just copy across the startup file from your LPC54618 project. Once you have done this - the above warning message should be removed - and your project should have built a debuggable application image.

Regards,

MCUXpresso IDE Support

2,447件の閲覧回数
jan92
Contributor II

Yes, here is the log from build, maybe it could help...

Building target: Test_1.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\Users\Jan\Documents\MCUXpressoIDE_10.0.2_411\workspace\Test_1\libs" -Xlinker -Map="Test_1.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -T Test_1_Debug.ld -o "Test_1.axf" ./utilities/fsl_debug_console.o ./source/Test_1.o ./source/board.o ./source/clock_config.o ./source/pin_mux.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_flexcomm.o ./drivers/fsl_fmc.o ./drivers/fsl_power.o ./drivers/fsl_reset.o ./drivers/fsl_usart.o ./CMSIS/system_LPC54616.o -lfsl_power_lib
Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 60 B 512 KB 0.01%
SRAM_0_1_2_3: 8 KB 160 KB 5.00%
c:/nxp/mcuxpressoide_10.0.2_411/ide/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol ResetISR; defaulting to 00000000
SRAMX: 0 GB 32 KB 0.00%
USB_RAM: 0 GB 8 KB 0.00%
Finished building target: Test_1.axf

0 件の賞賛
返信

2,447件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

We'll investigate further - but one thing that looks very wrong here is that the image being downloaded is only 60 bytes in size. That doesn't even cover the first part of the vector table. That would suggest something is wrong with the configuration or building of your project.

Regards,

MCUXpresso IDE Support

0 件の賞賛
返信

2,447件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

Can you please post the debug log from starting your debug session for the LPC54616 project? See section 14.11, " The Console View", of the MCUXpresso IDE v10.0.2 User Guide for details of how to do this.

Regards,

MCUXpresso IDE Support

0 件の賞賛
返信

2,447件の閲覧回数
jan92
Contributor II

Here it is:

305,927 2-gdb-version
305,936 ~"GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git\n"
305,937 ~"Copyright (C) 2016 Free Software Foundation, Inc.\n"
305,949 ~"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"
305,950 ~"This GDB was configured as \"--host=i686-w64-mingw32 --target=arm-none-eabi\".\nType \"sho\
w configuration\" for configuration details."
305,950 ~"\nFor bug reporting instructions, please see:\n"
305,950 ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
305,950 ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\
ware/gdb/documentation/>.\n"
305,950 ~"For help, type \"help\".\n"
305,951 ~"Type \"apropos word\" to search for commands related to \"word\".\n"
305,951 2^done
305,952 (gdb)
305,953 3-environment-cd C:/Users/Jan/Documents/MCUXpressoIDE_10.0.2_411/workspace/LPC54616J512_Proj\
ect1
305,962 3^done
305,962 (gdb)
305,963 4-gdb-set breakpoint pending on
305,972 4^done
305,972 (gdb)
305,972 5-enable-pretty-printing
305,982 5^done
305,984 (gdb)
305,984 6-gdb-set python print-stack none
305,992 6^done
305,992 (gdb)
305,992 7-gdb-set print object on
306,002 7^done
306,002 (gdb)
306,003 8-gdb-set print sevenbit-strings on
306,012 8^done
306,012 (gdb)
306,013 9-gdb-set charset ISO-8859-1
306,022 9^done
306,022 (gdb)
306,023 10-gdb-set auto-solib-add on
306,032 10^done
306,032 (gdb)
306,037 11-file-exec-and-symbols --thread-group i1 C:/Users/Jan/Documents/MCUXpressoIDE_10.0.2_411/w\
orkspace/LPC54616J512_Project1/Debug/LPC54616J512_Project1.axf
306,043 11^done
306,043 (gdb)
306,045 12-interpreter-exec console "set non-stop on"
306,053 =cmd-param-changed,param="non-stop",value="on"
306,053 12^done
306,053 (gdb)
306,054 13-interpreter-exec console "set pagination off"
306,063 =cmd-param-changed,param="pagination",value="off"
306,063 13^done
306,063 (gdb)
306,064 14-interpreter-exec console "set mi-async"
306,073 =cmd-param-changed,param="mi-async",value="on"
306,073 14^done
306,073 (gdb)
306,076 15-interpreter-exec console "set remotetimeout 60000"
306,083 =cmd-param-changed,param="remotetimeout",value="60000"
306,083 15^done
306,083 (gdb)
306,112 16-target-select extended-remote | crt_emu_cm_redlink -msg-port=54611 -g -mi -2 -pLPC54616J5\
12 -vendor=NXP -reset= -ProbeHandle=1 -CoreIndex=0 -cache=disable -x C:\\Users\\Jan\\mcuxpresso\\.mc\
uxpressoide_packages_support\\LPC54616J512_support --flash-dir C:\\Users\\Jan\\mcuxpresso\\.mcuxpres\
soide_packages_support\\LPC54616J512_support\\Flash --telnet 3331
306,782 =thread-group-started,id="i1",pid="42000"
306,783 =thread-created,id="1",group-id="i1"
306,783 *running,thread-id="1"
306,996 ~"\nProgram"
306,996 ~" stopped.\n"
306,997 ~"0x0000003c in ?? ()\n"
306,998 *stopped,reason="signal-received",signal-name="0",signal-meaning="Signal 0",frame={addr="0x0\
000003c",func="??",args=[]},thread-id="1",stopped-threads=["1"]
306,999 16^connected
307,000 (gdb)
307,006 17-interpreter-exec console "set mem inaccessible-by-default off"
307,010 =cmd-param-changed,param="mem inaccessible-by-default",value="off"
307,011 17^done
307,011 (gdb)
307,017 18-interpreter-exec console "mon ondisconnect cont"
307,021 18^done
307,021 (gdb)
307,023 19-interpreter-exec console "set arm force-mode thumb"
307,032 =cmd-param-changed,param="arm force-mode",value="thumb"
307,032 19^done
307,032 (gdb)
307,033 20-interpreter-exec console "mon capabilities"
307,052 20^done
307,052 (gdb)
307,052 21-interpreter-exec console "set remote hardware-breakpoint-limit 6"
307,062 =cmd-param-changed,param="remote hardware-breakpoint-limit",value="6"
307,062 21^done
307,062 (gdb)
307,063 22-interpreter-exec console "mon semihost enable"
307,082 22^done
307,082 (gdb)
307,082 23-data-list-register-names
307,093 23^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12",\
"sp","lr","pc","","","","","","","","","","xpsr","","","","","","","","","","","","","","","","","",\
"","","","","","","","","","","","","","","","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","d10"\
,"d11","d12","d13","d14","d15","","","","","","","","","","","","","","","","","fpscr","cycles","fpc\
cr","fpcar","fpdscr","mvfr0","mvfr1","s0","s1","s2","s3","s4","s5","s6","s7","s8","s9","s10","s11","\
s12","s13","s14","s15","s16","s17","s18","s19","s20","s21","s22","s23","s24","s25","s26","s27","s28"\
,"s29","s30","s31"]
307,093 (gdb)
307,094 24-target-download
307,123 24+download,{section=".text",section-size="60",total-size="8252"}
307,204 25-list-thread-groups
308,065 24^done,address="0x0",load-size="60",transfer-rate="568",write-rate="60"
308,065 (gdb)
308,067 26-gdb-show --thread-group i1 language
308,076 25^done,groups=[{id="i1",type="process",pid="42000",executable="C:\\Users\\Jan\\Documents\\M\
CUXpressoIDE_10.0.2_411\\workspace\\LPC54616J512_Project1\\Debug\\LPC54616J512_Project1.axf"}]
308,076 (gdb)
308,081 26^done,value="auto"
308,081 (gdb)
308,088 27-gdb-set --thread-group i1 language c
308,089 28-list-thread-groups i1
308,090 27^done
308,091 (gdb)
308,091 29-interpreter-exec --thread-group i1 console "p/x (char)-1"
308,094 28^done,threads=[{id="1",target-id="Thread 1",details="Runnable",frame={level="0",addr="0x00\
000000",func="__section_table_start",args=[]},state="stopped"}]
308,094 (gdb)
308,094 ~"$1 = 0xff\n"
308,094 29^done
308,095 (gdb)
308,096 30-data-evaluate-expression --thread-group i1 "sizeof (void*)"
308,100 31-stack-info-depth --thread 1 11
308,105 30^done,value="4"
308,105 (gdb)
308,105 31^done,depth="1"
308,105 (gdb)
308,107 32-gdb-set --thread-group i1 language auto
308,116 32^done
308,116 (gdb)
308,116 33-interpreter-exec --thread-group i1 console "show endian"
308,126 ~"The target endianness is set automatically (currently little endian)\n"
308,126 33^done
308,126 (gdb)
308,139 34-break-insert -f C:\\Users\\Jan\\Documents\\MCUXpressoIDE_10.0.2_411\\workspace\\lpcxpress\
o54618_driver_examples_usart_interrupt\\drivers\\fsl_reset.c:122
308,139 35-break-insert -f C:\\Users\\Jan\\Documents\\MCUXpressoIDE_10.0.2_411\\workspace\\TEST_USAR\
T\\source\\TEST_USART.c:50
308,139 36-break-insert -f C:\\Users\\Jan\\Documents\\MCUXpressoIDE_10.0.2_411\\workspace\\lpcxpress\
o54618_driver_examples_i2c_polling_transfer\\source\\i2c_polling_transfer.c:123
308,139 37-break-insert -f C:\\Users\\Jan\\Documents\\MCUXpressoIDE_10.0.2_411\\workspace\\lpcxpress\
o54618_driver_examples_i2c_polling_transfer\\source\\i2c_polling_transfer.c:178
308,140 &"No symbol table is loaded. Use the \"file\" command.\n"
308,141 34^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending=\
"C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_\
examples_usart_interrupt\\\\drivers\\\\fsl_reset.c:122",times="0",original-location="C:\\\\Users\\\\\
Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_examples_usart_i\
nterrupt\\\\drivers\\\\fsl_reset.c:122"}
308,141 (gdb)
308,146 &"No symbol table is loaded. Use the \"file\" command.\n"
308,146 35^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending=\
"C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\TEST_USART\\\\source\\\\
\TEST_USART.c:50",times="0",original-location="C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0\
.2_411\\\\workspace\\\\TEST_USART\\\\source\\\\TEST_USART.c:50"}
308,146 (gdb)
308,147 38-break-insert -f C:\\Users\\Jan\\Documents\\MCUXpressoIDE_10.0.2_411\\workspace\\lpcxpress\
o54618_driver_examples_i2c_polling_transfer\\source\\i2c_polling_transfer.c:185
308,147 &"No symbol table is loaded. Use the \"file\" command.\n"
308,148 36^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending=\
"C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_\
examples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:123",times="0",original-location="\
C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_e\
xamples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:123"}
308,149 (gdb)
308,149 39-break-insert -f C:\\Users\\Jan\\Documents\\MCUXpressoIDE_10.0.2_411\\workspace\\lpcxpress\
o54618_driver_examples_i2c_polling_transfer\\source\\i2c_polling_transfer.c:148
308,149 &"No symbol table is loaded. Use the \"file\" command.\n"
308,151 37^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending=\
"C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_\
examples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:178",times="0",original-location="\
C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_e\
xamples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:178"}
308,152 (gdb)
308,153 &"No symbol table is loaded. Use the \"file\" command.\n"
308,155 38^done,bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending=\
"C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_\
examples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:185",times="0",original-location="\
C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_e\
xamples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:185"}
308,157 (gdb)
308,158 &"No symbol table is loaded. Use the \"file\" command.\n"
308,159 39^done,bkpt={number="6",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending=\
"C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_\
examples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:148",times="0",original-location="\
C:\\\\Users\\\\Jan\\\\Documents\\\\MCUXpressoIDE_10.0.2_411\\\\workspace\\\\lpcxpresso54618_driver_e\
xamples_i2c_polling_transfer\\\\source\\\\i2c_polling_transfer.c:148"}
308,160 (gdb)
308,161 40-break-insert -t -f main
308,161 &"Function \"main\" not defined.\n"
308,161 40^done,bkpt={number="7",type="breakpoint",disp="del",enabled="y",addr="<PENDING>",pending="\
main",times="0",original-location="main"}
308,161 (gdb)
308,167 41-exec-continue --thread-group i1
308,168 42-trace-status
308,171 41^running
308,171 *running,thread-id="1"
308,190 43-thread-info 1
308,232 (gdb)
308,232 42^done,supported="0"
308,232 (gdb)
308,302 43^done,threads=[{id="1",target-id="Thread 1",details="Stopped",state="running"}]
308,302 (gdb)
308,417 ~"\nProgram"
308,418 ~" received signal SIGSTOP, Stopped (signal).\n"
308,419 ~"0x0000003c in ?? ()\n"
308,420 *stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning="Stopped (signal)",fr\
ame={addr="0x0000003c",func="??",args=[]},thread-id="1",stopped-threads=["1"]
308,425 44-stack-info-depth --thread 1 11
308,433 44^done,depth="1"
308,434 (gdb)
308,462 45-thread-info 1
308,465 45^done,threads=[{id="1",target-id="Thread 1",details="Stopped",frame={level="0",addr="0x000\
0003c",func="??",args=[]},state="stopped"}]
308,465 (gdb)
308,627 46-trace-status
308,631 46^done,supported="0"
308,631 (gdb)

0 件の賞賛
返信

2,447件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

Thanks - but that is the content from the gdb traces console.  I need to see the debug log (from the "Debug Messages console").

Regards,

MCUXpresso IDE Support

0 件の賞賛
返信

2,447件の閲覧回数
jan92
Contributor II

Ok, Hope it is what you looking for:

MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:31:55 - crt_emu_cm_redlink build 272)
Reconnected to existing redlink server (PID 4294967295)
Connecting to probe 1 core 0 (server PID unknown) gave 'OK'
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.182 (NXP Semiconductors)
Serial Number: I3F2MQIT
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#9&d767c1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
number of h/w breakpoints = 6
number of flash patches = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Inspected v.2 On-chip Flash Memory LPC5460x_512K.cfx
Image 'LPC5460x (512K Flash) Oct 3 2016 17:52:49'
NXP: LPC54616J512
Connected: was_reset=true. was_stopped=false
MCUXpresso Free License - Downloads unlimited
Awaiting telnet connection to port 3331 ...
GDB nonstop mode enabled
Opening flash driver LPC5460x_512K.cfx
Sending SYSRESETREQ to run flash driver
Writing 60 bytes to address 0x00000000 in Flash
Erased/Wrote page 0-0 with 60 bytes in 371msec
Closing flash driver LPC5460x_512K.cfx
Flash Write Done
Flash Program Summary: 60 bytes in 0.37 seconds (0.16 KB/sec)
Stopped: VectorCatch:HardF (PC was 0x00000000) (VectorCatch)

0 件の賞賛
返信