初级会员

- 积分
- 66
- 金钱
- 66
- 注册时间
- 2014-12-19
- 在线时间
- 0 小时
|
5金钱
SPI1重映射到PA15,PB3,PB4,PB5后,关闭JTAG打开SWJ后不能下载程序
以下初始化的程序
SPI_InitTypeDef SPI_InitStructure;
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE);
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable , ENABLE);
GPIO_PinRemapConfig(GPIO_Remap_SPI1 , ENABLE);
提示错误为:couldn't find supported CPU core on JTAG chained JTAG communication:write to IR:Expected 0x1,got 0X0(TAP Command:2)@0ff 0x5.unable to halt ARM core.
|
最佳答案
查看完整内容[请看2#楼]
你是用keil下载吗,感觉好像是下载方式上选择了jtag下载,没选择swd的,你看看下载设置里面怎么设置的
|