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.
Using CCS 5.5.0.00077 and Hercules Emulation 5.5.0.8 with a LAUNCHXL-RM42 launchpad.
With CCS 5.5 a simple "hello world" program was created for a RM42L432 which was downloaded and run from CCS without error. This simple "hello world" program doesn't use flash ECC and so after download in CCS the flash ECC starting at address 0xF040000 is blank.
The RM42x_demo_software project from the Hercules Safety MCU Demos was imported into CCS 5.5 and succesfully re-built. However, when attempt to load the project using CCS the following flash verification is reported:
The CCS debug server log for the failed download is attached 8204.debug_server.logCortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: Error during Flash verification (Flash algorithm returned error condition). Operation cancelled.
CortexR4: Flash verification returned error condition. Operation cancelled.
CortexR4: GEL: File: C:\Documents and Settings\Mr_Halfword\workspace_v5_5\RM42x_demo_software\Debug\RM42x_demo_software.out: Load failed.
I think the flash verification failure reported by CCS 5.5 is false since:
a) After CCS has reported the flash verification failure if the POR RESET button on the LAUNCHXL-RM42 launchpad is pressed the program downloaded by CCS successfully runs and communicates with the Hercules Safety Demo runninng on the PC.
b) Using nowFlash v3.42 to verify the RM42x_demo_software.out loaded by CCS reports a verification pass (on both the main flash and ECC flash blocks).
The imported RM42x_demo_software project made use of a post-build step to run nowecc to add the flash ECC to the RM42x_demo_software.out.Chester Gillon said:The RM42x_demo_software project from the Hercules Safety MCU Demos was imported into CCS 5.5 and succesfully re-built. However, when attempt to load the project using CCS the following flash verification is reported
I think the post-step which ran nowecc is confusing the CCS 5.5 download of the program. When the project was modified to:
a) Remove the post build step which ran nowecc
b) Under project properties -> Debug -> Flash Settings -> enable "Auto ECC Generation"
Then CCS 5.5 was able to download the program without any flash verification failures reported.
i.e. appears that the act of getting CCS 5.5 to download a .out file which already contains the flash ECC data causes a (spurious) verification failure.
Chester,
Can you let me know what parameters you are passing to nowECC in your post build step? I'm wondering if nowECC is generated incorrect ECC data, which is the cause of the verification error.
Also, can you confirm that when you are using the nowECC post build step, you have the "Auto ECC Generation" option unchecked?
Thanks,
Ricky
The nowECC parameters were set in the RM42x_demo_software project imported from the Hercules Safety MCU Demos v3.2. The post build command in the imported project was:Ricky Lau said:Can you let me know what parameters you are passing to nowECC in your post build step?
As I didn't have nowECC v2.17 installed I changed the command to point at the v2.21 installed:"c:\ti\Hercules\nowECC\v2.17\nowecc.exe" -F021 16M_ADD -R4 -a "${BuildArtifactFileName}"
The following was reported at the end of the CCS 5.5 build:"c:\ti\Hercules\nowECC\2.21.00\nowecc.exe" -F021 16M_ADD -R4 -a "${BuildArtifactFileName}"
"c:\ti\Hercules\nowECC\2.21.00\nowecc.exe" -F021 16M_ADD -R4 -a "RM42x_demo_software.out"
This is nowECC Version 2.21Mapping: F021-16MB
ECC calculation from 0x00000000 to 0x0000ACDF*** Appending ECC section to file -> RM42x_demo_software.out
No Errors
Comfirm that when get the error the "Auto ECC Generation" option is unchecked:Ricky Lau said:Also, can you confirm that when you are using the nowECC post build step, you have the "Auto ECC Generation" option unchecked?
I also checked the "Enable Verbose Output" under flash settings, which reported the following diagostic information:
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: Writing Flash @ Address 0x00000000 of Length 0x00007FF0
CortexR4: Erasing Flash Bank 0, Sector 0
CortexR4: Erasing Flash Bank 0, Sector 1
CortexR4: Erasing Flash Bank 0, Sector 2
CortexR4: Erasing Flash Bank 0, Sector 3
CortexR4: Erasing Flash Bank 0, Sector 4
CortexR4: Erasing Flash Bank 0, Sector 5
CortexR4: Erasing Flash Bank 0, Sector 6
CortexR4: Erasing Flash Bank 0, Sector 7
CortexR4: Erasing Flash Bank 0, Sector 8
CortexR4: Erasing Flash Bank 0, Sector 9
CortexR4: Erasing Flash Bank 0, Sector 10
CortexR4: Erasing Flash Bank 0, Sector 11
CortexR4: Erasing Flash Bank 0, Sector 12
CortexR4: Erasing Flash Bank 0, Sector 13
CortexR4: Erasing Flash Bank 0, Sector 14
CortexR4: Erasing Flash Bank 7, Sector 0
CortexR4: Erasing Flash Bank 7, Sector 1
CortexR4: Erasing Flash Bank 7, Sector 2
CortexR4: Erasing Flash Bank 7, Sector 3
CortexR4: Verifying Flash @ Address 0x00000000 of length 0x00006500
CortexR4: Verifying Flash @ Address 0x00006500 of length 0x00001AF0
CortexR4: Finish Writing Flash @ Address 0x00000000 of Length 0x00007FF0
CortexR4: Writing Flash @ Address 0x00007FF0 of Length 0x00002CF0
CortexR4: Verifying Flash @ Address 0x00007FF0 of length 0x00002CF0
CortexR4: Finish Writing Flash @ Address 0x00007FF0 of Length 0x00002CF0
CortexR4: Writing Flash @ Address 0xF0400000 of Length 0x0000159C
CortexR4: Verifying Flash @ Address 0xF0400000 of length 0x0000159C
CortexR4: Error during Flash verification (Flash algorithm returned error condition). Operation cancelled.
CortexR4: Flash verification returned error condition. Operation cancelled.
CortexR4: Error Writing Flash @ Address 0xF0400000 of Length 0x0000159C
CortexR4: GEL: File: C:\Documents and Settings\Mr_Halfword\workspace_v5_5\RM42x_demo_software\build\Debug\RM42x_demo_software.out: Load failed.
Chester,
Thanks for providing the information. If you still have the OUT file that was generated from the project, would it be possible to send it to me for analysis (my email is in my profile information)?
Thanks,
Ricky
Ricky,Ricky Lau said:If you still have the OUT file that was generated from the project, would it be possible to send it to me for analysis (my email is in my profile information)?
I have emailed you the .out file as requested.
Thanks,
Chester
Chester,
Thanks for sending me the OUT file. I was able to reproduce the problem you are seeing using the file. Interestingly enough, I was able to get it to verify correct using an older version of the Flash algorithms. We will look into the cause of this and get back to you as soon as possible.
Thanks,
Ricky
Hello Chester,
I have found the issue and will be releasing a Hercules emulation patch today to correct this issue.
Thanks for the quick fix. Just updated to Hercules Emulation 5.5.0.9 and confirm the RM42 flash verification failure no longer occurs.John Hall said:I have found the issue and will be releasing a Hercules emulation patch today to correct this issue.