问答

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

21ic问答首页 - TAG
  • 检测不到dapKeil 无法加载  RA8D1_2M.FLM  这个 Flash 烧录算法文件

    1、debug我选择了CMSIS-dap,settings的debug哪里在叉上dap时sw device也能检测到,port选的是sw,max clock选的是1mHz,settings的flash选项的programming处也有ra8d1 2m flash 2、option的device选项的pack型号:renesas·RA_DFP·5·8·0 3、option的device选项的芯片选择:r7fa8d1ah。 但是在烧录的时候会提示Cannot Load Flash Programming Algorithm!求解答,自己研究了好久还是一样的问题

    flash keil 烧录 FLM DA ap

    722浏览量 9回复量 关注量
  • 极海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

    3804浏览量 0回复量 关注量