Page 1 of 1

Question about source code

Posted: Thu Oct 19, 2023 12:22 pm
by JP7NJT
Hello,

I have a question: with MD380tools you can do debugging with a printf("%X",something_to_print); in the source code, connect the MD380 to the computer via the USB cable and use./md380-tool dmesgtail to see the result.

How do I do the same with the OpenGD77 source code?

And another question: about md380tools if you create an in-memory array to store voice frames and you exceed the RAM capacity, the compiler tells you.

With Opengd77 I created an array of 1 Gigabytes of RAM and the compiler accepts it and says nothing.

Is there a way to check at compile time that you don't exceed the RAM capacity?

Re: Question about source code

Posted: Fri Oct 20, 2023 8:59 am
by G4EML
You can use USB_DEBUG_printf() to send debug messages to the serial port. Then view them using putty or similar.

Re: Question about source code

Posted: Tue Oct 24, 2023 10:32 pm
by JP7NJT
G4EML wrote:
Fri Oct 20, 2023 8:59 am
You can use USB_DEBUG_printf() to send debug messages to the serial port. Then view them using putty or similar.
Thank you for your reply. and is there any way to know how much RAM is left at compile time?