Hi everyone,
I'm using the RL-TCPNet in standalone mode (i.e. without a RTOS) and DHCP is enabled. I call the mem_test() function to determine if the DHCP-assigned IP address is valid. When I generated a callgraph from the compiler, it says that mem_test() and mem_set() are recursive calls, see info below. Note that I don't call mem_set() directly, it's called by a bunch of RL-TCPNet commands including itself.
Has anyone noticed this before? I'm leary of recursive functions in embedded applications, has anyone noticed any problems from these calls?
Thanks,
Lei Zong ------------------------
mem_test (Thumb, 18 bytes, Stack size 0 bytes, at_lib.o(i.mem_test))
[Calls]
>> mem_test
[Called By] >> ethernetTask (via BLX) >> ip_get_locadr >> mem_test
mem_set (Thumb, 10 bytes, Stack size 0 bytes, at_lib.o(i.mem_set))
>> mem_set
[Called By] >> proc_opt_req >> dhcp_send_message >> dhcp_listener >> udp_release_socket >> mem_set >> udp_init >> tcp_init >> dhcp_run_client >> dhcp_init >> tcp_listen