Jal on Linux Mint

66 views
Skip to first unread message

David VB

unread,
Jan 9, 2024, 6:13:18 PM1/9/24
to jallist
Hi there,

[Some parts of this topic may be... well... off-topic.   Please forgive me and ignore those parts if there are considered an infregment of the list's rules]

I refurbished an old PC by installing Linux Mint 21.2 (newest version)

Since I am a total newbie on Linux, I would like to know if it is possible (and how) to:
- Compile EASILY a jal program (including the installation and use of jallib, of course)
- Program it with a picKit3, picKit4, ICD2 or TL866 

Besides, which code editor would you suggest to use ? On Windows, I simply use jaledit and am very happy with it.   
So, I need a simple editor, basic syntax coloring, multiple files open at once, and possibility to invoke the compiler from within the editor)

I know that with the use of "Wine" (*) , I can make Windows program run in a kind of emulator or virtual machine.    But I totally scraped Windows from that machine.   Will it still run ?

Already thanks for all your good advices!

David

(*) As a good Belgian, I always prefer Beer over "Wine", but I looked in the application manager of Linux and didn't find any....  ;-))

Rob CJ

unread,
Jan 10, 2024, 12:40:16 PM1/10/24
to jal...@googlegroups.com
Hi David,

I think the best you can do is the following:
  • Download the Jallib zip file and unzip is.
  • Look in the directory of the compiler in the README.txt file how the Linux versions are called
  • Install Visual studio Code as editor on Linuxx.  Configure it as described in the Jallib Tutorial (which is in the doc directory of Jallib). The example is for windows but you can change it for Linux.

I don't know how to use the PicKit3 in combination with Linux. Maybe someone else knows.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens David VB <pinhe...@gmail.com>
Verzonden: woensdag 10 januari 2024 00:13
Aan: jallist <jal...@googlegroups.com>
Onderwerp: [jallist] Jal on Linux Mint
 
--
You received this message because you are subscribed to the Google Groups "jallist" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallist+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallist/75fbda09-537e-4898-abb5-c2d247afa297n%40googlegroups.com.

rob...@hotmail.com

unread,
Jan 21, 2024, 4:18:34 AM1/21/24
to jallist
Hi David,

About programming the PIC in Linux. You could of course install MPLABX and then only the Integrated Programming Environment (IPE). That is available for Windows and Linux.

BTW. I also tested if my suggestion using Visual Studio Code works on Linux (I am running Linux Mint in a Virtual Box) and that works. I could edit and compile a JAL program using Visual Studio Code using the syntax highlighting using the JAL extension made by Sunish. I also did a small update of the Jallib Tutorial in the Visual Studio Code section and added a Linux example. The tutorial is not yet on the Website since it needs to be generated first but if you want I can generate it locally and send it to you.

Kind regards,

Rob


Op woensdag 10 januari 2024 om 18:40:16 UTC+1 schreef rob...@hotmail.com:

Pinhead

unread,
Jan 22, 2024, 10:32:35 AM1/22/24
to jallist
Hi Rob,

Thanks for your advices.

It took me some time, because I had to replace the internal HDD with a SSD, and double the RAM, and finally I was able to install MPLABX. 
I didn't test the connection with any of my programming tool yet.

I also installed VSC, but have not configured it, nor did I install Jal nor Jallib yet.

As usual, I don't have as much free time as I would like..... 

I'll keep you posted of my progress here, so that it could be of help for others as well

Have a nice day

D.

Glenn Walsh

unread,
Feb 28, 2024, 12:32:27 PM2/28/24
to jallist
Hi guys

If I can come in on this. I have previously had JAL working fine on Linux Mint using Geany, but after switching to another laptop and downloading the latest jallib-master I'm having problems with (I think) permissions.

glenn@glenn:~/pic$ jallib-master/compiler/jalv2-x86-64 projects/test/16f877a_blink.jal -s /jallib-master/include/
jal jalv25r8 (compiled May 20 2023)
generating p-code
projects/test/16f877a_blink.jal:26: cannot open '16f877a.jal'
projects/test/16f877a_blink.jal:32: unknown pragma target: osc
projects/test/16f877a_blink.jal:32: "osc" not defined
projects/test/16f877a_blink.jal:32: unexpected token: osc
4 errors, 0 warnings
glenn@glenn:~/pic$

It looks like the  compiler can't see the device file so I have tried changing permissions for the include folder various ways without success.

Any ideas? Thanks in advance

Glenn
(Belfast)

David VB

unread,
Jun 22, 2024, 9:03:49 AM6/22/24
to jallist
Hi,

Finally I got it running for some time.   

But today, I receive an error when compiling:

 *  Executing task: /home/david/Documents/Z/== TOOLS/JalLib1.9/compiler/jalv2-x86-64 /home/david/Documents/Z/== MINI PROJETS/NAS/EmulTC651.jal -s /home/david/Documents/Z/== TOOLS/JalLib1.9/lib

execvp(3) failed.: Permission denied

 *  The terminal process "/home/david/Documents/Z/== TOOLS/JalLib1.9/compiler/jalv2-x86-64 '/home/david/Documents/Z/== MINI PROJETS/NAS/EmulTC651.jal', '-s', '/home/david/Documents/Z/== TOOLS/JalLib1.9/lib'" failed to launch (exit code: 1).
 *  Press any key to close the terminal.


Any idea how to solve this ?

Thanks,

David

vasi vasi

unread,
Jun 25, 2024, 4:20:10 AM6/25/24
to jal...@googlegroups.com
Did not followed this discussion, are you using VSCode with the JAL extension?

I do the same, but a little different. In my every project  folder I have a Makefile. In every main folder of the projects there is a .vscode hidden subfolder where I have ... but better attach an example, with the mention that this procedure never fails me. BTW, you have to tune the Makefile to reflect your paths...



--
Vasi

vasi vasi

unread,
Jun 25, 2024, 4:32:34 AM6/25/24
to jal...@googlegroups.com
In my home folder I have a subfolder "work". There I have the fal projects as follows:
- j_46k22_blink
- j_46k22_adc
- j_46k22_lcd4
- j_userlib (in this folder I store  my custom, common libraries)

I prefix the folders with "j_" which means that these projects are written in JAL, and I do this because the same projects I write in other languages as C, gcbasic, etc. and because I use CVS locally, for versioning control), e.g., for the same project, it looks like this:

- j_46k22_lcd4
- c_46k22_lcd4
- b_46k22_lcd4

Which means the same project written in three languages and prefixed to be stored without conflicts in CVS local repository.

I explained why my project folders are named like that... you can adapt the Makefile to your  situation. Also I prefer that the main file of every project to be named "main.jal" and let only the name of the project's folder to indicate the name of the project and this helps in automating the Makefile that can be copied for all 46k22 projects and for other microcontrollers it is easy to be modified.
--
Vasi
j_template.tar.gz

David VB

unread,
Aug 23, 2024, 8:53:26 AM8/23/24
to jallist
Following my message from June 22 in this conversation, I have finally found that in the properties of the compiler file, I had to give the permission to execute the file as a program....    Doh !

(For my excuse, I am still noob in Linux....)

Hope this can help others

Have a nice week-end

David
Reply all
Reply to author
Forward
0 new messages