This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What's the thread model in AGDI driver?

Hi,

We're developing the Keil AGDI driver for Cortex-M0,
and found that the driver may run in two thread:
one for long waiting in AG_GoStep, much of the time it runs in GoUntil.
and another thread for other tasks.

Now we meet 2 problems:
1. The "long waiting" thread may still run even after AGDI driver was unloaded!! So that the Keil crash.. How can we make sure the thread cleanly exits?

2. It seems that AG_GoStep is not the only function that will be called in "long waiting" thread. We try to wait AG_GoStep returns in case AG_UNINIT, But after AG_GoStep, Keil may call other function in "long waiting" thread, such as AG_MemAcc AG_AllReg.

Thank you for any suggestion!

0