Modifying DAVE generated source

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I had problem with application crashing on RX task stack overflow. I found out the offending thread, it is ETH_RX_INPUT from
lwip stack. Because I found no settings for its stack size, I directly modified file ethernetif.c:
sys_thread_new("ETH_RX_INPUT", ethernetif_input, netif, 400U, osPriorityBelowNormal);
Unitl now it seems to help.
But every time I change the DAVE application settings and new DAVE code is generated, my changes are lost. It there any solution other
every time to edit ethernetif.c again?
0 Likes
2 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi,

In DAVE3, there is a template source code which you can edit and make changes to the template.

However so sorry, at the moment I do not know how to do this for DAVE4, so I suggest below solution.

1. Copy out the XXXX.c file which you had modified out of the project folder.
2. Everytime you do an update to the DAVE4 apps compare your XXXX.c file with the latest for any required changes
3. Overwrite the latest XXXX.c if there is no new updates.
0 Likes
Not applicable
HI,

This is now fixed in the APP. It will be available in the next release at the end of April.

Regards,
Daryl
0 Likes