Hot!SPI rxBuffer always 0xFF, using all Harmony examples and a Microchip dev board

Author
u/chip
Starting Member
  • Total Posts : 36
  • Reward points : 0
  • Joined: 2017/03/27 12:14:09
  • Location: 0
  • Status: offline
2018/10/22 05:49:48 (permalink)
0

SPI rxBuffer always 0xFF, using all Harmony examples and a Microchip dev board

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

3 Replies Related Threads

    u/chip
    Starting Member
    • Total Posts : 36
    • Reward points : 0
    • Joined: 2017/03/27 12:14:09
    • Location: 0
    • Status: offline
    Re: SPI rxBuffer always 0xFF, using all Harmony examples and a Microchip dev board 2018/10/22 06:21:49 (permalink)
    0
    Just realized this is in the wrong forum. Will move it to the 32bit microcontrollers forum.
    #2
    NorthGuy
    Super Member
    • Total Posts : 5309
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: SPI rxBuffer always 0xFF, using all Harmony examples and a Microchip dev board 2018/10/22 07:17:19 (permalink)
    +2 (2)
    7227 is the id for PIC32MZ2048EFH144. I guess that's the chip you use. You need to make sure that exactly this chip is selected in your MPLAB X project before you compile your code.
    #3
    u/chip
    Starting Member
    • Total Posts : 36
    • Reward points : 0
    • Joined: 2017/03/27 12:14:09
    • Location: 0
    • Status: offline
    Re: SPI rxBuffer always 0xFF, using all Harmony examples and a Microchip dev board 2018/10/22 09:38:55 (permalink)
    +1 (1)
    Thanks North Guy. I fixed the device ID in my project properties and the warning is now gone, but that didn't help with my SPI demo failure..
    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5