Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using cAT Library in a multi core CPU environment #20

Open
rretanubun opened this issue Oct 20, 2021 · 0 comments
Open

using cAT Library in a multi core CPU environment #20

rretanubun opened this issue Oct 20, 2021 · 0 comments

Comments

@rretanubun
Copy link

Hello,

I noticed that the cat_init() function supports an argument for a mutex.
Is the mutex intended to be used to protect in environments with multiple core CPU?

One of the project I am working on uses the cAT library for unit test and target deployment.

In the unit-test (running on a multi core system) the AT-commands are written to a circular buffer
and the cAT library writes out its responses back to a file in the filesystem that is then compared
against an expected response.

If I run this in a multi CPU core environment, some test fails with responses that does not match
the expected response. However, if I restrict the test to a single core
(e.g. using taskset -c 1 in linux), all the test will pass.

If I am missing something, what are the recommended
practices for using the library in a multi core CPU environment?

Thank you for everyone's time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant