• AVR Freaks

Hot!What I noticed in Harmony3 (mainly PIC32MZ2048EFM064)

Author
yts
Super Member
  • Total Posts : 601
  • Reward points : 0
  • Joined: 2005/09/06 17:45:30
  • Status: offline
2019/04/18 23:10:59 (permalink)
5 (1)

What I noticed in Harmony3 (mainly PIC32MZ2048EFM064)

PIC32MZ2048EFM064
MPLABX v5.15
XC32 C/C++ Compiler v2.15
Harmony3
 
#1:
When theRC15 is set to be output digital pin, Harmony 3 adds the code
ANSELCCLR = 0x8000; /* Digital Mode Enable */
This code causes the compiler error. This code should not be added.
 
#2:
In the file “HarmonyFramework\usb\config\module.py”
The following codes are duplicated.
 

 
                             # Create USB Host Stack Component
 
                             print("create component: USB Host")
 
                             usbHostComponent = Module.CreateSharedComponent("usb_host", "Host Layer", "/Libraries/USB/Host Stack", "config/usb_host.py")
 
                             usbHostComponent.addDependency("usb_driver_dependency", "DRV_USB", True, True)
 
                             usbHostComponent.addDependency("usb_host_tmr_dependency", "SYS_TIME", True, True)
 
                             usbHostComponent.addCapability("usb_host", "USB_HOST", True)
 
                            
 
                             print("create component: USB Host MSD")
 
                             usbHostMsdComponent = Module.CreateComponent("usb_host_msd", "MSD Client Driver", "/Libraries/USB/Host Stack","config/usb_host_msd.py")
 
                             usbHostMsdComponent.addDependency("usb_host_dependency", "USB_HOST", True, True)
 
                             usbHostMsdComponent.addCapability("USB Host MSD", "DRV_MEDIA")
 
                            
 
                             print("create component: USB Host CDC")
 
                             usbHostCdcComponent = Module.CreateComponent("usb_host_cdc", "CDC Client Driver", "/Libraries/USB/Host Stack", "config/usb_host_cdc.py")
 
                             usbHostCdcComponent.addDependency("usb_host_dependency", "USB_HOST", True, True)
 

 
yts
post edited by yts - 2019/05/01 15:37:35
#1

6 Replies Related Threads

    JPortici
    Super Member
    • Total Posts : 833
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: What I noticed in Harmony3 2019/04/19 02:29:18 (permalink)
    0
    #1 i suggest you either open a ticket or raise an issue on the github repo
    #2 i don't think it's wrong. There's the generic part of the stack (for usb) and the specific part of the stack (for msd)
    or by duplicated you mean that the code block is inserted twice? again, in that case ticket/issue
    #2
    yts
    Super Member
    • Total Posts : 601
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re: What I noticed in Harmony3 2019/04/19 15:59:23 (permalink)
    0
    Thank you for your replay.
     
    As for #2, I mean that the same codes appear twice in the file “HarmonyFramework\usb\config\module.py”.
     
    yts
    #3
    yts
    Super Member
    • Total Posts : 601
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re: What I noticed in Harmony3 2019/04/24 01:36:09 (permalink)
    0
    #3
    USB devise firmwares (hid_mouse etc.) work with the 3.3 V power supply in Harmony 2.06, but they don't in Harmony 3.

    Modification (VBUS check) is needed for drv_usbhs.c in Harmony 3.
     
     
    For example,

    change

    else if (vbusLevel == USBHS_VBUS_VALID) // 333th line from the top in drv_usbjs.c

    to

    else if (vbusLevel >= USBHS_VBUS_BELOW_VBUSVALID)
    .
     
    yts
    post edited by yts - 2019/04/24 01:52:02
    #4
    yts
    Super Member
    • Total Posts : 601
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re: What I noticed in Harmony3 2019/04/24 16:54:40 (permalink)
    0
    #4
    The banner “Launching MPLAB Harmony Configurator” stays on the top of the all other windows and prevents all other windows from filling out forms (see figure).
    post edited by yts - 2019/04/24 16:57:24

    Attached Image(s)

    #5
    yts
    Super Member
    • Total Posts : 601
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re: What I noticed in Harmony3 2019/05/01 15:35:33 (permalink)
    0
    #5
    As for App.c in the  USB device firmwares (hid_mouse etc.), the attribute “CACHE_ALIGN” is needed for USB buffer memories.

    For example, change

    /* Mouse Report */
    MOUSE_REPORT mouseReport __attribute__ ((aligned(16)));
    MOUSE_REPORT mouseReportPrevious __attribute__ ((aligned(16)));

    to

    /* Mouse Report */
    MOUSE_REPORT mouseReport CACHE_ALIGN __attribute__ ((aligned(16)));
    MOUSE_REPORT mouseReportPrevious CACHE_ALIGN __attribute__ ((aligned(16)));

    yts


    post edited by yts - 2019/05/01 15:40:13
    #6
    Tez
    Moderator
    • Total Posts : 480
    • Reward points : 0
    • Joined: 2006/10/04 11:09:05
    • Location: 0
    • Status: offline
    Re: What I noticed in Harmony3 (mainly PIC32MZ2048EFM064) 2019/05/02 20:16:53 (permalink)
    0
    Thank you for posting. This will reviewed and fixed.
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5