Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Help in i2c

(you are viewing a thread; or go back to list of threads)

Help in i2c (by Ahmad sakr )
to jose
using ldmicro 5405 at atmega 328
there are 2 problem
first problem gcc path

my path is C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.3.2.31\AVRToolchain
which line i modify please ?
::SET GCC_PATH=%ProgramFiles%\Atmel\AVR-Gcc-8.2.0
SET GCC_PATH=%ProgramFiles%\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.3.2.31\AVRToolchain
::SET GCC_PATH=%ProgramFiles%\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain
::SET GCC_PATH=%ProgramFiles%\Arduino\hardware\tools\avr\bin
::SET GCC_PATH=%ProgramFiles%\Labcenter Electronics\Proteus 8.7 SP3 Professional\Tools\ARDUINO\hardware\tools\avr\bin
::SET GCC_PATH=%ProgramFiles%\Labcenter Electronics\Proteus 8 Professional\Tools\ARDUINO\hardware\tools\avr\bin
::SET GCC_PATH=D:\01 - Programas Plc\Atmel\AVR-Gcc-8.2.0
::SET GCC_PATH=D:\01 - Programas Plc\Arduino 1.8.0\hardware\tools\avr
::SET GCC_PATH=D:\WinAVR
::SET GCC_PATH=c:\WinAVR-20100110
::SET GCC_PATH=c:\avr-gcc-9.1.0-x64-mingw
::SET GCC_PATH=c:\avr8-gnu-toolchain-win32_x86

second problem i2c name
when using i2c name it gives error invalid i2c name in ladder
but when using i2c1 no error and good assignment for sda and scl pins
to Edit buildAvr.bat and modify GCCPATH to my avr-gcc path
which name should be used?
Wed Mar 17 2021, 12:04:35
(no subject) (by José)
Hi Ahmad

:: is a comment maker in batch files.
Thus the line to modify is the (only) one not starting with ::
and containing SET GCC_PATH

You must have a "bin" subdirectory containing "avr-gcc.exe" in the directory provided as GCC_PATH
Thu Mar 18 2021, 16:08:36
(no subject) (by Ahmad sakr )
Thanks for your reply
No hex generated
I do like the pictures in attachment
Thu Mar 18 2021, 19:35:08, download attachment New folder (2).rar
(no subject) (by José)
OK

1) You must remove \bin at the end or your GCC_PATH because it's
in PATH (below) yet

Try like that ; if it still doesn't work:

2) In your gcc bin directory I can only see "avr32-gcc.exe".
If no "avr-gcc.exe" as previously said, you should replace all occurences of the latter by the former in your bat file. And do the same with "avr-objcopy.exe"

PS:
You can remove all other commented (::) definitions of GCC_PATH
in your bat file. It'll be more clear to read.

José
Fri Mar 19 2021, 03:37:22
(no subject) (by Ahmad sakr )
I deleted bin and uncomment gcc definition as you toldmebut Still no hex
Also in gcc bin directory ,there is avr-gcc.exe
It work good in version 5310
Fri Mar 19 2021, 13:49:27
(no subject) (by José)
Can you attach the full output of your bat file to understand the error ? (black window content)
Fri Mar 19 2021, 16:11:45
(no subject) (by Ahmad sakr )
Thanks Jose
Thanks Igor for new version
It's working good in new version 5410
Fri Mar 19 2021, 16:11:57
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):