• AVR Freaks

Hot!Has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? [SOLVED]

Page: 12 > Showing page 1 of 2
Author
BillP
Super Member
  • Total Posts : 437
  • Reward points : 0
  • Joined: 2014/09/28 07:53:35
  • Location: CA
  • Status: offline
2019/12/06 10:03:16 (permalink)
5 (2)

Has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? [SOLVED]

I already had a Curiosity MZ EF board (version 1.0) and it worked as expected.  The "new" version 2.0 eliminated the MRF24W Wi-Fi chip, changed to the 144-pin MZ chip, updated the on-board debugger to PKoB4, and added some new interfaces (audio, graphics, Xplained Pro, CAN, Arduino Uno).  Sounds good, right?  But wait! the board, as delivered, did not work.

The first step was to get the PKoB4 to work so I can download code developed in MPLAB X 5.30, Harmony v3, XC32 v2.30.  The PKoB4 port could not connect.  I then tried earlier versions of MPLAB X, Harmony, and XC32.  The PKoB4 is "incompatible" with these earlier versions.  Finally, I resorted to the "Recovery Method" described in the 2.0 documentation.  This involves shorting out 2 pads on the board and reloading firmware from MPLAB 5.3 (this recovery did not work on earlier MPLAB X versions - not  sure which versions work, but my guess is 5.x and above).

The recovery worked!

Next, I wanted to test the USB port as a CDC device.  None of my earlier USB tests on Hv2, Hv3, Curiosity 1.0 worked.  The USB port was dead.  I contacted Microchip support for a replacement board thinking it was a hardware problem.  After weeks of support ticket interactions, I got a replacement board and, guess what? it exhibited the exact same behavior as the original 2.0 board.  The PKoB4 port did not work, so I had to execute the recovery method on that board also but then the USB port still did not work.  

BTW - there are no demo examples for this new 2.0 board, but I was able to compile and load the single com port demo in the Hv3 usb/apps directory.  That did not work either.

However, this time, I noticed the LED light on the USB hub I was using was blinking when I downloaded a USB test program.  The light stopped blinking when I hit the reset switch and started when the program executed, so now I believe it is a software problem.  By this point, my support ticket has been given to some other internal group for more investigation.  This has been ongoing for a month, so now I am going to this forum for help.

Has anyone been able to get the USB port to work on the Curiosity 2.0 MZ EF board?

Yesterday I was able to trace the source of the blinking LED to a register setting in the usbhs register.  I am deep into the guts of the USB stack and interrupt logic.  With no documentation it is difficult to know where any of the debugging leads.  Are there any Harmony USB stack experts out there that can help?  Thanks.


post edited by BillP - 2020/01/23 13:54:17
#1

