How to disable Censorship on SPC560C50L3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-08 2:55 AM
Hello Everyone,
I am working on SPC560C50L3 controller and using UDE STK 4.8 software for loading the firmware. I wanted to enable censorship. After going through the community I was able to get a code to erase shadow flash an enable censorship from below link.
https://community.st.com/0D50X00009XkXR7SAN
I took the SPC560BCxx_RLA Flash Test Application from SPC5 Studio which runs from RAM. I commented CFlash and DFlash testing part along with the Shadow flash locking from the above code. Then I copied the code for enabling the censorship from the above link and build it. Then using the JTAG and UDE STK 4.8 I loaded the code to my MCU step by step using the Debug option. After power on reset, my MCU is running my application code (not the example). But I am not able to update new firmware because JTAG is not connecting to target.
Message from component 'PpcJtagTargIntf' :
Can't connect target !Message from component 'PpcJtagTargIntf' :Failed to connect probably because of wrong processor state !Please check:- JTAG cable and Target Power- Target's boot configuration- Target's PLL configuration- Censorship password configuration !Message from component 'PpcJtagTargIntf' :Processor is in UNKNOWN state !Message from component 'PpcJtagTargIntf' :Failed to halt processor !I have already tried the censorship unlock feature under xPC56x/xPC57 Options in UDE STK 4.8. I have also tried reversing the password. Password I used is the default password (0xFEEDFACE,0xCAFEBEEF). Did I enable the censorship correctly, or did I miss something. Any suggestion would be helpful.
Regards
SIBIN.
#censorshipSolved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 3:16 AM
Hello Thomas ,
The Code to enable / disable the censorship is valid.
it is a PLS Synchro Issue
- Try to connect you shoudl have : Message from component 'PpcJtagTargIntf' :
- Power-off the power supply
- when clicking on Retry , switch-on te power-supply
i can take the hand and flash again.
Best regards
Erwan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-09 12:56 AM
Hello Sibin ,
Yes , the code should work.
Have you enabled 0xFEEDFACE,0xCAFEBEEF in your debug configuration ?
Could you try in the same time ,
- pushing the reset button of your board & Click on Connect with PLS to bypass the Reset Escalation
Have you got Lautechbach T32 ?
Best regards
Erwan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-10 8:17 AM
Hi Erwan
Can you please let me know where can I find 'Connect with PLS'. I tried with pushing the reset button along with the 'Retry' option which comes up when 'Connect target system' is selected under the 'File' in toolbar, but the result was same.
Regards
SIBIN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 3:16 AM
Hello Thomas ,
The Code to enable / disable the censorship is valid.
it is a PLS Synchro Issue
- Try to connect you shoudl have : Message from component 'PpcJtagTargIntf' :
- Power-off the power supply
- when clicking on Retry , switch-on te power-supply
i can take the hand and flash again.
Best regards
Erwan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-13 11:53 PM
Hello Erwan ,
Thank you for your reply.
I tried to follow your instructions and if I power ON my module soon after pressing ''Retry'' option, I am able to connect to SPC560C50 target. But when I select my hex file or even try to program the module, it is giving the error as shown below.
I think the UDE STK software is trying to reset my module several times while trying to program. I was able to erase my flash one time. After that I am not able to erase or program it again.
Regards
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-14 1:14 AM
Hello Thomas ,
Good news , your target is not locked.
you should check in your PLS Debug options
'Reset target when connect'
Best regards
Erwan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-16 8:41 AM
Hello Erwan ,
I tried every options in the PLS Debug options, still I am not able to load any firmware to the MCU. I can only erase my flash when I power on my MCU just after clicking the Retry option. I tried it on another controller also, the result is same.
When I try to select my hex file, I get the below warnings.
what does the warning at 44 mean ? when I try to program, errors at 50 and 51 are occurring.
Regards
Thomas.
