Hello,
Considering mass production what is the easy way of flash programming for piccolo microcontrollers? Is easy serial flash programming is possible? If possible which pins and which program is used for that purpose?
Best Regards,
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.
Hello,
Considering mass production what is the easy way of flash programming for piccolo microcontrollers? Is easy serial flash programming is possible? If possible which pins and which program is used for that purpose?
Best Regards,
Hi Gautam,
I read documant you addressed. I tried JTAG programming for standalone operation. This is the step I did.
- Using CCSV5 and JTAG connection, launch CCS debug perspective
- After pressing launch button CCSV5 automatically loads program.
- Then enable real time mode and press run button. And program runs every things OK.
I was waiting that after flash programming using JTAG interface as indicated above and removing JTAG connection MCU will work in standolone mode. But it dosent.
What can be the reason?
Note: High level voltages applied to TDO and GPIO34 pins (2.7V) Boot mode is Get mode.
And XRS Reset pin voltage is 3.3V.
Regards,
Hi,
What can be the reason?
This means that your code is running from RAM and not flash!
Here's the document to run the code from flash:
4571.Running from Internal Flash.pdf
Regards,
Gautam
Hi Gautam again,
I read all documant you sent.
In actually code runs from flash memory in my project. It will be better to give more information about project set up and files to make issue more clear.
- F28027 flash_CMD files is used as linker command file (It's may be not important but I want to say BOOT_RSVD in Data Memory PAGE1. I dont know the reason in some application its in Page0 program memory page)
- Flash Boot mode is chosen by hardware (Voltages at the GPIO34 and TDO pins is 2.7V)
- Project / properties menu in CCSV5 F2802X_FLASH configuration is set as active.
- Large memory model is used. rts2800_ml.lib runtime support library is used.
- Program compiled and built using CCSV5. Then using JTAG XDS1000 connection and CCSV5 debug session flash is erased and programmed. After enabling silicon real time mode and then pressing run button in CCS debug mode program runs.
- And finally JTAG XDS1000 connection is removed. Target power is off then on again to run in standalone mode.
But code dosent run in standalone mode. I was expecting code will run in that condition because flash is erased and programmed using CCS debug session and JTAG XDS1000 emulator as explained before.
I want to program flash using JTAG interface and XDS1000 tool. Then I will remove JTAG XDS1000 connection and after power resetting target board will run in standalone application.
Regards,
But code dosent run in standalone mode
As you've already gone through the above document, please check the boot settings. Also check for the signals required for proper boot from Flash. Check for Boot switches, if in wrong position boot from flash will not happen.
Regards,
Gautam
Hi Gautam,
I solved problem by adding F2802x_CodeStartBranch.asm to project and removing connection of TRST pin and ISO7220.
I can run the project now in stanalone mode. But I am not sure about two thing in CCS properties settings.
1- Should I write code_start word to part
Project/properties / C2000 linker / Advanced options / symbol management / specify program entry point
code_start is indicated in F2802x_CodeStartBranch.asm
and
2- May be its not important but I want to ask that " DEBUG", " LARGE MODEL" or " FLASH" Which should be write to part
Project/properties / built / c2000 compiler /advanced option / predefined symbols
In my project is DEBUG is choosen.
Regards,
I solved problem by adding F2802x_CodeStartBranch.asm to project and removing connection of TRST pin and ISO7220.
That's a great news.
1- Should I write code_start word to part
Project/properties / C2000 linker / Advanced options / symbol management / specify program entry point
code_start is indicated in F2802x_CodeStartBranch.asm
Yup... code_start should be mentioned
2- May be its not important but I want to ask that " DEBUG", " LARGE MODEL" or " FLASH" Which should be write to part
Project/properties / built / c2000 compiler /advanced option / predefined symbols
In my project is DEBUG is choosen.
Its not about choosing, but about adding symbols. Yes, all three should be in the list.
Regards,
Gautam