Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: el_supremo

Search: Search took 0.00 seconds.

  1. I'm just trying my version of the code with a...

    I'm just trying my version of the code with a timer interrupting at 200 or 400/sec and I see the same behaviour that you do.
    I suspect that it is something to do with USB buffering between the...
  2. If a variable is used both within an ISR and...

    If a variable is used both within an ISR and outside it, it must be declared volatile.
    Try this code, which incorporates @KrisKasprzak suggestions and a couple of my own.

    volatile uint32_t i = 0;...
Results 1 to 2 of 2