soft_i2c library broken

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
Donald Shimoda
Posts: 553
Joined: 27 Feb 2006 17:00
Location: Argentina
Contact:

soft_i2c library broken

#1 Post by Donald Shimoda » 12 Mar 2009 17:29

Code: Select all

program soft_i2c;

{ Declarations section }

var Soft_I2C_Scl               : sbit at RC3_bit;
var Soft_I2C_Sda               : sbit at RC4_bit;
var Soft_I2C_Scl_Pin_Direction : sbit at TRISC3_bit;
var Soft_I2C_Sda_Pin_Direction : sbit at TRISC4_bit;
// End of Soft_I2C pinout definition

begin
  { Main program }
  Soft_I2C_Init();
end.
compiler output:

0 1 mPPic.exe -DBG -pP18F8722 -MSF -Y -DL -O11111114 -fo40 -N"C:\tempwork\soft_i2c_broken\soft_i2c.mpppi" -SP"C:\Archivos de programa\Mikroelektronika\mikroPascal PRO for PIC\defs\" -SP"C:\Archivos de programa\Mikroelektronika\mikroPascal PRO for PIC\uses\P18\" -SP"C:\tempwork\soft_i2c_broken\" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_SoftI2C.mcl" "soft_i2c.mpas"
0 132 Compilation Started C:\TEMPWORK\SOFT_I2C_BROKEN\soft_i2c.mpas
1 1015 Hint: Compiling unit "C:\TEMPWORK\SOFT_I2C_BROKEN\soft_i2c.mpas" soft_i2c.mpas
14 1010 Hint: Unit "soft_i2c.mpas" has been recompiled soft_i2c.mpas
0 133 Compiled Successfully C:\TEMPWORK\SOFT_I2C_BROKEN\soft_i2c.mpas
0 137 All files Compiled in 301 ms
0 359 Unresolved extern 'Soft_I2C_Sda_Direction' __Lib_SoftI2C.mpas
0 359 Unresolved extern 'Soft_I2C_Scl_Direction' __Lib_SoftI2C.mpas
0 451 Unsuccessful linking 'SOFT_I2C.mpppi' Unsuccessful linking 'SOFT_I2C.mpppi'
0 102 Finished (with errors): 12 Mar 2009, 11:21:43 soft_i2c.mpppi
Donald Shimoda.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#2 Post by yo2lio » 12 Mar 2009 17:40

Ha, try this :

Code: Select all

program soft_i2c;

{ Declarations section }

var Soft_I2C_Scl               : sbit at RC3_bit;
var Soft_I2C_Sda               : sbit at RC4_bit;
var Soft_I2C_Scl_Direction : sbit at TRISC3_bit;
var Soft_I2C_Sda_Direction : sbit at TRISC4_bit;
// End of Soft_I2C pinout definition

begin
  { Main program }
  Soft_I2C_Init();
end.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Donald Shimoda
Posts: 553
Joined: 27 Feb 2006 17:00
Location: Argentina
Contact:

#3 Post by Donald Shimoda » 12 Mar 2009 18:10

yo2lio wrote:Ha, try this :
Work.

Then please correct the documentation.

TIA
Donald Shimoda.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

#4 Post by filip » 16 Mar 2009 11:07

Thanks for reporting this, it will be corrected.

Regards,
Filip.

BiW
Posts: 2
Joined: 25 Dec 2009 19:29

#5 Post by BiW » 25 Dec 2009 19:31

filip wrote:Thanks for reporting this, it will be corrected.

Regards,
Filip.
Its still not corrected in mikropascal pro for avr 2.10.

User avatar
nikola.kostic
mikroElektronika team
Posts: 433
Joined: 11 Aug 2009 12:12

#6 Post by nikola.kostic » 28 Dec 2009 16:13

BiW wrote:Its still not corrected in mikropascal pro for avr 2.10.
Thank you for the note. I have reported it and it will be fixed.

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”