Concerto Boot From Flash
Submitted by mikesj on Mon, 04/21/2014 - 17:41
I have an issue with my Concerto trying to get it to boot from flash, I have downloaded the .out files for both the M3 then the C28 with CCS 5.04. SW1.1 - 4 are all off i.e. all pins high, the software works fine with the debugger connected, when I cycle power I also turn SW3.1 off (beforehand) the software will not boot from flash.
the other issue that I have is that the 3 Phase generator which is set at 50hZ runs at 25hZ. Is the due to the debugger settings as I cannot get the board to boot up from flash to test.
Answers
-
Submitted by AndrewD on Thu, 04/24/2014 - 22:32.
We were able to reproduce your problem, our engineering team is currently looking into a solution.
0 -
Submitted by Anders89 on Fri, 04/25/2014 - 03:10.
There are 2 problems. One is that if the ARM side references ctomBuf before the c28 side has woken up, it will get locked waiting for the c28 side to boot. The c28 side will ONLY boot if an IPC command is sent from the ARM side requesting the c28 start to boot:
IPCMtoCBootControlSystem( CBROM_MTOC_BOOTMODE_BOOT_FROM_FLASH )
The attached diagram will send the IPC Boot command before starting interrupts on the ARM side.
0 -
Submitted by Anders89 on Fri, 04/25/2014 - 09:06.
For consistent booting of the ARM side, we discovered that in addition to the IPC message to start the C28 side running, it is important add a small one-time delay at boot time before reading ctomBuf C28 side RAM. This has been implemented in the attached diagram.
0 -
-
Submitted by Anders89 on Sat, 04/26/2014 - 07:26.
You aren't missing a cmd file. Rather you have an outdated cortexM3cl.bat file. Instead of having you update everything, you can easily fix your .bat file. Use notepad to open the file \vissim80\cg\cortexM3cl.bat and change line 13 (or thereabouts) from:
if '%4' == 'so' set LCF=o
to
if '%4' == 'so' set LCF=
and you should be good to go.
0 -
Submitted by mikesj on Sun, 05/04/2014 - 17:47.
Hi Anders, Thanks for you feedback. I modified cortexM3cl.bat but still had compile issues and I found that F28M35H52_M3foLNK.CMD was not on my PC. I copied F28M35H52_M3fLNK.CMD and renamed to F28M35H52_M3foLNK.CMD which worked. Is there any difference between the two files?
In addition I see that the question has been asked before but I see there has been no answer, how can I save variables to flash so that they can be modified i.e. If I need to change the p & I values and want them to be saved.
0