• AVR Freaks

Harmony Hello World App Has Peculiar Output

Author
davidbitton
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2018/02/02 09:11:58
  • Location: 0
  • Status: offline
2018/02/09 09:44:04 (permalink)
0

Harmony Hello World App Has Peculiar Output

I'm new to the platform, so I followed the ubiquitous Hello World example here. The output however doesn't quite match the expected. Take a look at this:
 
 
 
It looks almost looks like a timing issue. I am using the PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family Starter Kit (DM320007-C). What shall I look for that could be causing this? Thanks!
#1
Michael.W.Mann
Super Member
  • Total Posts : 323
  • Reward points : 0
  • Joined: 2011/01/24 09:58:24
  • Location: Chandler, Arizona
  • Status: offline
Re: Harmony Hello World App Has Peculiar Output 2018/02/09 10:32:39 (permalink)
0
First,  you need to provide more information about:
1) What operating system?  (It looks like you are on Linux.)
2) What version of Harmony?
3) What version of MPLAB.X?
4) What version of XC32 compiler?
5) What project are you using?  Did you write it from scratch?
 
I would recommend you follow the steps in Creating Your First Project (Harmony 2.04 or 2.05), Volume 1 of the Help.
 
It looks like you are using a USB interface to provide output.  It could be your Linux driver.
 
 

Michael W. Mann
Principal Applications Engineer
MCU32 Applications, Microchip
#2
davidbitton
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2018/02/02 09:11:58
  • Location: 0
  • Status: offline
Re: Harmony Hello World App Has Peculiar Output 2018/02/09 12:16:08 (permalink)
0
1) macos High Sierra 10.13.3
2) 2.05
3) 4.10
4) 2.05
5) 32-bit MPLAB Harmony Project
 
The steps came from this:
 
http://ww1.microchip.com/...eviceDoc/90003177A.pdf
#3
Michael.W.Mann
Super Member
  • Total Posts : 323
  • Reward points : 0
  • Joined: 2011/01/24 09:58:24
  • Location: Chandler, Arizona
  • Status: offline
Re: Harmony Hello World App Has Peculiar Output 2018/02/09 12:27:09 (permalink)
0
Harmony 2.05 requires XC32 V1.44 with the V1.44(B) part support patch installed.  It also requires the MHC V2.0.5 plug in.  Be sure these are part of your installation.
 
I wrote the "Creating Your First Project" tutorials in Harmony 2.05.  The document you site basically follows the instructions of my tutorial's Part 1.  I haven't had any problems like the ones you mention above, but then I'm not working on a Mac.  I've also used the Byte Model support in the USART driver and enabled Blocking Mode to make things a simply as possible.  In my Tutorial I use a static Console System Service not dynamic.
 
I've seen byte errors on my Hyperterminal app, but they are very rare and I'm running at 115200 baud, not 9600.   

Michael W. Mann
Principal Applications Engineer
MCU32 Applications, Microchip
#4
davidbitton
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2018/02/02 09:11:58
  • Location: 0
  • Status: offline
Re: Harmony Hello World App Has Peculiar Output 2018/02/09 12:52:00 (permalink)
0
Much better. I changed the console service mode to STATIC and the USART driver to STATIC, Byte Model Support, Blocking Operation.  Results with _one_ button press:
 

 
looks like the desired result.
#5
Jump to:
© 2019 APG vNext Commercial Version 4.5