Skip to main content
Visitor II
July 26, 2017
Question

MOTENV1_ENABLE_PRINTF

  • July 26, 2017
  • 1 reply
  • 529 views
Posted on July 26, 2017 at 23:26

HW : STM32L476RG-SensorTile

SW : SW4STM32

Tried to enable the debug print through USB.

I was using the BlueMicrosystem2_V2.2.0.  Enable  #define OSX_BMS_ENABLE_PRINTF and rebuild code will work.

Can see all the print out.

Recently got the new STM32CubeFunctionPack_MOTENV1_V3.0.0.

Followed the instruction in main.c to rebuild with #define  MOTENV1_ENABLE_PRINTF 

But the ST Virtual COM port not even showing up in PC device manager

Is there additional work need to be done ?

    This topic has been closed for replies.

    1 reply

    Dilbert KAuthor
    Visitor II
    July 26, 2017
    Posted on July 27, 2017 at 00:47

    OK, found the problem, this was old problem for using AC6.

    As #elif will not work for just #define, need to change all the build options define in project to =1