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 run from flash

Other Parts Discussed in Thread: CONTROLSUITE

This could probably go o none of my old posts but here is what's happening:

I have my boot jumpers set to boot from flash. I'm trying to use one of the Piccolo's flash examples. I included the files required to do this and  changed the linker file. When I go into debug mode it goes fine but when I press "play" nothing happens. Now, I read something about the gel file and setting the "on reset" to boot from flash but i dont know how to use that from my C file. They have referred me to the "run from flash" document and it does not help at ll. Another thing is the EMU_KEY and EMU_BMODE registers. I'm not able to change EMU_BMODE. Is it really this complicated to run from flash? I'm doing everything it says to do and it will not load my program into flash. I can tell it's "trying" to boot from flash because when I start my chip the current drawn is what it would draw if it were programmed (aka it is "programmed" and running from flash) but it's not doing anything. What am I missing here? you guys should know what to do in this case and I have never gotten anything remotely close to a good answer. Please help me with this!  =/

Things I have done:

-changed linker to FLASH instead of RAM

- GPIO34 is pulled high, TDO is pulled high

- Included code start branch

Things i may need:

- EMU/OTP KEY and BMODE addresses on PIE VECT TABLE

- BMODE asks for 0x000B to boot from ram, however I can't seem to change it no matter what I do


THIS IS AN EDIT TO MY POST:

I changed the linker file from "F28026.cmd" to the generic flash one and one thing I noticed is that my code actually programs the chip (the way it would if the RAM lnk file were being used) but It won't keep the code once I reset it (TRST is now low since I unplugged the debugger) So this is the only new thing happening.

This is all I have for now



Thank you!

  • Hi Alan,

    I would like you to go through this workshop:

    https://www.ee.iitb.ac.in/~ccgroup/experiment_files/TI.pdf

    Let  me know if this helps.

    Regards,

    Gautam

  • Hello Alan,

    Just to make sure we are in the same page.

    Do you use the example C:\ti\controlSUITE\device_support\f2802x\v210\f2802x_examples\flash_f28027 like below?

    What do you expect to be the result of this example that you can observe immediately based on your board connection (because you said nothing is happened)?

    Please try to change GPIO34 (GPIO_Number_34) in the code above to be another GPIO (for example GPIO33) and connect this GPIO to the LED to check whether this LED is toggled or not because GPIO 34 is used for BOOT selection and I think it can not be used for this code to be toggled.

    Also I am wondering, what debugger that you use? Do you build it by yourself or is it from TI?

    Best regards,

    Maria

  • alan alban said:
    one thing I noticed is that my code actually programs the chip (the way it would if the RAM lnk file were being used)

    Another thing, when the flash code is loaded to the MCU by CCS debugger, the state in the box to erase the flash will appear:

    This will not appear when you load your code to RAM. Can you confirm that this happens in your case?

    Best regards,

    Maria