Dear Members, To protect the forum from spam, all new members initial posts will require approval before they are published. Please do not create a duplicate thread. If you do not see the thread then it has been queued for review.  If in any doubt, please contact us through DM Regards Decawave

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dwm_simple compilation
#1
Hi,

I have a MDEK1001 kit and I am trying to understand how to get the code examples working. I may be asking basic questions, but I am a newbee in this. I am starting with the dwm_simple example. I have followed the Firmware user guide steps and I get no error, but I don't see how the code gets running. I have introduced some marks (printf("1")Wink but I am not seeing them.

I have an open terminal with minicom but I don't see them there nor in the eclipse console. I am just seeing the normal interface with the dwm> prompt. 

I have also tried to compile and load the code with the "make compile_load" command available in the command line. Whenever I run it I don`t see the messages I try to show with printf. Where are these traces sent? 

The other question I have, this dwm_simple includes all the factory software that is loaded in a recovery process?

I guess I am missunderstanding something but I can not get much further.

Thanks
blasi, proud to be a member of Decawave Tech Forum since May 2018.
Reply
#2
Hi blasi,

Where you put the custom code?
You should put your custom code in function app_thread_entry.
Get busy living.
Reply
#3
(Today, 05:52 AM)mhc Wrote: Hi blasi,

Where you put the custom code?
You should put your custom code in function app_thread_entry.

I have tried in that function and in dwm_user_start. The problem is that I cannot see even the MSG_INIT banner (dwn-simple\n...). I am only seeing the normal prompt dwm with the standard message ("DWM1001 TWR Real Time Location System..."). 

As I said, I may be missunderstanding something, but if I compile and load the dwm-simple code I can see it is working as expected (I can disable BLE), but I cannot see the the printf messages. Where is it supposed to be sending the standrad output? to the minicom terminal?

Thanks
blasi, proud to be a member of Decawave Tech Forum since May 2018.
Reply
#4
This is normal operation.
At the beginning, I also have the same question.
But afterward, I realize that the printf message only be displayed in shell mode...

Also, the default setting of the UART is generic mode once the DWM1001 power on.
Therefore, we will not see any printf message at the beginning as they are blocked.

The only thing we can do is waiting Decawave to provide us an API that can configure the UART to shell mode at the startup.
Get busy living.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)