We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I have a piece of proprietary code that absolutely needs to be included in the project as a library. The problem is, that once the .lib file is included, the controller hangs (abort, or not - RTX driven system) after about a minute or operation (library installs a UART ISR). If I replace the library with the only source file used to build it - there is no problem at all! Did you encounter something similar with MDK? Any ideas? By the way, how can one contact support? I'm being redirected to this ARM site, I registered but nothing happened...?
We have quite a few functions in libraries and have not seen any problems.
But none of them directly install an ISR - Only link into callbacks from ISRs.
To contact support, log on, go to support and raise a support case.
Did you get a password by email? I did not, nor can I reset my account...
As far as I can remember, I gave an initial password during the registration procedure.
I think the 'Contact' link (bottom left of page) may contain a clue...
Aha...!
By the way, I moved my ISR outside of the library (it calls a library function), and increased the size of my UART hardware buffer. Did not see hangups since, but I remain doubtful. If the ISR is placed inside the library, practically nothing helps! Smells like a tool-chain issue to me. I will try to write a test application in my free time (what is that?). By the way, there are quite some issues with MDK 4.12 that are pending a solution (C runtime library etc.).
@IB Shy,
What MDK version are you using? I just witnessed another hangup...
Remember that having the ISR in the library affects the linking order, so also order of variables - if you have a buffer overflow, it's important to know what other variables follows the overflowing buffer.