• AVR Freaks

AnsweredHot!Harmony V3 USB HOST compiling error

Author
chri
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2009/06/08 02:34:22
  • Location: 0
  • Status: offline
2019/11/04 03:28:46 (permalink)
0

Harmony V3 USB HOST compiling error

Pic32MX470F512L Project configured by MHC3 with USB host, MSD client driver and USB full speed driver. All code compiles well, but if i add the usb hub support and generate the code i have a lot of compiling error with defines not found. Looking at a sample code i see the HIGH_SPEED usb driver included where the defines are declared. The problem is that i can't find the way to select different driver from USB Full speed in MHC.
 
#1
chri
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2009/06/08 02:34:22
  • Location: 0
  • Status: offline
Re: Harmony V3 USB HOST compiling error 2019/11/05 07:01:47 (permalink)
0
Is there a way to add HUB support with MHC3? Because if i check it in the "configutation options" of "Host Driver" i can't compile anymore.
#2
yts
Super Member
  • Total Posts : 601
  • Reward points : 0
  • Joined: 2005/09/06 17:45:30
  • Status: offline
Re: Harmony V3 USB HOST compiling error 2019/11/05 23:40:01 (permalink)
0
Have you tried to use the example firmware “HarmonyFramework\usb\apps\host\hub_msd” ?

This example works fine with PIC32MX270F256B-50I/SP.

yts


Attached Image(s)

#3
yts
Super Member
  • Total Posts : 601
  • Reward points : 0
  • Joined: 2005/09/06 17:45:30
  • Status: offline
Re: Harmony V3 USB HOST compiling error 2019/11/11 18:25:17 (permalink) ☼ Best Answerby chri 2019/12/04 06:07:22
0
I should have made comment more carefully. Sorry about this.

I modified the following three files when I used the example "HarmonyFramework\usb\apps\host\hub_msd” for PIC32MX270F256B-50I/SP.

usb_host_hub.h (see usb_host_hub.h.png : add one line #include "usb_host_client_driver.h")

initialization.c (see initialization.c.png : comment out two lines)

drv_usb_external_dependencies.h (see drv_usb_external_dependencies.h.png : comment out two lines)

yts
post edited by yts - 2019/11/11 18:26:29

Attached Image(s)

#4
chri
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2009/06/08 02:34:22
  • Location: 0
  • Status: offline
Re: Harmony V3 USB HOST compiling error 2019/12/04 06:07:54 (permalink)
0
ok thank you, now it works.
#5
Jump to:
© 2019 APG vNext Commercial Version 4.5