Page 1 of 1

C-Code Simulation

Posted: Tue Nov 23, 2021 9:32 am
by wirtshaus
Hi,
i have the C-Code Simulation Module and i can't simulate writes or reads to arduino/avr registers.
Here is an example C-Code:

TCCR0A=(1<<WGM01); //Set the CTC mode
OCR0A=0xF9; //Value for ORC0A for 1ms

i also can't simulate calls to arduino functions:

wdt_disable();

The error message is always that it can't find the register names and the function names.

Is there some additional configuration needed?
Or isn't it posible to simulate some kind of c-code?

Re: C-Code Simulation

Posted: Tue Nov 23, 2021 9:43 am
by wirtshaus
Here is a simple example that producecs the error with C-Code Simulation enabled.

Re: C-Code Simulation

Posted: Tue Nov 23, 2021 9:48 am
by Steve-Matrix
Flowcode will not simulate direct chip register access, C code or calls to Arduino functions.