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.

Piccolo standalone operation

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28069

Hi Folks

Is there a guide for setting up the piccolo controlStick to run code from flash without using CCS to tell it to boot? (i.e. plug in the Stick and it boots the code already in flash)

I found several online, but they seem to be for older versions of CCS, I am using 4.2.4.00033

Thanks

  • Hi Toby,

    The following appnote describes running an application from flash

    http://www.ti.com/lit/an/spra958k/spra958k.pdf

    There is also a flash example in the F28069 controlSTICK folder of controlSUITE/development_tools. Look for the SineFIRFFT32 example.

  • Hi Vishal

    That detail is appreciated, however I think most of what is mentioned here is taken care of in the example projects already?

    For example if I load the BlinkingLED program to the device then close CCS and eject and reinsert the controlSTICK the LED should start blinking again by itself... is that correct?

    If it is correct I have some problem as this is not the case for me.

    Thanks

  • Toby,

    You need to make sure whether boot mode is set to boot to flash.

    Please check the contents of the following memory location:

    OTP_KEY       0x3D 7BFE

    OTP_BMODE 0x3D 7BFF

    Please refer http://www.ti.com/lit/ug/sprufn6a/sprufn6a.pdf for more details on boot mode.

    Regards,

    Manoj

  • Hello ,

    I wanted to configure an existing project for running from Flash as a Sandalone system.

    I am working on TMS320F28069 controller.

    1. Should the user make the GPIO pin 37 & 34 High for geting into "GetMode"& then set the values for OTP_KEY & OTP_BMODE?


    regards,
    Hemanth

  • Hemanth Sundaresh said:
    1. Should the user make the GPIO pin 37 & 34 High for geting into "GetMode"& then set the values for OTP_KEY & OTP_BMODE?

    Yes, that's the right way. The GetMode option uses two locations within the OTP to determine the boot mode. On an un-programmed device this mode will always boot to flash.

    Regards,

    Gautam

  • Thanks for the confirmation.

    I am currently using control stick TMS320F28069.

    Should I have a circuitry that set the GPIO 34 & 37 to High only during PowerUp?

    I don't think I can tap the GPIO 37 in control stick.

    Any hints how can I go about for this?

    regards,

    Hemanth

  • In controlstick, this has been taken care of! Running through flash is very much possible. Refer F28069 flash example code in controlSuite.

    Regards,

    Gautam

  • Hemanth,

    As Gautam mentions the F28069 controlSTICK already has the proper pull-ups to make the device boot-from-Flash.  (GPIO37 is labelled TDO in the controlSTICK schematics)


    Thank you,
    Brett

  • Thanks a lot for the information.

    In case I use just the controller in some new evaluation or demo board, should the pull-ups be always enabled to allow boot from Flash?

    If pull-up is always enabled, the multiplex function (COMP2OUT & COMP3OUT) cannot be used?

    Thanks,

    Hemanth

  • Hi Hemanth,

    I probably would (unless I wanted it to boot-from-SCI or some other peripheral, which is less likely).

    If you enable COMP2OUT via the mux, it will output the status of the comparator.  Assuming you use a relatively weak pull-up on the GPIO pin, COMP2OUT will overdrive the external pull-up when necessary.

    (note that most GPIO pins have a weak pull-up inside the MCU that can be configured to be on/off, and in many GPIOs it is enabled by default.  GPIO34 and GPIO37 both have the internal pull-up enabled by default.  Because of this, the external pull-ups aren't strictly necessary, but having them there is good practice)


    Thank you,
    Brett

  • Thanks Brett for the detailed reply.