Skip to content

WinAVR Alternative, Compiled files On Windows Windows Subsystem for Linux (Ubunti Jammy)

Notifications You must be signed in to change notification settings

carl1961/Transistor-Tester-AVR-Compiled-files-On-Windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Transistor-Tester-AVR-Compiled-files-On-Windows

WinAVR Alternative, Compile files On Windows Windows Subsystem for Linux (Ubunti Jammy) WSL2

While I share how I compiled, Karl-Heinz KĂĽbbeler (kubi48) TransistorTester 1.13k and also Markus Reschke (madires) ComponentTester 1.51m, You may explore diffrent way's. Please feel free to share your way's and perhaps better way's.

How to Compiled files On Windows 11 (10) Windows Subsystem for Linux (Ubunti Jammy)

How to install Linux on Windows with WSL https://learn.microsoft.com/en-us/windows/wsl/install

After Installing you can access you linux drive with Windows Explorer.
To get your Ubuntu folder in Windows Explorer Open Windows Explorer and in address bar type or paste

\wsl.localhost\Ubuntu-22.04\home

image

Click on your user name.

image

I created short cuts on my desktop example \wsl.localhost\Ubuntu-22.04\home\carl\New-GM328A\ComponentTester-1.51m

right click your desktop click NEW and select " Shortcut

image

and paste your folder path click ok. Now you can get fast access to work with the Files and folders without all the learning to do this on Ubunti Linux.

image

image

I do all the code working in Windows Explorer , Downloading firmware and coping the files and folders to Ubuntu Folder and only used linux to run (make) One issues is, always refrech Windows Explorer to update the files before coping them to your firmware uploader.

I used AVRDUDESS tu update MCU

https://github.com/ZakKemble/AVRDUDESS

Download your files needed and unpack them , I use 7-zip https://7-zip.org/

Karl-Heinz KĂĽbbeler (kubi48) TransistorTester (1.13k)

https://github.com/kubi48/TransistorTester-source

https://www.mikrocontroller.net/articles/AVR_Transistortester

Markus Reschke (madires) ComponentTester (1.51m)

https://github.com/madires/Transistortester-Warehouse

Great Reading here

https://www.mikrocontroller.net/topic/transistortester-avr?page=1

https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/

https://github.com/madires/Transistortester-Warehouse/blob/master/Documentation/English/FAQ.Feliciano.pdf

https://github.com/madires/Transistortester-Warehouse/blob/master/Documentation/English/Mini-FAQ.indman.pdf

https://github.com/madires/Transistortester-Warehouse/blob/master/Documentation/English/Clone-Comparison-Chart.pdf

Setting up System

In windows search in task bar type u and click on Ubuntu-22.04 (I sent a shortcut to my task bar)

image

You get the Ubuntu console

image

What's great here is windows copy and paste works in your Ubuntu, so you can copy and paste these comands and not have to type them all out. so copy and paste these next comands. I already have installed all these so your screen will be slightly diffrent, you will most likly need to press Y for YES to update and install files.

sudo apt-get update

image image

sudo apt-get install build-essential pkg-config git libusb-1.0-0-dev

image image

Installing AVR

sudo apt-get update

image image

sudo apt-get install binutils gcc-avr avr-libc uisp avrdude

image image

Downgrading AVR

It has been found by those who know best that older releases compile using less memory. here you can removed AVR and install the 5.4.0

sudo apt-get purge gcc-avr

image image

gcc-avr 5.4.0

sudo apt-get install binutils gcc-avr 5.4.0

image image image

avr-gcc --version

image

sudo apt-get install avr-libc uisp avrdude

image

Compiling TransistorTester (1.13k)

From windows download Karl-Heinz KĂĽbbeler (kubi48) TransistorTester files from https://github.com/kubi48/TransistorTester-source

Click on Code and then Download Zip to your prefered folder.

image image

Unzip (unpack) TransistorTester-source-master.zip

You can double click TransistorTester-source-master.zip to Unzip ZIP file with Windows or right click Zip file and move mouse pointer to 7-zip then to right to Extrack to "TransistorTester-source-master" (win 10) with windows 11 you need to right click, select Show more options and then move mouse pointer to 7-zip then to right to Extrack to "TransistorTester-source-master"

image image image

Go to Your unzipped TransistorTester-source-master folder then right click copy trunk folder to your Ubuntu home (username) folder

image image image image

go to your Ubuntu trunk folder (we or still using Windows Explorer) make changes to your prefered Makefile ( Do not mess with Makefile in trunk main folder , use the Makefile in prefered firmware folder ex: mega328_color_kit folder

I edit with Notepad++ https://notepad-plus-plus.org/

image image

After your done making your changes Go to your Ubuntu Command prompt , or Start Ubuntu

copy paste this ( or type it out)

cd ~/trunk/mega328_color_kit (or your prefered folder)

image

then type

make

image image

Compiling ComponentTester (1.51m)

From windows download Markus Reschke (madires) ComponentTester files from https://github.com/madires/Transistortester-Warehouse

Click on Code and then Download Zip to your prefered folder.

image

Unzip (unpack) Transistortester-Warehouse-master.zip

You can double click Transistortester-Warehouse-master.zip to Unzip ZIP file with Windows or right click Zip file and move mouse pointer to 7-zip then to right to Extrack to "Transistortester-Warehouse-master" (win 10) with windows 11 you need to right click, select Show more options and then move mouse pointer to 7-zip then to right to Extrack to "Transistortester-Warehouse-master"

Go to Your unzipped Transistortester-Warehouse-master folder then \Transistortester-Warehouse-master\Firmware\m-firmware

image

This is where 7-zip is used to unpack the tar files

right click ComponentTester-1.51m.tgz file and move mouse pointer to 7-zip then to right to Extrack to "ComponentTester-1.51m" (win 10) with windows 11 you need to right click, select Show more options and then move mouse pointer to 7-zip then to right to Extrack to "ComponentTester-1.51m"

image

We have to do this again for the tar file, go to the ComponentTester-1.51m Folder and Unpack ComponentTester-1.51m.tar

image

Do this again , but with cap.c-1.51m.tgz (cap.c fixed file)

image

image

go to cap.c-1.51m folder and copy the cap.c file to ComponentTester-1.51m foler over writing the existing bad cap.c file

image image

right click ComponentTester-1.51m folder copy and paste to folder to your Ubuntu home (username) folder

image image image

go to your Ubuntu ComponentTester-1.51m (we or still using Windows Explorer)

make changes to your prefered files, I edit with Notepad++ https://notepad-plus-plus.org/

First edit Makefile and set your MCU and crystal MHz image image

Also edit Your config MCU file you set in Makefile ex: config_328.h

image

After your done making your changes Go to your Ubuntu Command prompt , or Start Ubuntu

copy paste this ( or type it out)

cd ~/ComponentTester-1.51m

image

type make image

image image

Upload file to MCU with Your prefered Loader I used AVRDUDESS 2.7

I copy my firmware files to a folder and point AVRDUDESS to them, I never messed with any fuses, I leave what AVRDUDESS detects

image

About

WinAVR Alternative, Compiled files On Windows Windows Subsystem for Linux (Ubunti Jammy)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published