Good day!
Atmega 328p microcontroller Atmega 328p board. AtmelStudio 7 development AtmelStudio 7 . I create a sketch for arduino through the Arduino IDE for AtmelStudio 7 .
I am writing a protocol to work on the com port. The problem is the following: When the protocol is delivered to a separate library (* .h and * .cpp), the functions of the class cease to be performed by the controller.
More specifically:
Compilation succeeds;
Debugging pieces of code inserted into functions immediately after the declaration are not executed.
As test blocks, I used the output of signals on the legs of the MC ( DDRB &=B11011111 type DDRB &=B11011111 ). Oscilloscope observation gives a complete absence of signals on the legs of the MK. Thus, I come to the conclusion that the functions simply do not start.
What could be the problem? Is it necessary to provide the full code of the project?
#include "protocol.h". In general, the base files and structure are generated through the development environment itself. - Alexey Simakov