infineon4engi@twitter infineon4engineers infineon@linkedin infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 2 of 2

Thread: Flash protection

  1. #1
    New Member New Member diego_ is on a distinguished road
    Join Date
    Sep 2018

    Flash protection

    Hi everyone,

    I have several questions about flash protection.
    I flash the XMC4200 microcontroller with DAVE over JTAG which also allows me to debug my applications. I use the following code to protect global read/write flash content.

    #include <DAVE.h>
    #include <stdlib.h>
    #include <XMC4200.h>
    #include <xmc_common.h>
    #include <xmc_scu.h>
    #include <xmc_flash.h>
    #include <xmc_gpio.h>
    uint8_t user = 0;
    uint32_t protection_mask = XMC_FLASH_PROTECTION_READ_GLOBAL;
    uint32_t password_0 = 0x0;
    uint32_t password_1 = 0x0;
    int main(void){
    	//##### SET UP #####
    		XMC_FLASH_InstallProtection(user, protection_mask, password_0, password_1);
    	// ... rest of my code
    My first question is: Must I include the flash protection code in the same DAVE project as my application code? If I do so, the application works but it is not possible to flash any code again. This is obviously what I am looking for, but I also need to temporary disable protection (with correct passwords) to allow flashing new programs.
    The second one is: in this forum link: jferreira (an Infineon employee) suggest to implement a backdoor to disable protection. What exactly does he mean? Can I do it over JTAG?

    Thanks in advance

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012

    Have a look to the XMCLib example at XMCLib\examples\XMC4500\FLASH\FLASH_PROTECTION. It uses a shell which implements a command that allows to disable temporarily the flash protection.
    The way of disabling temporarily the flash protection are multiple, i.e. pin level at start up...
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread

Tags for this Thread


All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.