Helpful ReplyHot!MHC bug in initialize

Author
electronicsgeek
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2014/05/02 03:40:18
  • Location: 0
  • Status: offline
2017/12/01 11:21:24 (permalink)
0

MHC bug in initialize

PIC32MK1024MCF064
Harmony 2.04
Bug 1 : 
 
In the Pin settings : RA0 pin 13 cannot be chosen in the functions to be AN0 . 
 
Bug 2: 
 
drv_adc_static doesnot contain the initialization for Channel 5 although it is selected in the MHC .
 inaddtion : when selecting from the channel 5 analog (class-1) default or alternate input selection , ADHS_Alternate_2_CLASS2_AN6 should be CLASS1 instead.

The 2 bug are 100% correct and i have found workarounds for them , but still it was time consuming to find the problem and should be fixed in the next version .
 
bug 3 :
not necessary as bug , but you can select in the pin settings PIN 47 and PIN 48 (SOSCI and SOSCO) as output , but in reality they will not work , and the data sheet confirms that they cannot be selected as output even if no oscillator to be used . check the attached file
 
hopefully someone will find this helpful
 
regards 
post edited by electronicsgeek - 2017/12/01 13:12:06

Attached Image(s)

#1
MicroDawg
Go for a walk!?
  • Total Posts : 91
  • Reward points : 0
  • Joined: 2015/12/04 15:06:27
  • Location: Chandler, AZ
  • Status: offline
Re: MHC bug in initialize 2017/12/01 15:04:14 (permalink)
0
THANKS!
I have confirmed and logged the first 2 bugs.
#2
jtzeng
Super Member
  • Total Posts : 248
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
Re: MHC bug in initialize 2017/12/01 19:47:02 (permalink)
0
There is also a bug with SPI SCK's.
If the Pin can be used as an Input or Output then for the MK it will only configure it as an input.
This happens on SPI6 and possibly other.
This has been logged by microchip....
 
Also for SPI there is no interrupt code generated in 2.04.
 
 

John Zigrang
JTZ Engineering, Inc.
#3
electronicsgeek
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2014/05/02 03:40:18
  • Location: 0
  • Status: offline
Re: MHC bug in initialize 2017/12/02 01:30:19 (permalink)
0
bug 4 :
SYS_PORT_C_ANSEL : is generated incorrectly RC2 selected Ansel is digital , generated as 1 (analog) , i had to change manually inorder to work as digital input
SYS_PORT_B_TRIS : is generated incorrectly RB9 selected as output , generated as 1 (input) also i had to change manually inorder to work.
#4
electronicsgeek
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2014/05/02 03:40:18
  • Location: 0
  • Status: offline
Re: MHC bug in initialize 2017/12/02 01:30:48 (permalink)
0
bug 4 :
SYS_PORT_C_ANSEL : is generated incorrectly RC2 selected Ansel is digital , generated as 1 (analog) , i had to change manually inorder to work as digital input
SYS_PORT_B_TRIS : is generated incorrectly RB9 selected as output , generated as 1 (input) also i had to change manually inorder to work.
#5
MicroDawg
Go for a walk!?
  • Total Posts : 91
  • Reward points : 0
  • Joined: 2015/12/04 15:06:27
  • Location: Chandler, AZ
  • Status: offline
Re: MHC bug in initialize 2017/12/04 10:27:41 (permalink) ☄ Helpfulby electronicsgeek 2017/12/09 09:31:46
0
I couldn't duplicate either the RC2 or RB9 issue - so it may be fixed for next release (I am trying on latest internal)
 
#6
jcandle
Super Member
  • Total Posts : 218
  • Reward points : 0
  • Joined: 2011/09/19 22:01:53
  • Location: 0
  • Status: offline
Re: MHC bug in initialize 2017/12/07 06:02:23 (permalink)
0
MicroDawg, since you are testing internal, can you check WINC1500 configued with change notice IRQ?
 
2.04 omits the port suffix on the interrupt type macro.  Code won't compile without it.  Once fixed, MHC keeps suggesting t "fix" it (ie break it).
 
Thanks.
#7
Jump to:
© 2017 APG vNext Commercial Version 4.5