We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I have MCB2300 board. Using RL-ARM example LEDClient, all are OK. When I create new project and add all files of LEDClient project to my project (include LPC2300.s, main file,...), it does not work. I have not written any additional code line! Is it because of Project Option? What can I do with it? Please help. Thanks very much.
Do you really believe computer programming is like baking a cake - mixing all ingredients and baking (=building)? You must understand what you are doing first. But without clear and concise explanations, nobody here can help you anyway!
Let me explain :
First, I do as RL-ARM user's guide (Example for Sending Data of RL-TCPnet\TCP Socket help). - tcp_get_socket is OK. - tcp_get_state returns TCP_STATE_CLOSED - after call tcp_connect function, socket state is TCP_STATE_SYN_SENT and stay in this state for ever. I think tcp_callback is not called.
I test LEDClient, it run OK (connect to PC server program and send data OK) After that I create another project as above for testing (new project with all files of LEDClient project. after calling tcp_connect, tcp_callback return event TCP_EVT_ABORT
I am new in RL-TCPnet. Please help. Thanks
Have you included the correct 'net_config.c' file in your project...?
Yes, I copy it from Client Example (with some modifictions about IP,... that works in LEDClient example)
Check the options for LPC23_EMAC.c
The Zero Initialized Data and Other Data must be set to IRAM2 [0x7FE00000-0x7FE03FFF].
EMAC has a dedicated Ethernet RAM. Read the errata sheet - Ethernet.2:
www.nxp.com/.../ES_LPC2378_5.pdf
Thanks very very very very much. It's my problem. All are OK for now.