Hi Everyone I'm trying to implement UDP Echo example on my board. I have 0 Errors and Zero Warnnings , But When I enter into debug mode control directly comes into the reset handler I'm unable to execute. Please tell me what I sthe problem?
IDE : keil 5
code from :D:\Freescale\KSDK_1.1.0
Controller : MK60N512
When I enter debug mode I end up here
Reset_Handler :PROC
EXPORT Reset_Handler [WEAK]
IMPORT SystemInit
IMPORT init_data_bss
IMPORT __main
IF :LNOT::DEF:RAM_TARGET
-> LDR R0, =FlashConfig ; dummy read, workaround for flashConfig
ENDIF
Thank you
Trilok
Hi Trilok,
According to the statement above, it's obviously to find that the MCU always stuck in the reset handler.
And I think the hardware configuration causes the issue, so I was wondering if you can tell me what the exactly demo you select, then I can replicate the issue on my board.
I'm looking forward to your reply.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jeremyzhou
I'm using PK60N512VLQ100 bare Board and Project demo I selected from D:\Freescale\KSDK_1.1.0\demos\lwip_udpecho_demo\ udpecho_bm \ mdk \ twrk60d100m
Thanks/Regards
Trilok
Hi Trilok,
I just used the TWR-K60D100 to run the demo, and it worked well without encountering the kind of issue as you mentioned above.
So I think the root cause is the something about the hardware circuit.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jeremyzhou
I'm using bare board not TWR Kit. Did I need to change any hardware configuration pins in Example code.?
Thank you
Hi Trilok,
I've attached the sch of the TWR-K60D100 and the TWR-K60D100M tower module user's manual, please refer to them for details and figure out the differences between the your own board and the TWR-K60D100.
Hope it helps.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jeremyzhou
Thank you so much
Now I able to execute the Udp freertos demo. But I got stuck at prvCheckTasksWaitingTermination() (In UDP_Echo_init() it hets called) my program waits there only. And I have another question what is the format of the ENET TX an d RX queue circular queue. We have to point TDSR and RDSR to above circular buffer right? If, yes Please could to provide me any documents about ENET Tx and Rx descriptor queue.
Thank you
Trilok
Hi Trilok,
Please refer to Processor Expert UDP+DHCP/LwIP demo application for FRDM-K64F target board to review the details.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------