AnsweredAssumed Answered

defining BOARD_USE_VIRTUALCOM causes compile error

Question asked by Ian Norman on May 12, 2016
Latest reply on May 17, 2016 by Ian Norman

Hi, I've been trying to follow the blog post https://centaurian.co.uk/2015/12/23/ksdk-usb-cdc-printf/

to set up the USB interface on our K64 board as a CDC device, but hit a problem when defining the symbol “BOARD_USE_VIRTUALCOM” under the properties of the project “C/C++ Build >> Settings >> Cross ARM C Compiler >> Preprocessor”

properpties.jpg

 

Setting this gives me a compile error I can't work out,

<command-line>:0:1: error: macro names must be identifiers

Static_Code/System/subdir.mk:21: recipe for target 'Static_Code/System/PE_low_level_init.o' failed

make: *** [Static_Code/System/PE_low_level_init.o] Error 1

 

Removing the symbol stops the compile error but the usb device isn't detected by windows correctly, showing up in device manager as

Unknown USB Device (Device Descriptor Request Failed)

 

Any ideas where I might be going wrong?

 

Kind regards

 

Ian

Outcomes