Hello!
I am trying to use ChibiOS 18.2 and want to move away from Eclipse. I have to regenerate the board files for this new version but need to process the .ftl files for the board generator somehow. Is there a way to run freemarker without eclipse (standalone command line)? I have the .jar file already but it does not seem to be designed to be used as-is.
Thanks in advance,
Adrian
FTL board file generation without Eclipse
Re: FTL board file generation without Eclipse
I just found out about FMPP:
http://fmpp.sourceforge.net/qtour.html
Using this command, you can easily generate your own board files without eclipse:
Requriements for this to work:
- fmpp is in path variable
- the template files are reachable from the location where you execute fmpp. I just copied the template files over to my working directory
http://fmpp.sourceforge.net/qtour.html
Using this command, you can easily generate your own board files without eclipse:
Code: Select all
fmpp -C board.fmpp
Requriements for this to work:
- fmpp is in path variable
- the template files are reachable from the location where you execute fmpp. I just copied the template files over to my working directory
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: FTL board file generation without Eclipse
Hi,
All generators are usable without Eclipse using FMPP, now are part of the ChibiOS tree. Of course Eclipse support will continue.
Giovanni
All generators are usable without Eclipse using FMPP, now are part of the ChibiOS tree. Of course Eclipse support will continue.
Giovanni
-
- Posts: 77
- Joined: Sat Mar 19, 2016 8:07 pm
- Been thanked: 17 times
Re: FTL board file generation without Eclipse
Hi,
since the ChibiStudio plugins don't support current releases of Eclipse and I also prefer to edit the pure XML, I wanted to use fmpp to create the board files without any Eclipse. I copied the source files from a similar board in /os/hal/boards/*/cfg/, adapted them and tried to use fmpp to create the board files.
The board.fmpp looks like this:
The problem is that the ChibiOS source tree below /tools/ftl/processors/ does not contain a "boards" directory and no templates. After searching around a lot I found them in the chibistudio_trunk-branch in the svn.
I had to check that out into a dir outside the ChibiOS-tree like this:
then I had to adapt the "sourceRoot" definition in the fmpp file to reference this dir. This is a bit cumbersome.
Is there a special reason that the board template files are part of ChibiStudio and not part of ChibiOS? Wouldn't it make more sense to put them in tools/ftl/processors/boards/ in the ChibiOS-tree like the fmpp-file suggests?
since the ChibiStudio plugins don't support current releases of Eclipse and I also prefer to edit the pure XML, I wanted to use fmpp to create the board files without any Eclipse. I copied the source files from a similar board in /os/hal/boards/*/cfg/, adapted them and tried to use fmpp to create the board files.
The board.fmpp looks like this:
Code: Select all
sourceRoot: ../../../../../tools/ftl/processors/boards/stm32f0xx/templates
outputRoot: ..
dataRoot: .
freemarkerLinks: {
lib: ../../ChibiOS/tools/ftl/libs
}
data : {
doc1: xml(board.chcfg)
}
The problem is that the ChibiOS source tree below /tools/ftl/processors/ does not contain a "boards" directory and no templates. After searching around a lot I found them in the chibistudio_trunk-branch in the svn.
I had to check that out into a dir outside the ChibiOS-tree like this:
Code: Select all
svn checkout https://svn.code.sf.net/p/chibios/svn2/branches/chibistudio_trunk/tools/chibios_config_wizard
then I had to adapt the "sourceRoot" definition in the fmpp file to reference this dir. This is a bit cumbersome.
Is there a special reason that the board template files are part of ChibiStudio and not part of ChibiOS? Wouldn't it make more sense to put them in tools/ftl/processors/boards/ in the ChibiOS-tree like the fmpp-file suggests?
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: FTL board file generation without Eclipse
Hi,
ChibiOS does include those files. Also checking out from subversion includes those.
Are you using the community git mirror? probably there is a problem with that.
Giovanni
ChibiOS does include those files. Also checking out from subversion includes those.
Are you using the community git mirror? probably there is a problem with that.
Giovanni
-
- Posts: 77
- Joined: Sat Mar 19, 2016 8:07 pm
- Been thanked: 17 times
Re: FTL board file generation without Eclipse
Hi,
thanks for your quick and helpful reply.
Yes, you are right. I'm using the mirror on github as including it in my project as git submodule is very convenient.
I looked at this case in more detail and it seems like the tools/ftl/processors/boards directory is defined as "external" in the subversion tree. The external points to the chibistudio_trunk branch, so it always gets the data from there. But the external-feature from subversion isn't compatible with git, so stuff in external trees isn't transferred over to git.
I looked at the list of externals in the svn trunk and it is just the ftl-boards and the "community" folder. The community folder has it's own git tree, so no problem. I, and probably other git users too, would prefer it if the external were defined the other way round, meaning that the actual board templates live in trunk, and the chibistudio_trunk branch refers to them as external. So they would be more easy to access from the ChibiOS-git and harder to access from a chibistudio-git.
It would be nice if you consider changing that. Thanks.
thanks for your quick and helpful reply.
Giovanni wrote:Are you using the community git mirror? probably there is a problem with that.
Yes, you are right. I'm using the mirror on github as including it in my project as git submodule is very convenient.
I looked at this case in more detail and it seems like the tools/ftl/processors/boards directory is defined as "external" in the subversion tree. The external points to the chibistudio_trunk branch, so it always gets the data from there. But the external-feature from subversion isn't compatible with git, so stuff in external trees isn't transferred over to git.
I looked at the list of externals in the svn trunk and it is just the ftl-boards and the "community" folder. The community folder has it's own git tree, so no problem. I, and probably other git users too, would prefer it if the external were defined the other way round, meaning that the actual board templates live in trunk, and the chibistudio_trunk branch refers to them as external. So they would be more easy to access from the ChibiOS-git and harder to access from a chibistudio-git.
It would be nice if you consider changing that. Thanks.
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Return to “Small Change Requests”
Who is online
Users browsing this forum: No registered users and 32 guests