• AVR Freaks

Helpful ReplyHot!Harmony errror undefined reference to `DRV_I2C_MasterStart'

Author
sanket.meher111
Starting Member
  • Total Posts : 68
  • Reward points : 0
  • Status: offline
2018/03/31 03:02:50 (permalink)
5 (1)

Harmony errror undefined reference to `DRV_I2C_MasterStart'

hi,
 
   I have generated static I2C driver in harmony.
   I am trying to use DRV_I2C_MasterStart function in app.c but getting error  undefined reference to `DRV_I2C_MasterStart'
  Function is declared in drv_i2c_compatibility.h
  I had included above file still getting error as undefined
 
please help.......
#1
Paul PortSol
Super Member
  • Total Posts : 471
  • Reward points : 0
  • Joined: 2015/07/03 11:52:03
  • Location: Newfoundland, Canada
  • Status: offline
Re: Harmony errror undefined reference to `DRV_I2C_MasterStart' 2018/04/03 08:24:34 (permalink) ☄ Helpfulby DominusT 2019/07/24 06:50:10
0
Static I2C is flagged as incomplete in Harmnony release notes.
Try the "Dynamic" implementation, and if PIC32MZ then the BitBang option.
 
What versions are you using: Harmony, MHC, XC32, MPLABX, PIC32 ?
Consider using the newest of everything.
 
#2
sanket.meher111
Starting Member
  • Total Posts : 68
  • Reward points : 0
  • Status: offline
Re: Harmony errror undefined reference to `DRV_I2C_MasterStart' 2018/04/03 22:39:03 (permalink)
0
Harmony version v2.05.01, XC32 version V1.44,MPLABX 4.05 and PIC32MX250F256H
#3
ascmartins
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2014/01/22 22:10:17
  • Location: 0
  • Status: offline
Re: Harmony errror undefined reference to `DRV_I2C_MasterStart' 2018/08/27 05:47:20 (permalink)
0
Hi sanket. Did you find the solution? I have the same issue.
#4
Paul PortSol
Super Member
  • Total Posts : 471
  • Reward points : 0
  • Joined: 2015/07/03 11:52:03
  • Location: Newfoundland, Canada
  • Status: offline
Re: Harmony errror undefined reference to `DRV_I2C_MasterStart' 2018/08/29 07:32:53 (permalink)
0
What do you need DRV_I2C_MasterStart for?
 
I use:
- DRV_I2C_Open
- DRV_I2C_Transmit/DRV_I2C_TransmitThenReceive/DRV_I2C_Receive
- DRV_I2C_TransferStatusGet
 
Highly suggest using [MHC - App Config - Generate application code - Drivers - I2C] and generating a separate project with I2C code for your PIC with the options you need. It will show proper includes, init, functions, and styles for your MCU. Then you can copy only required bits to your project.
 
Paul
#5
_edx_
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2016/09/21 11:56:28
  • Location: 0
  • Status: offline
Re: Harmony errror undefined reference to `DRV_I2C_MasterStart' 2018/09/28 13:26:39 (permalink)
0
Perhaps this could help you:
 
https://www.youtube.com/watch?v=RM2Ayvd9258
#6
Jump to:
© 2019 APG vNext Commercial Version 4.5