Forum > Linux
Simple Question, order installation FPCUPDELUXE, for FPC compiler for AVR
pascalbythree:
Hello members, i working on a new installation for the freepascal for AVR compiler. On my raspberry ZERO.
It did work out before, but i have to re install everything ...
but before everything gets a mess again, can somebody awnser the order of FPCUPDELUXE howto install the 3.3.1 compiler for AVR?
I Also need to know weither you have to place everything in one directory or create new ones.
PS: Does anybody knows weither it is FPC 3.0.2 or FPC 3.2.0, FPC 3.2.2 to install under the FPC AVR 3.1.1 compiler? I lost my paper where i wrote it down.
Example, for the basic tab page
Install path = /home/pi/WVW_FPC
FPC Version = 3.2.0
Lazarus version = 2.2.0
Example, for the Cross tab page
Install path = /home/pi/WVW_FPC_AVR
CPU = AVR
OS = Embedded
Can somebody give me the right values, Greetz, WvW
PS2: is it possible to cross compile without the graphical lazarus IDE, so FPC only to create hex files for my AVR in the terminal?
dseligo:
For AVR I currently have:
Lazarus 2.3.0
FPC 3.3.1
This are my notes for FPCupDeluxe for new processor:
- go to 'Cross' tab
- Click on 'Setup+'
- Select CPU = avr
- Select OS = embedded
- Subarch = avr6
- CPU = avr
- OS = embedded
- Install cross-compiler
I think it is absolutely possible to compile without Lazarus, but it is easier with Lazarus (i.e. easier and faster editing, you can program your MCU from Lazarus, etc.).
If you have Lazarus already set to compile, you can click 'Show Options' in 'Project Option' to see options you need for fpc.
My current 'command line parameters':
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---C:\LazarusAVR\fpc\bin\i386-win32\fpc.exe-Tembedded-Pavr-CpAVR6-MObjFPC-Scghi-O1-l-vewnhibq-Filib\avr-embedded-Fu.-FUlib\avr-embedded-FE.-otemp_reg-WpATMEGA2561-al
'Execute after':
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---avrdude-pATMEGA2561-cusbasp-Uflash:w:temp_reg.hex:i
Hope it helps
af0815:
Do not change the "install path". The crosscompiler is bound to your actual fpc/lazarus stored in the install path. Only use the cross tab as dseligo says. Change never the "install path".
You need the "install path" if you select in fpcupdeluxe different complete installations.
pascalbythree:
While installing, i got this error
When copying the system.pp file to the same directory it only gives more error.
Can anybody describe what i am doing wrong ?
Where is the system.pp file for AVR ? Can anybody send it up to me ?
Greetz, Wouter
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---#!/bin/sh echo '*************************** WvW switching to compiler directory **************************'echo '/home/pi/WVW_FPC_AVR_FORUM_TEST/fpc/lib/fpc/3.3.1'cd /home/pi/WVW_FPC_AVR_FORUM_TEST/fpc/lib/fpc/3.3.1 echo '*************************** WvW Vars SET **************************'echo 'Cristal FREQ:' $1echo 'Compile file:' $2echo 'MCU Name:' $3 echo '************** WvW Compiling ' $3 ' **************************'sudo /home/pi/WVW_FPC_AVR_FORUM_TEST/fpc/lib/fpc/3.3.1/ppcrossavr -Tembedded -Wp$3 -Cpavr5 -Pavr -O3 -g -a -al -XPavr- -MObjFPC -Fu"." -Sm -dF_CPU:=$1 /home/pi/WVW_FPC_AVR_FORUM_TEST/fpc/lib/fpc/3.3.1/$2
dseligo:
--- Quote from: pascalbythree on September 13, 2022, 11:49:05 am ---While installing, i got this error
--- End quote ---
Screenshot and text you posted doesn't look like installation, it looks like you are compiling source for AVR. What is it?
--- Quote from: pascalbythree on September 13, 2022, 11:49:05 am ---When copying the system.pp file to the same directory it only gives more error.
--- End quote ---
You don't have to copy anything.
Try to add some options to your command line options from example I posted, i.e.:
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ----Filib\avr-embedded-FUlib\avr-embedded
Then try to remove -XPavr- option.
Navigation
[0] Message Index
[#] Next page