[EDITED]
PROBLEM SOLVED! It was my mistake! The problem was in the power supply... sorry...

-------------------------
Hello to everybody!
I have just got the super Axon 2 and I think it is a beast

... but I am having some problems recently...
As a beginner I am doing the typical tests like "Hello World" using the libraries from WebbotLib to start adapting to the new programming environment.
So as far I understand the program basically follows a sequence routines. First 'appInitHardware' to set up the hardware, second 'appInitSoftware' to set up any other variables in your program and in the end it calls to the routine 'appControl' being the main loop and here it is where the sentence "Hello World" is sent every second to the USB interface.
The program works fine, but after a few seconds the Axon restarts and the sequence of the calling of routines starts again. This is something weird... is not it?
I am pretty sure that it is not a problem from the power supply. Am I doing something wrong?
Here is the code (I have tried with different ones but still the Axon restarts in the same way...)
#include "sys/axon2.h" // I am using an Axon 2
#include "uart.h"
#include "rprintf.h"
//make UART names more sane
#define USB_UART UART1
#define USB_ACTIVATE &uart1SendByte
#define USB_BAUD (BAUD_RATE)9600
// This routine is called once only and allows you to do set up the hardware
// Dont use any 'clock' functions here - use 'delay' functions instead
void appInitHardware(void){
// Set USB_UART to USB_BAUD
uartInit(USB_UART, USB_BAUD);
// Tell rprintf to output to UART1 (USB_UART)
rprintfInit(&uart1SendByte);
}
// This routine is called once to allow you to set up any other variables in your program
// You can use 'clock' function here.
// The loopStart parameter has the current clock value in ěS
TICK_COUNT appInitSoftware(TICK_COUNT loopStart){
rprintf("\nAxon 2 initiated!\n");
return 0; // dont pause after
}
// This routine is called repeatedly - its your main loop
TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart){
rprintf("Hello world\n");
return 1000000; // wait for 1 second before calling me again. 1000000us = 1 second
}
some ideas?
Thank you!