hi all
I've worked with tcp library with 4.2 version without any problem
now i switched to 4.7 version
when i program my code it works properly (answer my ping)
but when i turn it off and on (reset) it doesn't answer my ping !
thank
I very seldom use a debugger.
Most times, I settle for asserts and suitable printouts.
When something doesn't work, it is almost always possible to just read the code, predict the behaviour and then add specific instrumentation to prove the assumption before the problem is fixed and fix tested.
So it helps to have a processor with some extra code space to allow extra instrumentation in special debug builds for some extra printouts.
But it really is preferable if the live hardware have capacity enough to also contain defensive code, looking for unexpected states and then performing some recover actions or maybe full resets.
After all, code should be written for staying up and running for years - basically until next time there is a power loss or someone decides to upgrade the firmware with some new functionality.
One client worked on the principle that, if your system doesn't have enough resources (memory, time, pins, whatever) to dedicate 10% to "diagnostics" - then it just doesn't have enough resources!
It seems a fine principle to me!
Yes. Only the 10 million/year product should go for perfect fit. But that is probably a lamp timer where you know _exactly_ what it must fulfill.
Real products normally requires a 1.1 spin, after the customers notices that the original specification was good, but a competitor did something else. Or the customer (or whoever is the product owner) just forgot something.
Without safety margin in the original design, there will be no spare space to solve these requirements changes. If then is the biggest chip in the family, then it can require a full redesign of both software or hardware. Just for that lapse in requirements specifications.
there is enough capacity (memory and pin)
but the main problem is this that there is no access to tcp library source
so it isn't matter using debugger or use pin or printf.....
View all questions in Keil forum