• AVR Freaks

Helpful ReplyHot!BUG: Harmony3 I²C3 and I2C driver

Author
Bodo2407
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2019/09/26 07:06:53
  • Location: 0
  • Status: offline
2019/11/08 06:03:00 (permalink)
0

BUG: Harmony3 I²C3 and I2C driver

Hi.
Here is another bug. Steps to reproduce:
Create new Harmony3 project.
Use PIC32MX795F512L
Add I²C driver to your project graph.
Add Peripherals->I2C->I2C3
Connect the peripheral to the driver.
Press build.
 
It won't build.
 
The failure you get is:
../src/config/default/initialization.c:140:44: error: 'I2C3_IRQn' undeclared here (not in a function)
 
The corresponding row in initialization.c looks like this:
    .intSources.i2cInterrupt             = I2C3_IRQn,
If you choose other peripherals than I2C3 (i.e. I2C2) it will build. I did not try all the peripherals, but unfortunately it is on my physical board connected to this interrface.
 
What can be done to correct that?
 
PS: MPLAB X IDE v5.25
XC32 v2.00
Harmony v.3.5.0
 
PPS: I am really getting annoyed by Harmony, it seems full of bugs  and it does the opposite of it's intention: I need much more time to get a system running in Harmony, than in plain old standard code wrtitten by myself. It is simply a mess and I am extremly unsatisfied with the way things went since the introduction of Harmony.
post edited by Bodo2407 - 2019/11/08 06:04:40
#1
vgandhi
Starting Member
  • Total Posts : 14
  • Reward points : 0
  • Joined: 2016/10/24 21:28:35
  • Location: 0
  • Status: offline
Re: BUG: Harmony3 I²C3 and I2C driver 2019/11/15 03:21:02 (permalink) ☄ Helpfulby Bodo2407 2019/11/15 05:06:39
0
You can replace the interrupt source information for the I2C Driver Instance 0 in the initialization.c file as shown below:
 
const DRV_I2C_INTERRUPT_SOURCES drvI2C0InterruptSources =
{
    /* Peripheral has more than one interrupt vector */
    .isSingleIntSrc = false,

 

    /* Peripheral interrupt lines */
    .intSources.multi.i2cInt0 = _I2C3_BUS_IRQ,
    .intSources.multi.i2cInt1 = _I2C3_MASTER_IRQ,
    .intSources.multi.i2cInt2 = -1,
    .intSources.multi.i2cInt3 = -1,
};

 
A ticket has been raised and the same will be fixed in the next release.
post edited by vgandhi - 2019/11/15 03:22:03
#2
Bodo2407
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2019/09/26 07:06:53
  • Location: 0
  • Status: offline
Re: BUG: Harmony3 I²C3 and I2C driver 2019/11/15 05:06:12 (permalink)
0
Thank you!
#3
Jump to:
© 2020 APG vNext Commercial Version 4.5