You can chat about native SDK questions and issues here.

User avatar
By andyjjones2
#81502 Hi everyone,

I'm trying to get the DHCP server (dhcpserver.c) to print DHCP debug information to the console. I can see that there are many calls (45 to be exact) calls to os_printf, however, none of them print anything to the console.

Strangely, in my app initialization code, if I call:
Code: Select allos_printf("Hello world, from os_printf()\n");

Then I see the 'hello world' message.

So basically os_printf() works at a high level, but not from within dhcpserver.c. Can somebody help?

Thankyou!
User avatar
By davydnorris
#81519 Where are you calling your DHCP server code?

Make sure you set up the UART ports as one of the first things you do - os_printf relies on them being initialised. I do it as the first line in my startup code
User avatar
By andyjjones2
#81523 Hi davydnorris, thanks for the reply.

It's part of MongooseOS, and I'm doing a local build. It appears that the toolchain I'm using insists on pulling certain parts of the Espressif SDK from the cloud instead of my version (which contains os_printf() calls).

I guess it's better that I ask the Mongoose OS forums than here, since it appears now to be a toolchain/build issue for Mongoose.