Forum > Embedded - AVR

LazPackageEmbeddedAVR: Project Wizard for Target AVR

(1/3) > >>

kupferstecher:
Using FPC on AVR worked quite well for me, but the installation procedure and the project setup is a bit tricky. I'd like to simplify things in order to make the FPC more popular on the target embedded.

Therefore I created a Project Wizard for AVR.

In the Project Wizard the user can choose from a list of devices, a project name, the project path and programmer settings. The Project Wizard creates an empty project accordingly with all neccessary settings for the device, instrustion set and so on. The created project can be opened in Lazarus and is directly compilable by Strg+F9. With correct programmer settings it will be written on the target in the same rush.

A special feature is the creation of a file containing all interrupt routines available on the device.

If the compiler is installed correctly than this is a "three-clicks-to-run"-solution.

This project wizard and the AVRFPC compiler and linker should be provided as binaries from official side, then programming with FPC on AVR microcontrollers would be really beginner friendly.

Of course the Wizard - as simple as it is - is not ready yet, especially the programmer command lines have to be defined.

Please have a look and give your suggestions!

--
Edit: Link deleted

Current version as Lazarus IDE Plugin, sources and instructions:
https://github.com/kupferstecher/LazPackageEmbeddedAVR
--
Regards~

turronet:
Hello,

another approach could be the template.
Here You can find what I did for stm32f103 devices
https://github.com/Turro75/stm32lazarustemplate

Valerio

jmpessoa:
Hi there!

Here is my initial work targeting Arduino:

[Lamwino: Lazarus Arduino Module Wizard]

https://github.com/jmpessoa/lazarduinomodulewizard

Maybe some of us can put everything together .....

Greetings!

kupferstecher:
Jmpessoa, I really like the plugin-sytle of your wizard, so that it can be used within Lazarus. While I don't understand how that is accomplished, yet.

Also that the FPC can be compiled from within the IDE is quite a solution, but wouldn't it be easier to just provide the binaries? The binutils (linker, assembler) are provided by the Arduinu IDE, are they? What else is the purpose of the Arduino installation? As I prefere a more general approach covering the common AVR devices (and ARM seperately) instead of focusing on the arduino boards.

Turronet, Templates like yours are also possible, but you'd need a seperate template for each device. And programmer settings have to be handled seperately then. But still its a good starting point.


Does anyone know the dependency of the instruction sets? For compiling the FPC the instruction set has to be defined (right?) and while compilation again. Is a compilation of two devices with different instruction set with the same FPC installation possible?

PS: Forgot to attach screenshots, here they are now.

djzepi:
Hello

Could you add to check
if it support Lazarus / FPC embedded system
See the error message (attach file)

Navigation

[0] Message Index

[#] Next page

Go to full version