This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

download without debug?

Other Parts Discussed in Thread: CC2530

 

Please forgive this simple question:  Can I download without debugging in IAR Embedded Workbench?

In other words, I want to download the code and have it run, but not have to select Debug->Go and Debug->Stop debugging.

These steps take forever during production.

 

 

  • Yes. You could click "Download and Debug". But once the code is downloaded, you do not need to do any debugging. Just exit the debugger and remove the chip.

    But for production, Elprotronic does a much better job.

  • After we click download and debug, we have to hit Debug->Go to get the code running.  And it's the step of exiting the debugger that takes so long.  Why are the options under Download-> (Download active application, Download file) greyed out?  Do we need to purchase something from TI?

    As we move to production runs of 1000 we'll buy the Elprotronic gang tool.  But for now, we're running 100 at a time, and I'd prefer to just figure out a way to save some time with what we have.

     

     

  • Why do you have to get the code running during manufacturing? Simply exit the debugger and detach the MSP-FET430UIF from your product. The code will run when your product is powered up. It does not need the debugger to start it running.

    Elprotronic has a free software which can use MSP-FET430UIF hardware interface to program your product too.

    Just program one unit of your product with IAR. Use Elprotronic software to read the code from that unit and duplicate as many units as you want.

     

  •  

    The step that takes so long (~30sec) is stopping the debugger.  The Debug->Go is only ~1sec.  If we pull the FET from the JTAG port without letting IAR Embedded Workbench finish the step of Debug->stop, then the software seems to be left in an unstable state and the device doesn't run correctly.

     

     

  • If you do not do the Debug->Go, then you do not need to stop the debugger. Simply exit the debugger. (Click the big red X)

    The Flash inside your MSP430 chip should have the down-loaded code after that. When you power it up subsequently, it should execute those code. It has nothing to do with the debugger. If it is unstable, it is either because the chip is defective, or your code is unstable.

  • The other alternative is:

    "FET-Pro430 Lite Software" ( FREE ) from
    http://www.elprotronic.com/download.html

     

  •  

    I wanted to verify that old_cow_yellow's simple answer works, and saves a greal deal of time.

    TI might consider renaming the "Download and debug" option to "Download", as that's what it really does.  You don't have to do any debugging from that point forward if you don't want to, you can simply disconnected the FET and the device is programmed.

    Thank you everyone for the tips.

     

  • I think I know why they do this (but unfortunately, no workaround).

    I'm working on IAR for CC2530, and my trial licence time has just ended. The feature that is licenced is the debugger, so now, even though I don't want to use it, I can't use the Download either because it triggers the "your licence for EW_DEBUGGER blabla failed".

    Just wanted to share my thoughts, I'm a little bit frustrated with al this licencing **** of IAR.

  • Clementina Calvo said:
    Just wanted to share my thoughts, I'm a little bit frustrated with al this licencing **** of IAR.

    What you wonder about? - That company does not give away it's products for free? :) If you need full-featured product - BUY licence for it. Otherwise use code size-limited IAR version or free tools from other sources.

  • Ok, I can agree with you there, it is more a combined frustration with TI's product ZStack which is only made for this compiler in particular, so I can't use neither code limited licence nor alternative products. I know, I should choose a different hardware provider altoghether (or should have in the past) but there are bureaucracies involved.

  • can we debug the code without connecting the hardware?

  • It is a personal choice. I usually "debug" by reading the code. If the source code is in c, I read the dis-assembled object code. In either case, I do not need to connect the MSP to the PC.

  • Back to the original question. IAR now has the option to "download" only.


    Alternatively, you could use Elprotronics, MSP430Flasher, or Gang Programmer to do the downloading.

  • Somehow I actually solved this. Go to Project-->Options and then in "Debugger" category change "Run to" field from "Main" to "exit".
    Your code will begin executing immediately when you download.

    So when you do all of your development in a better IDE and use IAR only for compiling (it's only real purpose) then you can alt-tab to it, ctrl-r to redownload, and **imediately without waiting for IAR's bullshit** alt-tab back to your significantly more apt IDE.

    Cheers!

    Sorry about all these trolls - I thought your question was quite clear.

**Attention** This is a public forum