This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to reduce crowd in the main file?

I want to ask a question.

The codes seem too complicated in main file. I created new sources and header files and carried some code into the new sources and header file from main file. For instance it was timer settings and timer handler function in the main files. I carried these into the new sources files.. But after that, my timers are didn't work correctly. For example, although the timers are stopped, they continue to run. however, such a problem did not occur when all the code was written in the main file. what is the reason of this? I want to reduce clutter in the main file. is not it possible?

  • timer_init.h / c and main.c is also something I've implemented myself. More precisely, I received this project from someone else. I'm just trying to organize and understand the codes. I learned what nRF and BLE are just 3 weeks ago. I am a junior software developer. My English is not very good either. I do not fully understand which documents I should read. I would be glad if you could guide me as to which documents I should read.

    I also have one more question regarding flash memory usage in the forum. I expect your help in this matter too.
    Thank you.

  • I am a junior software developer.

    so, surely, you have senior colleagues who could help you - and in your own language.

    it is far more effective to get support from someone local - who can sit with you, can see what's going on and understands what you're doing - than from complete strangers who know nothing about you or your project or your setup or the code you're talking about.

  • At least it is difficult to say without knowing what's going on. What timers are you talking about, and what do you mean is the wrong behavior? Perhaps you can point to some places in your code? Are those places that are misbehaving coming from our SDK, or are they coming from your company?

    BR,
    Edvin

Related