Guys does your projects ever just go bad, in that they just won't run or start misbehaving?
Sure - just about everyone of them! Version control saves my ass. I might do a seemingly innocent change that might happen to exceed to stack, or uncover an unknown defect, no cause a state transition and the list goes on!
Hopefully you write the code in such a manner that a few seconds with the debugger nails the problem. Most times though i might have to enable some debug printf(). This very issue is a compelling reason for test driven design. However, with interrupts and hardware real time issues, weird shite can happen and that’s where experience helps. Guess how you get the experience??
This stuff normally happens at the 11th hour when you need to deliver or do a demo
Happens to me at least once every project. Often "hidden character" so I don't know what it is. I guess a control character but, in my case, I don't know. Given my fat fingers and inability to know where my hands are on these featureless keyboards, it is at least a plausible explanation. It is usually resolved by totally rewriting a line, sometimes several.
Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net
Everybody will have that at a certain stage of a project.
most cursing is done when I take an old project and start to rework to a new one.
deleting functions, single lines, removing variables I think no longer are used.......
one bracket to many deleted or not enough in file a will cause havoc towards file d or e and then you have to rethink on what you changed were in a zillion files you have open.
or when you take code from project a and want to incorporate that in project b and all of the sudden things start falling apart because the project a code is antique and not nice written.....
© 2020 Microchip Technology Inc.