Question about source code

Discussions related to the firmware code development
Post Reply
JP7NJT
Posts: 10
Joined: Wed Oct 18, 2023 12:44 pm

Question about source code

Post by JP7NJT » Thu Oct 19, 2023 12:22 pm

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?

G4EML
Posts: 930
Joined: Sat Nov 16, 2019 10:01 am

Re: Question about source code

Post by G4EML » 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.

JP7NJT
Posts: 10
Joined: Wed Oct 18, 2023 12:44 pm

Re: Question about source code

Post by JP7NJT » Tue Oct 24, 2023 10:32 pm

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?

Post Reply