Debug port

Dear friends,

I have a problem on my openimu300zi , there is no output on debug port at 230400bps baudrate , I have changed the debug port's baudrate to 115200bps in source code too but no difference.

Do I need to enable debug outputs in source code or its already enabled, I have to calibrate my magnet but there is no output on debug port.

Please let me know if I need to do anything in the source code.
I am using vg/ahrs app.

Regards,
Amin.

could you show where and what is your new updated codes?
what did you do for calibrate magnet? steps in your side.

the code is 20011-193813-VG_AHRS I did not updated it recently.

the only change to the original code was:

in main.c file

and a hello world message in main.c file before freertos kernel start

// Apply factory configuration
platformInitConfigureUnit(); 

// Apply user-chosen configuration
userInitConfigureUnit(); 

// Initialize OS and create required tasks
CreateTasks();

// Initialize the DEBUG serial port
DebugInterfaceInit();
DebugPrintString((char*)"HelloWorld\r\n"); // <----- here is a hello world message on debug port, but nothing shows up on debug port

//InitTimer_Watchdog( ENABLE );

// Start Running the tasks...
 // Start scheduler

osKernelStart();

void DebugInterfaceInit(void)
{
char status[100];

if(fSPI && fGPS){
    return;         // no resources 
}

int debugChannel = platformGetSerialChannel(DEBUG_SERIAL_PORT);

if(debugChannel == UART_CHANNEL_NONE){
    //nothing to do
    return;
}

// Initialize the DEBUG USART (serial) port
InitDebugSerialCommunication(230400); // debug_usart.c // <---- I was changed the baudrate of debug port to 115200 here
DebugPrintString((char*)"from debug port\r\n");

BoardGetResetStatus(status, sizeof(status));

// ERROR_STRING(status);
}

I was sent 0x55 0x55 0x6D 0x61 0x01 0x07 0x81 0xC9 bytes on user port ( the port that receiving output data through that ), I expected to receive some information on the debug port, but nothing. I am sure that its not wiring problem.
I'm using this pins ( 17 , 19 )

debug.jpg

Log in to reply