This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CDC ACM example

Hi everyone,

Regarding the CDC ACM example I have a question.
In the example, every time a button is pressed there is a writing. I would like the writing to happen every second regardless of the button.
I would like to remove the button and have it write every second. Is it possible? How can I change the firmware?
BR

Parents Reply Children
  • Hello,

    alexlöddeköpinge said:
    I tried to modificate CDC ACM example as you suggest me but my code doesn't work.

    I am sorry to hear that. Could you elaborate on what you did when you attempted to modify it, and how the code did not work?
    Did the code compile without warning, or did you receive an error while the program was running?
    If you could share the code in which you tried to make these modifications I can take a look, and see if I cant spot why it is not working.

    alexlöddeköpinge said:
    Can you provide me an example that show how to do a write every seconds? Is there in the SDK?

    Unfortunately we do not have such an example in our SDK - but it is really a small modification to the existing CDC ACM example. As I said in my previous comment, you can achieve this by setting the m_send_flag in a TIMER's event handler.
    You can see how to setup a TIMER to trigger periodically in the TIMER example that I linked in my previous reply.

    Looking forward to resolving this issue together,

    Best regards,
    Karl

Related