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.

CCS/MSP-EXP430F5529: Looking for default code for MSP-EXP430F5529 also a test SPI code for the same experiment board

Part Number: MSP-EXP430F5529

Tool/software: Code Composer Studio

Hi,

I have changed the MSP-EXP430F5529 experimenter board default code, now I want the same code back on my board, where i will find it?

And also looking for a basic SPI communication code for the same board to communicate with MSP430G2 launchpad, please guide me.

Thanks in advance.

Regards,

Vinayak

  • Hi Vinayak,

    Thanks for using MSP430F5529, the code of Experience Demo could be downloaded from below address with different version.
    software-dl.ti.com/.../index_FDS.html

    SPI example code for MSP430F5529 could be found here: www.ti.com/.../slac300, there are master and slave example.
    SPI example code for G2533 could be found here: www.ti.com/.../slac485.

    Then you need to connect the SPI interface between two boards, have fun! :)

    Merry Christmas.

    regards
    KC
  • Hi KC,

    Thanks for the reply.

    The link you shared for G2553 SPI code example couldn't find. Please share the correct link.

    regards,

    Vinayak

  • Hi Vinayak,

    Sorry, wrong link by added one unnecessary "."

    www.ti.com/.../slac485

    regards
    KC
  • Hello KC,

    I’m using  msp430f5528, I want to run my code on power up the device. On power up, at what address PC will be pointing to? And any doc or guidance to do this task?

    Please let me know.

    Regards,

    Vinayak

  • Hi Vinayak,

    The device will always run some pre-initialized code which was pre-programmed onto the device, such as boot code or other startup functions generated by the IDE. These code is requisite to pre-configure the device for user's application code, which should start with main() function.

    Sot, what did you say about "on power up"? Is it the absolute address after the power supply is ready for CPU core? Or the start address of your application code.
  • Hello Wei.Jetim Zhao,
    Thanks for the reply.
    When I flash my code using CCS, on powering up/restart my system(MSP430F5528), is not running the main code, but when I run step by step it runs properly. So do I need to set my MSP's PC for a particular address?, so that it will run my Main code when I restart it.

    Regards,
    Vinayak
  • Hi Vinayak,

    When restart MSP, the PC address will be 0xFFFE which is reset vector and the content in 0xFFFE is the address of init functions(stack init etc...) in boot.c, after running initial code it will call main code. When you run step by step in CCS the IDE will showing start with main code is because the IDE skip showing the boot.c but actually the initial code has been executed first.

    You can try to click Run -> Reset -> Hard Reset in toolbar of CCS then you will see the boot.c.

    regards
    KC

**Attention** This is a public forum