Timer issue with getting external flash binding

Hi,

I am using nRF52833 & nCS for an application development,

I am facing a curious issue where, if i enable printk in nCS build, I am getting SUCCESS on calling device_get_binding() to an external flash device.

While if i disable printk in nCS build, the same device_get_binding() is returning err = 19.

I do not want to retain printk, kindly suggest how to solve this.

  • Hello ,

    Yeah seems this is the case: 

    If you're calling multiple printk functions in your application after disabling the printk that is likely to cause issues.

    Not altogether.

    Is there a reason you have printk() function(s) if your plan is to disable printk altogether?

    Anyways, Now it is working, I am able to get device binding for serial flash.

    Help me understand how disabling print posed problems in getting device binding for serial flash..?

    Thanks,

    Ubaid

  • Hi

    Sorry, but what exactly did you do to get it working? Did you enable printing again or remove the printk statements in the device_get_binding() function? As I've only seen parts of your code the only thing I can think of is that the printk() statement is returning an error because it's not recognized/included in your project when you have disabled PrintK.

    Best regards,

    Simon

Related