• AVR Freaks

PIC32MZ/MEB II Demo with Harmony V3

Author
mjolhe01
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2019/08/28 08:00:56
  • Location: 0
  • Status: offline
2019/09/11 08:33:00 (permalink)
5 (2)

PIC32MZ/MEB II Demo with Harmony V3

I am using the PIC32MZ demo board (DM320008) with the MEB-II 4.3" display board (DM320005-5) and ran into a couple of bugs/fixes that I reported I thought I would note them here as well in case anyone gets stuck like I did:
 
1)  If you use Harmony to generate files for a new project to use in this demo, it sets the PMD1 register in plib_clk.c like this
     /* Peripheral Module Disable Configuration */
      PMD1 = 0xffffffff;
 
     For whatever reason, the processor gets hung up here and goes out to lunch. 
 
     It needs to be changes to this. The pre-configured apps appear to already have this custom code implemented. 
    /* Peripheral Module Disable Configuration */
    //CUSTOM CODE - DO NOT MODIFY OR REMOVE!!
    //PMD1, bit 28 must be 0 for MZ DAA/DAB
        PMD1 = 0xefffffff;
    //END OF CUSTOM CODE
 
2)  For the Aria_Adventure demo (and maybe more of the demos) the I2C baud rate generator value (I2C1BRG) was set to 43, which creates a clock of >1GHz. The touch screen controller was not responding. I changed it to 993, which knocked the baud rate down to 50KHz, which is what the demo appears to be targeting. I also observed that changing the baud rate frequency in the configurator would not update this register properly. 
#1

0 Replies Related Threads

    Jump to:
    © 2019 APG vNext Commercial Version 4.5