AVR Toolchain Reinstallation

For general Flowcode discussion that does not belong in the other sections.
felixegger
Posts: 48
http://meble-kuchenne.info.pl
Joined: Wed Feb 24, 2021 1:20 pm
Been thanked: 2 times

AVR Toolchain Reinstallation

Post by felixegger »

Unfortunately I've lost the AVR Toolchain, which is part of my Licence.
Now I have tried to reinstall it but I was nor successful.
It shows either - AVR Toolchain is not installed
or - You do not have the Licence to perform this action
What shall I do now ?
Thanks for help

Steve-Matrix
Matrix Staff
Posts: 1550
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 214 times
Been thanked: 362 times

Re: AVR Toolchain Reinstallation

Post by Steve-Matrix »

Did you try to install the AVR toolchain download that is available as a download from your Flowcode account page?
https://www.flowcode.co.uk/accounts/

In what way was is unsuccessful? Did you get error messages during the installation process?

After installing that toolchain, you should run Flowcode and open the global options. In the "locations" tab, there will be a list of the installed toolchains and your AVR installation should be listed. If it is not listed there, you can enter the correct location manually.

Hopefully that will solve your problem. Please let me know if it doesn't.

felixegger
Posts: 48
Joined: Wed Feb 24, 2021 1:20 pm
Been thanked: 2 times

Re: AVR Toolchain Reinstallation

Post by felixegger »

ImageThanks
Now I did exactly step by step as you suggested. I can see under Global Settings Location that the AVR Toolchain is installed properly now. But when I try to send under Build a AVR file to the target, then appear the message :
You do not have the licence to perform this action.
Please help again
Thanks

Steve-Matrix
Matrix Staff
Posts: 1550
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 214 times
Been thanked: 362 times

Re: AVR Toolchain Reinstallation

Post by Steve-Matrix »

Which chip are you using as your target? And what licences are shown in the "Licensing" screen?

felixegger
Posts: 48
Joined: Wed Feb 24, 2021 1:20 pm
Been thanked: 2 times

Re: AVR Toolchain Reinstallation

Post by felixegger »

My Target is a ATMEGA 168
and my Lizence No is 38396505 wich includes the AVR and the RPI Toolchain.
Thanks for help

DavidA
Site Admin
Posts: 25
Joined: Wed Aug 05, 2020 10:07 am
Been thanked: 3 times

Re: AVR Toolchain Reinstallation

Post by DavidA »

I would advise that you reinstall Flowcode, the error message should not change between two different ones.

Your licence does have AVR added, you can try reapplying your licence by going to "Licensing >> Manage" and typing in your username and password again. Then if you go to "Licensing >> View" you should see the AVR as being added.

As for the toolchain not being installed, i would advise you uninstall all versions of the AVR tool chain (there are two, v8 and v9 versions). Using Program removal via Windows. Then reinstalling the AVR Toolchain downloaded here:

https://flowcode.co.uk/download/file/do ... _AVRv5.msi

felixegger
Posts: 48
Joined: Wed Feb 24, 2021 1:20 pm
Been thanked: 2 times

Re: AVR Toolchain Reinstallation

Post by felixegger »

Now I have a new situation after having removed the AVR Toolchain and reinstalled it again. Now I get the error message :

avrdude.exe: Error: Could not find USBtiny device (0x1781/0xc9f)
avrdude.exe done. Thank you.

after having given the command to compile my AVR file to the target.

I do not dare to completely reinstall the Flowcode file, because a had a very big job till it was working properly especially together with ESP devices.
Thanks

Steve-Matrix
Matrix Staff
Posts: 1550
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 214 times
Been thanked: 362 times

Re: AVR Toolchain Reinstallation

Post by Steve-Matrix »

It sounds like the original issue has been solved - you can now compile ok. The error reported by avrdude is indicating it cannot find your USBtiny device, so perhaps it is not connected, or the parameters to avrdude are wrong.

Can you please post the complete msg.txt file.

felixegger
Posts: 48
Joined: Wed Feb 24, 2021 1:20 pm
Been thanked: 2 times

Re: AVR Toolchain Reinstallation

Post by felixegger »

Target folder: D:
Source name: D:\AVR.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA168
Generated by: Flowcode v9.1.0.27
Date: Tuesday, June 29, 2021 13:58:04
Users: 1
Registered to: felixegger (38396505)
Licence key: JMA9BD
NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using <E-Blocks> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avra.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" atmega168 "D:\AVR.elf" "D:\AVR.c" "D:\AVR.lst"

