21ic问答首页 - GD32h759demo错误
GD32h759demo错误
NKML2024-12-02
本帖最后由 NKML 于 2024-12-2 14:16 编辑
大佬们,请教个问题。为啥下载了 GD32H759官方的demo: “06_USART_DMA”, ,用keil编译会失败呢?错误部分的代码是这样的。
void mpu_region_struct_para_init(mpu_region_init_struct *mpu_init_struct)
{
mpu_init_struct->region_number = MPU_REGION_NUMBER0;
mpu_init_struct->region_base_address = 0x00000000U;
mpu_init_struct->instruction_exec = MPU_INSTRUCTION_EXEC_PERMIT;
mpu_init_struct->access_permission = MPU_AP_NO_ACCESS; //这个提示错误
mpu_init_struct->tex_type = MPU_TEX_TYPE0;
mpu_init_struct->access_shareable = MPU_ACCESS_SHAREABLE;
mpu_init_struct->access_cacheable = MPU_ACCESS_CACHEABLE;
mpu_init_struct->access_bufferable = MPU_ACCESS_BUFFERABLE;
mpu_init_struct->subregion_disable = MPU_SUBREGION_ENABLE;
mpu_init_struct->region_size = MPU_REGION_SIZE_32B; //这个也提示错误
}
找了半天好像是没有定义这个数值对么,如果要定义的话,数值应该去定义多少呢?
大佬们,请教个问题。为啥下载了 GD32H759官方的demo: “06_USART_DMA”, ,用keil编译会失败呢?错误部分的代码是这样的。
void mpu_region_struct_para_init(mpu_region_init_struct *mpu_init_struct)
{
mpu_init_struct->region_number = MPU_REGION_NUMBER0;
mpu_init_struct->region_base_address = 0x00000000U;
mpu_init_struct->instruction_exec = MPU_INSTRUCTION_EXEC_PERMIT;
mpu_init_struct->access_permission = MPU_AP_NO_ACCESS; //这个提示错误
mpu_init_struct->tex_type = MPU_TEX_TYPE0;
mpu_init_struct->access_shareable = MPU_ACCESS_SHAREABLE;
mpu_init_struct->access_cacheable = MPU_ACCESS_CACHEABLE;
mpu_init_struct->access_bufferable = MPU_ACCESS_BUFFERABLE;
mpu_init_struct->subregion_disable = MPU_SUBREGION_ENABLE;
mpu_init_struct->region_size = MPU_REGION_SIZE_32B; //这个也提示错误
}
找了半天好像是没有定义这个数值对么,如果要定义的话,数值应该去定义多少呢?
您需要登录后才可以回复 登录 | 注册