These are chat archives for marvell-iot/aws_starter_sdk

6th
Mar 2016
dimkir
@dimkir
Mar 06 2016 12:47
Hey guys, have a question: i have tried splitting the sample aws_starter_demo into modules. eg. main.c thread_2.c thread_3.c etc. It all works as expected the only issue is that wmprintf() only works from the main.c module, where I call wmstdio_init(UART0_ID, 0); I have imported #include <wmstdio.h> in my thread_2.c so wmprinf() at compilation doesn't throw error, but simply does nothing at runtime. Any ideas?
dimkir
@dimkir
Mar 06 2016 12:56
sorry, my bad. I was my fault (forgot to compile a file). Everything works as expected from all modules and threads :)
dimkir
@dimkir
Mar 06 2016 14:04
Another question: as I am tinkering with the example codes, i tend to use a lot of wmprintf() to get some feedback. But eventually there will be too much output in the console. So I have noticed that there's file wmsdk/src/incl/sdk/wmlog.h which declares functtions like wmlog_w() wmlog_e() and wmlog() so that I can control the level of output. However when I try to use any of those functions in my main.c - they produce no output. I tried adding #define CONFIG_DEBUG_BUILD to the top of main.c and also running make APP=sample_apps/hello_world CONFIG_DEBUG_BUILD=1, but still no output. What should I do to enable it?