LPC4337 Ethernet is working only in debug Mode

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

LPC4337 Ethernet is working only in debug Mode

642 Views
luiswalther-aco
Contributor I

LPC4337 Ethernet is Working completely only in Debug Mode.

Hi, I have a problem with My LPC4337 target, my system works with the LWIP  with no RTOS (  the examples files are under lpcopen_3_02_lpcxpresso_xpresso4337.zip under THIS link)  and  when  the debugger is Connected  the Program work Ok, they receive multicast UDP messages and send and receive  unicast messages without problem, but after power on reset, the program don't receive more Multicast Messages, but receive and Send UDP unicast messages  without problem ,  I really don't understand why is that happen , I view other Posts  like THIS but  for them the Ethernets stop to work and for me  is working partially without debugger , but with the debugger its working Ok.

maybe is  something I the configuration for the memory , my memory linker script is at the end:

 

PROVIDE(_pvHeapStart = DEFINED(__user_heap_base) ? __user_heap_base : ADDR(.data_RAM3));

PROVIDE(_pvHeapLimit = DEFINED(__user_heap_base) ? __user_heap_base + 0x7FFF: ADDR(.data_RAM3) + 0x7FFF);

PROVIDE(_vStackTop = DEFINED(__user_stack_top) ? __user_stack_top : __top_RamAHB16 - 0);

/* ## Create checksum value (used in startup) ## */

PROVIDE(__valid_user_code_checksum = 0 -

(_vStackTop

+ (ResetISR + 1)

+ (NMI_Handler + 1)

+ (HardFault_Handler + 1)

+ (( DEFINED(MemManage_Handler) ? MemManage_Handler : 0 ) + 1) /* MemManage_Handler may not be defined */

+ (( DEFINED(BusFault_Handler) ? BusFault_Handler : 0 ) + 1) /* BusFault_Handler may not be defined */

+ (( DEFINED(UsageFault_Handler) ? UsageFault_Handler : 0 ) + 1) /* UsageFault_Handler may not be defined */

) );

where my Heap are in the memory 0x20000000 to 0x20007FFF and my Stack begin at the memory 0x20008000, and the global variables at position 0x10080000.

what I am doing wrong , or is a error in the debugger ,how start the debugger the controller that something happens?

thanks in advance..

Luis

UPDATE ( I think is not the Ethernet,  I think is a problem with the power on reset, because after power on reset the program don't work correctly and after software reset or press reset pin  or programming over debugger the program works fine, but I think is something with the lpc link 2 programmer because , I tested a old version from my program that work fine but  now is not working and the only thing that I remember that I do ist to use another lpc link 2 programmer......... )

Labels (2)
0 Kudos
1 Reply

408 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

I checked the LPC43xx errata file with record of RESET.3 (chapter 3.19).

Please check here for the detailed info.

There with the work-around to do a software reset or external reset.

Thank you for the attention.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos