I am trying to calibrate MPU6050 but this error in page is constantly unable to deploy. I have tired third party required libraries. I don’t what wrong.
Error: exit status 1
Compilation failed.
Compilation failed
Command C:\Program Files\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\ayub\AppData\Local\Temp\arduino-clirfSG9S\.cli-config.yml compile --fqbn arduino:avr:mega:cpu=atmega2560 --verbose C:\Users\ayub\AppData\Local\Temp\xod_temp_sketchbookZRoUXb\xod_1553498402219_sketch failed with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.
@gweimer: now, i am facing new problem. my code for calibration has been uploaded somehow. but not getting any reading wires are connected as they should. please guide me on this.
Std Arduino issue probably…board initializes communication before XOD is ready to receive. Reset board after program is uploaded and XOD is ready & watch nodes should start displaying data.
You need to send a signal to the INIT pin. You can use a clock node to send signals repeatedly, or a boot and defer nodes to send a signal soon after boot.
By default, clock node will provide a pulse every second. The clock-TICK pin should be connected to the INIT pin of your calibrate node. If calibrate takes longer than 1 second, you should increase the clock-IVAL time.