D:\>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B690411241251B4A05C2B5828F4452C9F7348705C640EF477B79E0C7881D2E5EEC9BD6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D7958998291880A09BBE74CF7BA3F4E37F13004EE3637760F1F0B7DA0CC623CD30E3C7D6BAB4C3FE6151D92B8EC0ADD55E96639DAC02472BDE3806EF43AE3A028BD32A5DAE68BB191DA97CB6883A66D3C41849952BB2DD264AF32733E2C3050DA273BE4EEFF12703F3DAF67B119A5A5B069403B38249A6C4D8A1304B09A437E7E2D43FD26DF891DB3086C82D6

D:\>REM REVISION: 1.0

D:\>REM GUID: EA0828B2-5C70-41A5-8C54-F359DD5CC88B

D:\>REM DATE: 29\03\2021

D:\>REM DIR: FCD\AVR\batchfiles\avra.bat

D:\>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-gcc.exe" -mmcu=atmega168 -Os -ffunction-sections -fdata-sections -funsigned-char -o "D:\AVR.elf" "D:\AVR.c" -lm -Wl,-gc-sections

D:\>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-objdump.exe" -S "D:\AVR.elf" 1>"D:\AVR.lst"

D:\>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-size.exe" -B -d "D:\AVR.elf"
text data bss dec hex filename
256 0 0 256 100 D:\AVR.elf

Compilation successful!

Using <E-Blocks> inbuilt settings for linker
Launching the linker/assembler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avrb.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" "D:\AVR.elf" "D:\AVR.hex" "D:\AVR.cof"

D:\>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B69041F19754DEA3580B6825E5D6A5C09874F305C640EF477B79E0C7881D2E5EEC9BD6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D795899824EF872725113B645F175A82BBF7DF194C31451F662291FA2302B8E00B0793B98DE54674FED6890F09D29E6D6AF5F4CDA2A0B069D1A731E4BF7CAEBD6A00B6313A3554E78FBF27EB2E2AB377A2B2C9B1D3B75C13EB27ADD422C3050DA273BE4EE0394535DE0D901F49597144CF394E33BC8A5C5ECC46A5F0EA3E761B0B04467EFC0CE2C344F21BA45

D:\>REM REVISION: 1.0

D:\>REM GUID: C4F77EBB-EDB0-4261-B01E-F0B1AB94E03A

D:\>REM DATE: 29\03\2021

D:\>REM DIR: FCD\AVR\batchfiles\avrb.bat

D:\>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-objcopy" -O ihex -R .eeprom "D:\AVR.elf" "D:\AVR.hex"

HEX file creation successful!

Using <E-Blocks> inbuilt settings for programmer
Launching the programmer...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avrc_usbtiny.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" AVRDUDE m168 atmega168 "D:\AVR.hex" "AVR.hex" 0 3 255 255 255

D:\>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B69041072C26934F62BA2AD18E3139D88C14D7FDF450211C1C7EDD1B26E7E6900D01A705C640EF477B79E0C7881D2E5EEC9BD6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D79589982348570AEC105E4FDE0D15CD60797BAFA6962DD75A0CE6BA803FA2A1D6AFD58EB6990D2583E913FCAAF7E7C43797B5D527BDC5AFE4E85741283CDFFC92B31C37CC7ED0FE65232B94A6FFAB882ACBAA5EE69F01B3F3C0F45102C3050DA273BE4EEA096881E42A07181DAE6440DB7BCD6653A9E27804B9A5BD8F97B3AD2E0D541FFE19252820FE3EB9C

D:\>REM REVISION: 1.0

D:\>REM GUID: A9214695-C8E9-4EAE-A1FD-7E32BFDC5003

D:\>REM DATE: 29\03\2021

D:\>REM DIR: FCD\AVR\batchfiles\avrc_usbtiny.bat

D:\>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avrdude.exe" -p m168 -Pusb -c usbtiny -U flash:w:"AVR.hex"
avrdude.exe: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude.exe done. Thank you.

Error returned from [avrdude]

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avrc_usbtiny.bat reported error code 0x1

Autoclose turned off

FINISHED


This is my message text.
It is possible, that the target device I'm using is not compatible to Flowcode.
It is a development board with an embedded Atmega 168 released by FRANZIS about 10 years ago.
But I also have a Atmega 168 as a single chip microcontroller as it is shown in your library.
But this means, I would need a Atmega Programmer Interface Device. Could you please give any hints or links to devices
siutable to Flowcode. Tutorials are also helpfull.
Thanks for help

Steve-Matrix
Matrix Staff
Posts: 1550
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 214 times
Been thanked: 362 times

Re: AVR Toolchain Reinstallation

Post by Steve-Matrix »

A search on the internet leads me to this:
https://www.elektronik-labor.de/AVR/AVRdude.html

Is this any help?

Post Reply