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.

Re: USB FET 430uif is not working

Hi Lisa,

Now, i have a fresh problem, i have installed IAR(5.40.3), CCS 4(4.1.2.00027) and 
CCS 5(Version: 5.1.1.00031 )
 on my machine. I was using CCS 4(Drive C) without any hassle all these days,
 recently i installed both CCS 5 and IAR(Both on drive D).
 First i used only IAR for burning my code to the MCU. Very rarely i would use both CCS 5 and IAR.

The Problem: Now whenever i burn a program with CCS 5, the calibration constants are getting erased.
I have selected the "Erase main, info and protected info mem" option under the MSP430 properties.


Then i ran the "msp430x261x_dc0_flashcal.c - DCO Calibration Constants Programmer" from 
examples code and now whenever i use IAR, everything works fine.

1)Why is this happening??

2) Should i stick to only IAR??

3) After i started using CCS 5, when i occasionally try to use CCS 4 it gives 
an error "FET already in use" 
or some error, but it refuses to load the program, please let me know the reason for this behaviour?

Phew.. finally, i would be very much grateful if you could help me out. Thanks.

best wishes
janmay
  • Hi Janmay,

    I have put this as a new thread in the MSP forum as the experts there will be better able to help with your new question.

    Best REgards,
    Lisa

  • janmay b c said:
    The Problem: Now whenever i burn a program with CCS 5, the calibration constants are getting erased.
    I have selected the "Erase main, info and protected info mem" option under the MSP430 properties.

    This is self-explanatory. The constants are in protected info mem, and if you enable to erase it, they are erased. Jsut as you ordered. Nothing strange about it.

    janmay b c said:
    1)Why is this happening??

    Because you asked for it.

    janmay b c said:
    2) Should i stick to only IAR??

    your choice. I use neither of them, that's my choice. Or rather way the choice of my clleague before I inherited the development department from him.

    janmay b c said:
    3) After i started using CCS 5, when i occasionally try to use CCS 4 it gives an error "FET already in use"

    CCSV5 uses a different, incompatible version of the MSP430 DLL. And the two DLLs require different firmware versions on teh FET. While the CCSV5 version does an automatic update, the CCSV4 won't downdate the FET back to the old firmware, and therefore cannot use it anmore. There's a separate firmware downdater program available, but you shouldn't switch between V4 and V5.

  • Hi,

    Thanks a lot Lisa.

    Also, Thanks a lot for your detailed explanation sir, i now came to know the cause of the problem. Thanks once again.

    Best wishes

    janmay

  • Hi Janmay,

    glad to hear you got all the help you needed for the moment.  All the best with development.

    Best Regards,
    Lisa

  • Hi,

    I did a bit of experimentation and here's what i found:

    1) All example and my programs loaded by CCS 5 on to the 
    target board of MSP430F2619 work fine.

    2) All programs on my custom made board loaded by CCS 5 work once,
     but the next time i try to load a different program, i get the following error

    "MSP430: File Loader: Data verification failed at address 0x0000FFFE 
    Please verify target memory and memory map.
    MSP430: GEL: File: D:\04_workshop\qwe123\Debug\qwe123.out:
     a data verification error occurred, file load failed."

    There's seems to be something going on while erasing the contents of the previous program. 
    With the same erase memory settings, the target board works fine, but my the MCU on
     my custom made board gives the above error.


    Also while loading the program via IAR i get the following error.

    Sun Mar 18, 2012 11:00:35: The stack pointer for stack 'Stack' (currently Memory:0xEC0100)
     is outside the stack range (Memory:0x20B0 to Memory:0x2100) 
    .

    I would be very much grateful if you could help me out. Also if possible, please let me know the 
    procedure to follow to downgrade the firmware of the FET from CCS 5 to CCS 4
    (my board worked super-fine with CCS 4). Thanks.


    best wishes
    janmay
  • janmay b c said:
    Please verify target memory and memory map.
    MSP430: GEL: File: D:\04_workshop\qwe123\Debug\qwe123.out:
     a data verification error occurred, file load failed."

     Hi Janmay, about problem, I got compiled fine on my side, I think windows drive letter usage can disturb compilation on IAR IDE.

     About CCS I experienced a lot of problem similar to your if workspace and files reside on different drives, so if not try open workspace project and files all on same drive.

     On initial I was thinking about network drive trouble, opening on same local or network got success, with files on different drive it fail.

     Regards

     Roberto

  • Dear Sir,


    Thanks a lot for your prompt reply. 
    Yes sir, my workspace is on C drive, while CCS 5 is installed on D drive.

    Will try again with workspace files copied on the same D drive.

    Great to see you back on the forum sir :-).

    best wishes
    janmay
  • Dear Sir,

    The problem persists.

    Today i tried running the programs, all the projects/workspace/source 
    files were in the same D drive where CCSv5 and IAR are installed.

    In CCS 5:

    Any loaded program runs a couple of times, then when i try to load another program
     i get the following error(during erasing process)

    "MSP430: File Loader: Data verification failed at address 0x00002100 
    Please verify target memory and memory map.
    MSP430: GEL: File: D:\09_Daily\ER\see789\Debug\see789.out: 
    a data verification error occurred, file load failed.
    ".

    In IAR:

    The situation has somewhat improved here, all programs can be loaded on to the MCU,
     but while running the program step-by-step i often get the following error

    "Tue Mar 20, 2012 16:07:54: The stack pointer for stack 'Stack' (currently Memory:0xB220FC) 
    is outside the stack range (Memory:0x20B0 to Memory:0x2100) ". 

    I have chosen the MSF430F2619 MCU in the project settings/options 
    and all settings in properties are fine.

    In rare instances i also get the following error while running the AD9834 program:

    "Tue Mar 20, 2012 16:29:30: Warning: CPU is OFF (Low Power Mode) and 
    interrupts are disabled! Cannot excute Step/Go. 
    Tue Mar 20, 2012 16:29:30: Unable to execute: driver error."


    Phew...... thats the situation till now sir.

    @Ms Lisa

    I would be very much grateful if you could tell me the process to follow
     to downgrade the FET firmware from CCSv5 to CCSv4.

    I had absolutely Zero problems with CCSv4, and i would like to
     switch back asap, my project and also my degree is at stake here !!. Thanks in advance.

    best wishes
    janmay
  • Dear All,

    Please, any suggestions to solve the problem would be very helpful to me.

    Thanks.

    best wishes

    janmay

  • Hi janmay,

    I'm suspecting that maybe some project settings got changed when you created your CCS5 project. Did you create it from scratch, or import your CCSv4 project into CCSv5 (recommended). When you import the project by going to Project > Import Existing CCS/CCE project, you may need to switch the compiler version to the newest one (Project > Properties > General, in the dropdown for compiler version select the newest one), then compile.

    Since it sounds like you are in a time crunch, you may just want to finish with CCSv4 for now if this does not resolve your issues. The instructions for downgrading your FET tool back for use with CCSv4 can be found here: http://processors.wiki.ti.com/index.php/MSP_Debug_Stack#Downgrade_back_to_old_MSP430.DLLv2

    Regards,

    Katie

  • Hi Katie,

    I created the project in CCSv5 from scratch, not imported from CCSv4.

    Thanks a lot for the downgrade link, will try it out. Thanks.

    best wishes
    janmay
  • Hi janmay,

    If you end up deciding to keep on using CCSv5, I'd recommend importing your CCSv4 projects instead of recreating them - this will preserve all of your settings. CCSv4 projects are compatible with CCSv5, so this is the easy way to make sure your settings stay the same. The only thing you might need to change after importing is the compiler version.

    Best of luck!

    Regards,

    Katie

  • janmay b c said:
    In IAR:

    The situation has somewhat improved here, all programs can be loaded on to the MCU,
     but while running the program step-by-step i often get the following error

    "Tue Mar 20, 2012 16:07:54: The stack pointer for stack 'Stack' (currently Memory:0xB220FC) 
    is outside the stack range (Memory:0x20B0 to Memory:0x2100) ". 

     Hi Janmay, I think about problem on calibration data, this error happen after DCO setup? On preceding post I see calibration data where erased so need a new calibration data in place to reuse again. Please load calibration program from examples or just tell me for my version I use if you need.

    janmay b c said:
    In rare instances i also get the following error while running the AD9834 program:

    "Tue Mar 20, 2012 16:29:30: Warning: CPU is OFF (Low Power Mode) and 
    interrupts are disabled! Cannot excute Step/Go. 
    Tue Mar 20, 2012 16:29:30: Unable to execute: driver error."

     Is this the segment of program I wrote for you? if so the first lines of main are:

    WDTCTL = WDTPW+WDTHOLD;                   // Stop watchdog timer
    BCSCTL1 = CALBC1_1MHZ;                    // Set DCO
    DCOCTL = CALDCO_1MHZ;

    No interrupt where used there so again restore calibration data and uncheck erase calibration, all your trouble may be disappear.

     I am sorry for time zone worst match, I got free from saturday, so we can get in touch to.

     Best regards

     Roberto

  • Hi Katie,

    Katie Enderle said:
    I'd recommend importing your CCSv4 projects instead of recreating them

    Thanks for the heads up, if, in the future i decide to use CCSv5, will remember the import part.

    Thanks for the quick response.

    best wishes

    janmay

  • Dear Sir,

    Thanks a lot for your reply.

    Roberto Romano said:
    this error happen after DCO setup?

    Yes sir, after the execution (step-by-step) of the following lines.

     

    WDTCTL = WDTPW+WDTHOLD;                   // Stop watchdog timer
    BCSCTL1 = CALBC1_1MHZ; // Set DCO
    DCOCTL = CALDCO_1MHZ;
    Roberto Romano said:
    load calibration program from examples
    yes sir, the calibration  program is available in the examples, will load it.
    
    
    Roberto Romano said:
     I am sorry for time zone worst match
    No problem at all sir, i am truly blessed to get your awesome guidance and advice,
    i will be in bangalore this weekend for resolving  the DIL socket issue, so will be at home,
    and online 24Hrs :-). So when you become free, if possible, send a mail/message at
    your convenience. Once again thanks for all the help.
    
    
    Very best wishes
    janmay 
  • Dear All,

    Yes, the FET firmware downgrade program worked fine.

    Now my MCU is working fine with CCSv4.

    Thanks everyone, for all your help. This forum is a true life-saver :-)

    best wishes

    janmay

**Attention** This is a public forum