• AVR Freaks

All Harmony SPI demos fail on a PIC32MZ EF SK

Author
u/chip
Starting Member
  • Total Posts : 38
  • Reward points : 0
  • Joined: 2017/03/27 12:14:09
  • Location: 0
  • Status: offline
2018/10/22 06:26:23 (permalink)
0

All Harmony SPI demos fail on a PIC32MZ EF SK

 


Hi,
I have a PIC32MZ EF Starter Kit, and am trying to get a SPI example from Harmony working.
I am using MPLABX v5.05, XC32 v2.10, and Harmony v2.06.
I tried the spi_loopback and spi_self_loopback projects in the Harmony apps/ folder and they both compile fine but they both fail the demo app with 0xfffffff in the rx buffer.
The only unusual thing I see is the below warning I get every time I program the dev board, but other harmony examples (such as the nvm driver demo) work just fine with the same warning:
"Target Device ID (0x7227053) is an Invalid Device ID. Please check your connections to the Target Device."
 
Any help is very appreciated.
 
#1

2 Replies Related Threads

    muellernick
    Super Member
    • Total Posts : 475
    • Reward points : 0
    • Joined: 2015/01/06 23:58:23
    • Location: Germany
    • Status: offline
    Re: All Harmony SPI demos fail on a PIC32MZ EF SK 2018/10/22 06:34:55 (permalink)
    5 (1)
    Then you don't have the CPU you tell the compiler that you have.
    Double check and with the MZ series, I'd have a very close look at the data sheet for mask revisions and CPU-IDs.
     
    Nick
    #2
    u/chip
    Starting Member
    • Total Posts : 38
    • Reward points : 0
    • Joined: 2017/03/27 12:14:09
    • Location: 0
    • Status: offline
    Re: All Harmony SPI demos fail on a PIC32MZ EF SK 2018/10/22 07:20:42 (permalink)
    0
    Nick,
     
    I had PIC32MZ2048EFM144 selected in project properties instead of PIC32MZ2048EFH144. I corrected that and now it programs without warnings. Thanks for your help.
     
    But the SPI problem is still there: RX data is all 0xFFs..
    post edited by u/chip - 2018/10/22 09:27:21
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5