32 Replies Related Threads

    clip
    MCU32 Applications
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2015/08/11 11:27:23
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/11 11:36:44 (permalink)
    0
    Hi Bill,
     
    I know that you are working on a CDC application; however,  I have a Harmony 3 PIC32 MZ EF Curiosity 2 configuration of usb_speaker, which I can send you.  It will run out of the box.  It was generated with the upcoming version of the Harmony 3 core/csp repos, but the configuration should also generate with the current release versions of core/csp and still work.
     
    Regards,
    Chuck
    #2
    BillP
    Super Member
    • Total Posts : 437
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/11 14:58:29 (permalink)
    0
    Hi Chuck,
    I would very much like to see your usb_speaker demo.  Hopefully there will be a clue to fix my CDC problem. Let me know how I can run the project or at least look at some source code.
     
    BTW - my project works on the Curiosity 1.0 PIC32MZ board with Hv3.
     
    Bill
    #3
    ibbro
    Junior Member
    • Total Posts : 91
    • Reward points : 0
    • Joined: 2015/10/22 07:34:56
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/15 16:34:18 (permalink)
    0
    Have you remapped pins for the 144pin chip? I've got the Curiosity 2's on the way and looking through sample projects I'm not seeing they are supported in Harmony V3 samples, so I expect to be turning off the BSP and manually mapping pins to use the boards with any sample code. I'll let you know what happens, should have them in a couple of days.
    #4
    BillP
    Super Member
    • Total Posts : 437
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/15 17:50:13 (permalink)
    0
    Yes, I remapped the pins for the 144-pin device.  My code works on the Curiosity 1.0 board (100-pin MZ chip).  I used the Pin Settings to map the 4 switches and 7 LEDs.  I did not use (or even load) the BSP. 
     
    On another note: I have had two Dev2.0 boards on which the debug port did not work on arrival (could not connect through  MPLAB X).  On both boards I had to follow the recover method described in the 2.0 documentation.  I'd be interested if the board you receive has the same problem.
    BillP
    #5
    ibbro
    Junior Member
    • Total Posts : 91
    • Reward points : 0
    • Joined: 2015/10/22 07:34:56
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/15 18:29:52 (permalink)
    0
    I've also got the original Curiosity and it has worked well, I just needed some pins that are now available on the new Curiosity 2 to keep coding until we get far enough to invest in a prototype. I was hoping it wouldn't turn into the usual new Microchip development product disaster. I have seen the 'recovery' doc. I'll keep you posted.
    ibb
    #6
    JPortici
    Super Member
    • Total Posts : 1208
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/15 23:32:23 (permalink)
    0
    clip
    Hi Bill,
     
    I know that you are working on a CDC application; however,  I have a Harmony 3 PIC32 MZ EF Curiosity 2 configuration of usb_speaker, which I can send you.  It will run out of the box.  It was generated with the upcoming version of the Harmony 3 core/csp repos, but the configuration should also generate with the current release versions of core/csp and still work.
     
    Regards,
    Chuck




    hi chuck, do you have an ETA for when the update will be public? when i asked for usb-audio support on PIC32  support told me january-march
    #7
    clip
    MCU32 Applications
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2015/08/11 11:27:23
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/16 11:15:53 (permalink)
    0
    Yes,   the update will be live sometime in January.   In the meantime, you can use this link for the PIC32 MZ EF Curiosity 2 project configuration of usb_speaker (48Khz/16 bit playback) below:
     
     usb_speaker_191212
     
    The project works with the current release and will work out of the box.
     
     
    The new release in January will also include usb_speaker_hi_res for 96Khz/24 bit playback.
     
    Chuck
    #8
    ibbro
    Junior Member
    • Total Posts : 91
    • Reward points : 0
    • Joined: 2015/10/22 07:34:56
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/19 11:36:29 (permalink)
    0
    Got 2 of the Curiosity 2.0 cards in. I haven't done much with them yet but they both program and run the 1st Harmony example I tried, single port cdc com port device. I did not have to do the 'recovery method' on either one.
    -IB
    #9
    BillP
    Super Member
    • Total Posts : 437
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/19 13:01:58 (permalink)
    0
    Great news!  I'll order another one and, hopefully, it will work as expected.  Did you order it from MicrochipDirect or someone else?
    #10
    ibbro
    Junior Member
    • Total Posts : 91
    • Reward points : 0
    • Joined: 2015/10/22 07:34:56
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/19 13:45:06 (permalink)
    0
    They came from Digikey. Good luck!
     
    #11
    clip
    MCU32 Applications
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2015/08/11 11:27:23
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/23 10:20:05 (permalink)
    0
    The link I provided before needed to be regenerated.  Please use the link below:
     
    usb_speaker_191223
     
    This will be included in the new release V3.5.0 in January.
     
    The new release in January will also include usb_speaker_hi_res for 96Khz/24 bit playback and usb_speaker_bass_boost demonstrating the usage of the new DSP libraries to filter the audio (it also includes a PIC32 MZ EF Curiousity 2  configuration).
     
    Regards,
     
    Chuck
    post edited by clip - 2019/12/26 12:22:00
    #12
    BillP
    Super Member
    • Total Posts : 437
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/29 18:16:08 (permalink)
    0
    @ibbro - I received a new Curiosity Dev 2.0 board from Digikey.  It does not work either.  I tried the single port cdc com port device demo with and without using MHC to auto-generate the code.  Attached are the screen shots I see.
     
    NEW INFO!  I just received this update from Microchip Support.
    The tools team have informed me that this issue is mainly related to MPLAB X, and they anticipate fixing it in the next version release. Previously, the workaround for getting the ports to function properly was to implement the project in v5.20. In the meanwhile, our internal team is currently looking into this problem with Curiosity 2.0 Development board. Therefore, unfortunately, as of now the only course of action is to wait the next release of the IDE if you intend to continue working on your application using the Curiosity 2.0 Development board.
     
    From Micrchip Support
    The tools team have informed me that this issue is mainly related to MPLAB X, and they anticipate fixing it in the next version release. Previously, the workaround for getting the ports to function properly was to implement the project in v5.20. In the meanwhile, our internal team is currently looking into this problem with Curiosity 2.0 Development board. Therefore, unfortunately, as of now the only course of action is to wait the next release of the IDE if you intend to continue working on your application using the Curiosity 2.0 Development board.
     
    We really apologize for not being able to provide you any other solution at this time.
     
     
     Now I am really confused. @ibbro says the board works for him and MC Support says it won't work. WTF???
    post edited by BillP - 2019/12/29 18:24:56

    Attached Image(s)

    #13
    clip
    MCU32 Applications
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2015/08/11 11:27:23
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/30 10:59:04 (permalink)
    0
    Make sure the project target is PIC32MZ2048EFM144. 
     
    MPLAB X IDE v2.30 is now available for download here.  This will work with the PKOB4 debugger on the PIC32 MZ EF Curiousity 2.
     
    Regards,
     
    Chuck
    #14
    BillP
    Super Member
    • Total Posts : 437
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/30 12:43:19 (permalink)
    0
    The EFM chip is already on the Dev 2.0 board -- can't change it.

    I assume you meant MPLAB X IDE v5.30, and yes that is the version I am using (see my first post for all the tool versions I used).

    The PKoB4 debugger on the Dev 2 board does NOT work (see the attachments to my previous posts).  This was an out-of-the-box test.

     

    According to the Support response in my previous post, the Dev 2 board will not work until the next IDE update.



    #15
    clip
    MCU32 Applications
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2015/08/11 11:27:23
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/30 14:06:27 (permalink)
    0
    Hi Bill,
     
    The only way you get the "Target Device ID ..." error is if the target set for the project is not the same as what is on the board.  The Curiousity 2 boards uses the PIC32MZ2048EFM144.   Some of the demonstration projects in Harmony have the PIC32MZ2048EFH144, which is what the old  PIC32MZ EF starter kit used.  This needs to be changed.  The V5.30 Release of MPLAB-X is working fine for me using the "..EFM.." target.
     
    However,  you may have the ..EFH.." set for the project.
     
    Regards,
    Chuck
    #16
    BillP
    Super Member
    • Total Posts : 437
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/30 17:21:21 (permalink)
    0
    Nope.  That's not the problem.  I checked the Curiosity MZ EF (dev 1) board and it has a PICMZEF2048EFM-100 chip and a PIC24FJ256 debugger port chip.
    Both of the Curiosity MZ EF (dev 2) boards have a PIC32MZEF2048EFM-144 chip and an ATMEL ATSAME70N21 debugger port chip (PKoB4).
     
    On my first Dev 2 board I did the recovery method and then the debugger port talked with my MacOS MPLAB X 5.30.  I am running MacOS v10.14.6. 
     
    I am doing something incredibly stupid or there is a very subtle problem here that allows you to run on the Dev 2 board but does not work for me.  Also how do you explain the comment from the Support Group that was sent to me on my trouble ticket (Case # 00475409 )?
     
    #17
    ric
    Super Member
    • Total Posts : 29006
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2019/12/30 17:42:40 (permalink)
    0
    BillP
    Nope.  That's not the problem.  I checked the Curiosity MZ EF (dev 1) board and it has a PICMZEF2048EFM-100 chip and a PIC24FJ256 debugger port chip.
    Both of the Curiosity MZ EF (dev 2) boards have a PIC32MZEF2048EFM-144 chip and an ATMEL ATSAME70N21 debugger port chip (PKoB4).

    That is what clip is saying.
    The boards have the EFM chip installed, but the Harmony projects have the EFH chip selected.
    It worked for him when he changed the project to EFM
     

    I am doing something incredibly stupid or there is a very subtle problem here that allows you to run on the Dev 2 board but does not work for me. 

    You seem not to be reading his replies correctly.

    Also how do you explain the comment from the Support Group that was sent to me on my trouble ticket (Case # 00475409 )?

    Wouldn't be the first time they've made a mistake.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #18
    clip
    MCU32 Applications
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2015/08/11 11:27:23
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2020/01/02 10:17:24 (permalink)
    0
    ric is correct on all counts.Smile: Smile   Just look at your project properties and make sure the device is set to PIC32MZ2048EFM144.
    #19
    josepsar
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2017/08/05 03:20:39
    • Location: 0
    • Status: offline
    Re: I'm curious - has anyone been able to get the Curiosity 2.0 PIC MZ EF Board to work? 2020/01/17 11:33:04 (permalink)
    0
    Verify the configuration of the primary oscillator, in curiosity 2.0 it is 12MHz.

    In most of the examples I've seen, it's set to 24MHz.

    This causes the USB frequency not to correspond, ....

    Performing tests with USART, the baud rate is half of that configured ...



    I'm sorry for my English.

     
     




     
     
     



    Abrir en el Traductor de Google 
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5