HCS08 MCU

时间:2018-01-30 19:35:56

标签: c microcontroller

我正在编程一个freescale MCU,而我正在使用codewarrior版本10.5。我刚刚从经销商的网页上下载了一些代码,我在下一行中遇到了这种语法错误。任何帮助都值得赞赏!

/* Initialization of the CPU registers in FLASH */

/* NVPROT: FPS=0x7F,FPDIS=1 */
const volatile NVPROTSTR _NVPROT @0x0000FFBD = { 0xFF };

/* NVOPT: KEYEN=0,FNORED=1,SEC01=1,SEC00=0 */
const volatile NVOPTSTR _NVOPT @0x0000FFBF = { 0x7E };

此外,我不明白@在这里的用法。是特别注册吗?这是地址吗?

这是我在控制台中获得的内容:

**** Build of configuration FLASH for project qg8_test ****

"C:\\Freescale\\CW MCU v10.5\\gnu\\bin\\mingw32-make" -j8 all 
'Building file: ../Sources/MCUinit.c'
'Executing target #1 ../Sources/MCUinit.c'
'Invoking: HCS08 Compiler'
"C:/Freescale/CW MCU v10.5/MCU/prog/chc08" -ArgFile"Sources/MCUinit.args" -ObjN="Sources/MCUinit_c.obj" "../Sources/MCUinit.c" -Lm="Sources/MCUinit_c.d" -LmCfg=xilmou
../Sources/MCUinit.c
Command Line: '-ArgFile"Sources/MCUinit.args" -ObjN="Sources/MCUinit_c.obj" "../Sources/MCUinit.c" -Lm="Sources/MCUinit_c.d" -LmCfg=xilmou'
C:/Users/oskra/workspace/qg8_test/Project_Headers\../Sources\MCUinit.c
 C:/Users/oskra/workspace/qg8_test/Project_Headers\MC9S08QG8.h
Option -Lm Update: Create new dependency file
Option -Lm: Adding make info to 'Sources/MCUinit_c.d'
C:/Users/oskra/workspace/qg8_test/Project_Headers\../Sources\MCUinit.c:135:error:C2450 Expected:  ~ ( IDENT
mingw32-make: *** [Sources/MCUinit_c.obj] Error 1

0 个答案:

没有答案