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?
(no subject) (by Ahmad sakr )
Thanks for your reply
No hex generated
I do like the pictures in attachment
(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é
(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
(no subject) (by Ahmad sakr )
Thanks Jose
Thanks Igor for new version
It's working good in new version 5410