frdmk66f_lwip_udpecho_bm

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

frdmk66f_lwip_udpecho_bm

Jump to solution
1,284 Views
randyseedle
Contributor III

I have a FRDM_64 board. And I have been trying to get frdmk66f_lwip_udpecho_bm.c to run. When I go to debug it seems to stop on line 95 of lwip_udpecho_bm.c (BOARD_BootClockRUN();). Thread 1 is running.

My PC's IP port is set to is configured as 192.168.0.100. The debug window shows:

main () at ../source/lwip_udpecho_bm.c:87
87 ethernetif_config_t fsl_enet_config0 = {

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0000c7ba in HardFault_Handler () at ../source/semihost_hardfault.c:72
72 __asm( ".syntax unified\n"
tbreak main
Note: breakpoint 8 also set at pc 0x50e.
Temporary breakpoint 10 at 0x50e: file ../source/lwip_udpecho_bm.c, line 87.
monitor reset
continue
Continuing.

Temporary breakpoint 8, main () at ../source/lwip_udpecho_bm.c:87
87 ethernetif_config_t fsl_enet_config0 = {
No breakpoint number 10.

Program received signal SIGINT, Interrupt.
main () at ../source/lwip_udpecho_bm.c:87
87 ethernetif_config_t fsl_enet_config0 = {

The console shows:


SEGGER J-Link GDB Server V6.44f - Terminal output channel
Resetting target

Resetting target

Resetting target

Resetting target

--------------------------------------------------------------

C:\Users\Randy\Downloads\EchoTool-master\EchoTool-master\EchoTool\bin\Debug>echo
tool 192.168.0.102 /p udp /r 7 /d hello


Hostname 192.168.0.102 resolved as 192.168.0.102

Response time out
Response time out
Response time out
Response time out
Response time out

Statistics: Received=0, Corupted=0, Lost=5

C:\Users\Randy\Downloads\EchoTool-master\EchoTool-master\EchoTool\bin\Debug>

Tags (1)
0 Kudos
Reply
1 Solution
1,166 Views
randyseedle
Contributor III

Jing Pan:

Yes, you are correct. It works now. Thanks.

Randy

View solution in original post

0 Kudos
Reply
6 Replies
1,166 Views
jingpan
NXP TechSupport
NXP TechSupport

K66's code can't run on K64. Their MCG block are different. They are different device. Please download FRDM-K64F SDK and try frdmk64f_lwip_udpecho_bm.

Regards,

Jing

0 Kudos
Reply
1,167 Views
randyseedle
Contributor III

Jing Pan:

Yes, you are correct. It works now. Thanks.

Randy

0 Kudos
Reply
1,166 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Since your code stops on BOARD_BootClockRUN() and hardfault happen, I think there may be some clock setting error. At this stage, lwip even doesn't initialized. Do you change the clock setting? If yes, you can re-config clock tree at ConfigTools->clocks. This tool make the work visualize and it can check the result.

If the problem still there, please show me how you config the clock.

Regards,

Jing

0 Kudos
Reply
1,166 Views
randyseedle
Contributor III

I did not change the clock. It is the same as the initial install.

0 Kudos
Reply
1,166 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

You use frdmk66f_lwip_udpecho_bm as demo, but your board is frdm-k64?

0 Kudos
Reply
1,166 Views
randyseedle
Contributor III

Yes, I am using FRDM-k64 for this demo. How can I check the clock's setting in ConfigTools->clocks ? What should its

setting be normally ?

0 Kudos
Reply