问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - 读写保护
  • STM32L452 在未知情况下打开了读保护RDP? sos 赏100家园币

    [backcolor=rgb(255, 255, 255)][font=Microsoft Yahei, Avenir, Segoe UI, Hiragino Sans GB, STHeiti, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif][color=#333333]各位大佬们多提提宝贵建议定位根本原因,跪谢。[/color][/font][/backcolor] [backcolor=rgb(255, 255, 255)][font=Microsoft Yahei, Avenir, Segoe UI, Hiragino Sans GB, STHeiti, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif][color=#333333]STM32L452 在未知情况下打开了读保护RDP? [/color][/font][font=Microsoft Yahei, Avenir, Segoe UI, Hiragino Sans GB, STHeiti, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif][color=#333333]MCU无法运行,只有解除读保护后重新烧录固件[/color][/font] [font=Microsoft Yahei, Avenir, Segoe UI, Hiragino Sans GB, STHeiti, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif][color=#333333]这是一个未知情况下打开RDP的异常,主程序源码为bootloader+APP[/color][/font][/backcolor] [color=#333333][backcolor=rgb(255, 255, 255)][font="]check bootloader有一个读RDP状态操作,[/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font="]APP有操作option byte。[/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font="]以上操作都为官方HAL库[/font][/backcolor][/color]

    STM32 STM32L4 单片机 读写保护 读保护 RDP

    1730浏览量 0回复量 关注量
  • 极海32F030芯片读写保护时,没找到xx32F0xx Flash_OPT.FLM文件 sos

    #define OB_BASE ((uint32_t)0x1FFFF800) /*!< FLASH Option Bytes base address */#define OB ((OB_TypeDef *) OB_BASE) FLASH_Status FLASH_OB_Erase(void) { uint16_t rdptmp = OB_RDP_Level_0; FLASH_Status status = FLASH_COMPLETE; /* Get the actual read protection Option Byte value */ if(FLASH_OB_GetRDP() != RESET) { rdptmp = 0x00; } /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation(FLASH_ER_PRG_TIMEOUT); if(status == FLASH_COMPLETE) { /* If the previous operation is completed, proceed to erase the option bytes */ FLASH->CR |= FLASH_CR_OPTER; FLASH->CR |= FLASH_CR_STRT; /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation(FLASH_ER_PRG_TIMEOUT); if(status == FLASH_COMPLETE) { /* If the erase operation is completed, disable the OPTER Bit */ FLASH->CR &= ~FLASH_CR_OPTER; /* Enable the Option Bytes Programming operation */ FLASH->CR |= FLASH_CR_OPTPG; /* Restore the last read protection Option Byte value */ OB->RDP = (uint16_t)rdptmp; /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation(FLASH_ER_PRG_TIMEOUT); if(status != FLASH_TIMEOUT) { /* if the program operation is completed, disable the OPTPG Bit */ FLASH->CR &= ~FLASH_CR_OPTPG; } } else { if (status != FLASH_TIMEOUT) { /* Disable the OPTPG Bit */ FLASH->CR &= ~FLASH_CR_OPTPG; } } } /* Return the erase status */ return status; } 请问有用过极海的读保护的吗,这个OPT.FLM文件去哪找

    单片机 xx 芯片 FLM 读写保护 F030

    2993浏览量 0回复量 关注量
  • 怎么进行软件程序读写保护,可配置特定密钥吗? sos

    根据外设demo可以看到有密钥,这个密钥可自己进行配置吗?有没有什么要求

    demo 读写保护 软件 读写

    1343浏览量 0回复量 关注量