用arm gcc/stmcubeIDE编译
[ELF]Unrecognized attribute form code 17
[ELF]ELF file corrupt or loader error at location 131250
Failed to load ELF file '.elf
Firmware can't be loaded due to error
Real Time Simulation failed to start
原因是需要改--gd...
proteus
Access to register of unclocked peripheral at 0x40020058 cause BUS _FAULT
DMA
底层原因大概是时钟问题,上层原因是cubamx生成的函数顺序错误
MX_DMA_Init();
MX_USART1_UART_Init();
应该是这个顺序