问答

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

NKML

TA的家园币:32  

  • GD32h759demo错误

    本帖最后由NKML于2024-12-214:16编辑大佬们,请教个问题。为啥下载了GD32H759官方的demo:“06_USART_DMA”,,用keil编译会失败呢?错误部分的代码是这样的。voidmpu_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 MPU Tru

    2024-12-02 0