Does cli() interfere with Serial Communications?


hello there?

does cli() instruction interfere normal serial comm when trying program arduino nano?

for example, if put code loop() code section shown:

cli();

will prevent ide being able program nano next time run ide , try reprogram nano?

this important because if interfere, wont able program nano again after uploading above simple code.

or, should add delay such this:

delay(10000); //delay 10 seconds give ide time communicate nano properly

cli();


so 2 instructions before actual code need run:

delay(10000);
cli();


what think?

thanks :-)

does cli() instruction interfere normal serial comm when trying program arduino nano?
no

programming arduino includes reset , program no longer running @ stage.


Arduino Forum > Using Arduino > Programming Questions > Does cli() interfere with Serial Communications?


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor