VSCode and Zephyr Slow build/programming

Why is the build and flashing so slow with the nRF5340 and Zephyr?  Is there anyway to make it more reasonable?  

I have been doing embedded for years and I have not seen a build and flash system this slow in over 20 years. I assume that the west mess is not using multiple cores for compile, but this does not explain the slowness in flashing code. 

Is there anything that can be done to fix these issues? 

Thanks

Parents
  • Hi Trampas

    Which platform do you use for development? From my experience linux is roughly 50% faster when building an application then windows. However if you use windows 11 I would highly recommend that you create a devdrive and move your SDK and your projects there. it speed up my windows computer by ~30%. 

    It is also faster to do an full erase and flash the board then to do an sector erase and flash the board.

     

    Other then that it is hard for my give any specific recommendation or input without any additional information other then "slow", could you give some examples?  In my experience the biggest issue when building an application is Windows and how anti virus programs go haywire when the building start generating files. 

    Regards

    Runar

  • Build takes a long time, especially full build.  However loading and flashing code takes over 20seconds: 

    Why is it so slow? 

Reply Children
  • Hi, sorry for the delay Its been  national holidays here in Norway 

    That sounds a bit strange. What sample did you try to build? I flashed the hello world to my 53dk and as you can see it was not remotely the same

    [ #################### ] 1.788s | Erase file - Done erasing
    [ #################### ] 0.366s | Program file - Done programming
    [ #################### ] 0.305s | Verify file - Done verifying
    Applying pin reset.

    Regards

    Runar

Related