DAVE™ Forum Discussions
DAVE™
Hi,I'm trying to reduce the RAM consumption of ETH_LWIP.Could anyone suggest some reasonable reductions, from the settings below ?I inherited the sett...
Show More
Hi,
I'm trying to reduce the RAM consumption of ETH_LWIP.
Could anyone suggest some reasonable reductions, from the settings below ?
I inherited the settings from the Infineon DAVE example project for Modbus TCP.
Modbus TCP, and the occasional ping, is what we are using ETH_LWIP for.
So I have always been rather hesitant to change any of the settings below,
for fear I might break the Modbus TCP operation.
I particularly wonder, which setting or settings, might reduce the giant 24835 byte item,
at the top of the list below. This list is from the Ozone debugger. I filtered for memp items,
which as I understand, are to do with ETH_LWIP. Then sorted with largest first.
The odd thing about the 24835 byte item, is that if you expand it, it is just a 512 byte array.
So I wonder, some kind of allocation bug, with ETH_LWIP ?
Or the Ozone debugger getting confused, or having a 512 element displayable limit, perhaps ?
Other memp items, if I expand them, have content that matches their size.
Here's a few more items, this time filtering for ETH_LWIP:
In the second screengrab of this post, the Simultaneously active TCP connections setting,
I imagine could be reduced from 5, maybe even to 1, as the FreeModbus library that
Infineon use for their Modbus TCP example project, allows only one Modbus TCP client,
to be connected at a time.
Although perhaps, reducing that setting to 1, wouldn't save much RAM.
Really, I don't know which settings, have which effect on RAM, or which I could safely reduce.
In case this info helps, Modbus TCP packets are 94 to 341 bytes in, 93 to 341 bytes out.
With the pattern being in, out, in, out, etc. Thus only ever one packet active. If the in packet
is large, the out is small, being a write. And vice-versa, being a read. Though typically both
are small. Those figures from Layer 1 Ethernet packet preamble start, to FCS end.
To add to the above, the occasional ping. And very occasionally, perhaps, a ping attack.
So I would guess, the settings shown in the screen grabs, are far higher than needed.
Particularly whichever setting or settings result in the 24835 byte item.
Best regards,
David King Show Less
I'm trying to reduce the RAM consumption of ETH_LWIP.
Could anyone suggest some reasonable reductions, from the settings below ?
I inherited the settings from the Infineon DAVE example project for Modbus TCP.
Modbus TCP, and the occasional ping, is what we are using ETH_LWIP for.
So I have always been rather hesitant to change any of the settings below,
for fear I might break the Modbus TCP operation.
I particularly wonder, which setting or settings, might reduce the giant 24835 byte item,
at the top of the list below. This list is from the Ozone debugger. I filtered for memp items,
which as I understand, are to do with ETH_LWIP. Then sorted with largest first.
The odd thing about the 24835 byte item, is that if you expand it, it is just a 512 byte array.
So I wonder, some kind of allocation bug, with ETH_LWIP ?
Or the Ozone debugger getting confused, or having a 512 element displayable limit, perhaps ?
Other memp items, if I expand them, have content that matches their size.
Here's a few more items, this time filtering for ETH_LWIP:
In the second screengrab of this post, the Simultaneously active TCP connections setting,
I imagine could be reduced from 5, maybe even to 1, as the FreeModbus library that
Infineon use for their Modbus TCP example project, allows only one Modbus TCP client,
to be connected at a time.
Although perhaps, reducing that setting to 1, wouldn't save much RAM.
Really, I don't know which settings, have which effect on RAM, or which I could safely reduce.
In case this info helps, Modbus TCP packets are 94 to 341 bytes in, 93 to 341 bytes out.
With the pattern being in, out, in, out, etc. Thus only ever one packet active. If the in packet
is large, the out is small, being a write. And vice-versa, being a read. Though typically both
are small. Those figures from Layer 1 Ethernet packet preamble start, to FCS end.
To add to the above, the occasional ping. And very occasionally, perhaps, a ping attack.
So I would guess, the settings shown in the screen grabs, are far higher than needed.
Particularly whichever setting or settings result in the 24835 byte item.
Best regards,
David King Show Less
DAVE™
hi,the first Problem happend when i click the generate code buttom of ''solve and re-generate code''. It says ''Resource mapping failed, please Review...
Show More
hi,
the first Problem happend when i click the generate code buttom of ''solve and re-generate code''. It says ''Resource mapping failed, please Review the user defined constraints.''. Then i have used the ''Re-generate code without invoking solver''. But the Debug still not work. I tried to make the new configuration for Debugger. it says Program does not exist. So i have copied the .elf file from the earlier Vision of my Project to my current projekt.The debug works.
But now, when i click UIEditor of every added Apps in this Project. it says ''Specified UI Model file is invalid/dose not exist.
the error blog Looks like this now:
what should i do now.
Must i delete all my apps and add them and configurate them again one after another?
If i delete the generated DAVE Folder, will it be generated again? is it bad to do so?
how can the .elf file be generated? it helps not if i copy it from a similar Project. because if i do the debug again. it will be delete automatically.
best regards. Show Less
the first Problem happend when i click the generate code buttom of ''solve and re-generate code''. It says ''Resource mapping failed, please Review the user defined constraints.''. Then i have used the ''Re-generate code without invoking solver''. But the Debug still not work. I tried to make the new configuration for Debugger. it says Program does not exist. So i have copied the .elf file from the earlier Vision of my Project to my current projekt.The debug works.
But now, when i click UIEditor of every added Apps in this Project. it says ''Specified UI Model file is invalid/dose not exist.
the error blog Looks like this now:
what should i do now.
Must i delete all my apps and add them and configurate them again one after another?
If i delete the generated DAVE Folder, will it be generated again? is it bad to do so?
how can the .elf file be generated? it helps not if i copy it from a similar Project. because if i do the debug again. it will be delete automatically.
best regards. Show Less
DAVE™
Hello,I am newbee on Dave4.I am trying to debug my code and getting this error: No source available for "main() at 0x100026ae" But some how Code is wo...
Show More
Hello,
I am newbee on Dave4.
I am trying to debug my code and getting this error: No source available for "main() at 0x100026ae"
But some how Code is working it does intended function. Only thing is i am not able debug it line by line. Show Less
I am newbee on Dave4.
I am trying to debug my code and getting this error: No source available for "main() at 0x100026ae"
But some how Code is working it does intended function. Only thing is i am not able debug it line by line. Show Less
DAVE™
Hello everybody,I am using Hegagon XMC4500 dev board with Dave 4.3.2.On Dave Release notes it is indicated that a new Window - View could show grafica...
Show More
Hello everybody,
I am using Hegagon XMC4500 dev board with Dave 4.3.2.
On Dave Release notes it is indicated that a new Window - View could show grafically
memory usage from elf / map files. But this does not seem to work for me :
Any idea why the fields remain empty?
Thank you for any hint.
Jorge Show Less
I am using Hegagon XMC4500 dev board with Dave 4.3.2.
On Dave Release notes it is indicated that a new Window - View could show grafically
memory usage from elf / map files. But this does not seem to work for me :
Any idea why the fields remain empty?
Thank you for any hint.
Jorge Show Less
DAVE™
I'm trying to download Dave4 from the "personal download link" I was emailed, but it's impossibly slow, on two different networks. The download starts...
Show More
I'm trying to download Dave4 from the "personal download link" I was emailed, but it's impossibly slow, on two different networks. The download starts at an estimated 4-5 hours, and often gets as far as a few hundred meg before claiming to be finished.
As I say, that's on two different networks - a fast home network (~90 Mb download speeds), and a work network. Unless the problem is the link to Australia, it's not my end.
Are there any alternatives for getting hold of the full DAVE? I managed to get the SDK (a few hundred meg, several hours downloading) - is that useful without the IDE? Show Less
As I say, that's on two different networks - a fast home network (~90 Mb download speeds), and a work network. Unless the problem is the link to Australia, it's not my end.
Are there any alternatives for getting hold of the full DAVE? I managed to get the SDK (a few hundred meg, several hours downloading) - is that useful without the IDE? Show Less
DAVE™
Hi,i use XMC1100-T038X0064. the first uart works perfect, Standard pins used: P1.2 and P1.3now i would like to setup a second UART on Pins P1.0 and P1...
Show More
Hi,
i use XMC1100-T038X0064.
the first uart works perfect, Standard pins used: P1.2 and P1.3
now i would like to setup a second UART on Pins P1.0 and P1.1. Up to this moment they are free, not used by something else.
when i try to add a new APP, Communication, General Purpose, UART, Dave (V4.3.2) is not able to grant my last resources request.
what might go wrong? Who has an idea? Thanks in advance! Show Less
i use XMC1100-T038X0064.
the first uart works perfect, Standard pins used: P1.2 and P1.3
now i would like to setup a second UART on Pins P1.0 and P1.1. Up to this moment they are free, not used by something else.
when i try to add a new APP, Communication, General Purpose, UART, Dave (V4.3.2) is not able to grant my last resources request.
what might go wrong? Who has an idea? Thanks in advance! Show Less
DAVE™
hey guys im trying to use the counter correctly right now i have total of 3 digitial ios one digitial io is output and i have one digitial io input th...
Show More
hey guys im trying to use the counter correctly right now i have total of 3 digitial ios one digitial io is output and i have one digitial io input that external connected with digitial io output for the counter input and the last digitial io input for ignition switch.. right now in my code is that it will reset on it own till it reaches counter match of 5 then my problem is that i want to after 5 counts that it stops reseting and wait for digitial io ignition switch to cycle from low to high and then reset counter till it reaches back 5 on the count match and wait again till ignition switch cycles. but i only see getinput(&DIGITIAL_IGN) on the digitial io but that doesnt tell me if the igntion switch state is high or low thats my only problem
Show Less
DAVE™
Hi,Could anyone enlighten me on how best to configure a CAN tx FIFO ?From what I can see, an instance of MULTICAN_CONFIG APP, is just the ticket for F...
Show More
Hi,
Could anyone enlighten me on how best to configure a CAN tx FIFO ?
From what I can see, an instance of MULTICAN_CONFIG APP, is just the ticket for FIFO configure.
But that APP lacks CAN tx/rx pin configure, so I presume you still need a CAN_NODE APP instance, for that.
Except for the pin configure, I can see that MULTICAN_CONFIG looks to be a superset of CAN_NODE.
And I suspect that overlap, is what causes DAVE to error with 'unable to grant' resources, when I try ticking
'Enable node', in MULTICAN_CONFIG.
How should I best configure a CAN tx FIFO ?
Best regards,
David Show Less
Could anyone enlighten me on how best to configure a CAN tx FIFO ?
From what I can see, an instance of MULTICAN_CONFIG APP, is just the ticket for FIFO configure.
But that APP lacks CAN tx/rx pin configure, so I presume you still need a CAN_NODE APP instance, for that.
Except for the pin configure, I can see that MULTICAN_CONFIG looks to be a superset of CAN_NODE.
And I suspect that overlap, is what causes DAVE to error with 'unable to grant' resources, when I try ticking
'Enable node', in MULTICAN_CONFIG.
How should I best configure a CAN tx FIFO ?
Best regards,
David Show Less