STM32F407移植到IAR Embedded Workbench语法错误

2019-07-20 02:48发布

Building configuration: STM32F4 - Debug
Updating build tree...
startup_stm32f40_41xxx.s
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 43
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 44
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 54
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 56
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 64
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 69
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 70
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 71
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 72
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 73
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 74
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 75
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 76
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 77
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 78
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 79
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 80
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 81
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 82
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 83
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 84
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 87
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 88
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 89
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 90
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 91
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 92
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 93
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 94
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 95
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 96
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 97
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 98
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 99
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 100
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 101
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 102
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 103
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 104
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 105
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 106
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 107
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 108
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 109
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 110
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 111
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 112
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 113
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 114
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 115
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 116
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 117
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 118
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 119
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 120
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 121
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 122
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 123
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 124
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 125
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 126
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 127
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 128
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 129
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 130
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 131
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 132
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 133
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 134
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 135
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 136
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 137
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 138
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 139
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 140
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 141
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 142
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 143
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 144
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 145
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 146
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 147
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 148
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 149
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 150
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 151
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 152
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 153
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 154
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 155
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 156
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 157
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 158
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 159
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 160
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 161
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 162
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 163
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 164
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 165
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 166
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 167
Warning[410]: DC or DS directive while in CODE area. C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 168
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 174
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 177
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 178
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 186
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 190
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 191
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 193
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 195
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 196
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 198
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 200
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 201
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 203
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 205
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 206
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 208
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 210
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 211
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 213
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 214
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 215
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 217
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 219
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 220
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 222
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 223
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 224
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 226
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 227
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 228 Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 280
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 281
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 282
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 283
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 304
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 305
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 306
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 307
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 308
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 309
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 310
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 311
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 312
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 313
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 314
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 315
Error[40]: Bad instruction C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 402
Error[413]: 'ALIGN' is illegal. Use directive ALIGNROM or ALIGNRAM (the first parameter is raised to the power of 2, the second is a 32-bit fill value). C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 404
Error[0]: Invalid syntax C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 409
Error[413]: 'ALIGN' is illegal. Use directive ALIGNROM or ALIGNRAM (the first parameter is raised to the power of 2, the second is a 32-bit fill value). C:DesktopSTM32F4_PCOREstartup_stm32f40_41xxx.s 428
Error while running Assembler
sys.c 
Error[Pe040]: expected an identifier C:DesktopSTM32F4_PSYSTEMsyssys.c 22
Error[Pe260]: explicit type is missing ("int" assumed) C:DesktopSTM32F4_PSYSTEMsyssys.c 22
Error[Pe020]: identifier "WFI" is undefined C:DesktopSTM32F4_PSYSTEMsyssys.c 24
Error[Pe040]: expected an identifier C:DesktopSTM32F4_PSYSTEMsyssys.c 27
Error[Pe260]: explicit type is missing ("int" assumed) C:DesktopSTM32F4_PSYSTEMsyssys.c 27
Error[Pe020]: identifier "CPSID" is undefined C:DesktopSTM32F4_PSYSTEMsyssys.c 29
Error[Pe065]: expected a ";" C:DesktopSTM32F4_PSYSTEMsyssys.c 30
Error[Pe040]: expected an identifier C:DesktopSTM32F4_PSYSTEMsyssys.c 33
Error[Pe260]: explicit type is missing ("int" assumed) C:DesktopSTM32F4_PSYSTEMsyssys.c 33
Error[Pe020]: identifier "CPSIE" is undefined C:DesktopSTM32F4_PSYSTEMsyssys.c 35
Error[Pe065]: expected a ";" C:DesktopSTM32F4_PSYSTEMsyssys.c 36
Error[Pe040]: expected an identifier C:DesktopSTM32F4_PSYSTEMsyssys.c 40
Error[Pe260]: explicit type is missing ("int" assumed) C:DesktopSTM32F4_PSYSTEMsyssys.c 40
Error[Pe020]: identifier "MSR" is undefined C:DesktopSTM32F4_PSYSTEMsyssys.c 42
Error[Pe065]: expected a ";" C:DesktopSTM32F4_PSYSTEMsyssys.c 43
Error while running C/C++ Compiler
usart.c 
Warning[Pe161]: unrecognized #pragma C:DesktopSTM32F4_PSYSTEMusartusart.c 38
Error[Pe020]: identifier "FILE" is undefined C:DesktopSTM32F4_PSYSTEMusartusart.c 45
Error[Pe020]: identifier "FILE" is undefined C:DesktopSTM32F4_PSYSTEMusartusart.c 52
Error while running C/C++ Compiler
 
Total number of errors: 140
Total number of warnings: 99
移植原子哥的STM32F4工程模板到IAR,出现如上错误,请大家指教,谢谢!  
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。