ChibiOS/HAL and IAR EWARM?

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
gerhardf
Posts: 7
Joined: Fri Sep 28, 2018 8:52 am

ChibiOS/HAL and IAR EWARM?

Post by gerhardf »

Hello,
I'm in the process of introducing the STM32 family in my products.
As diferent version of this family (STM32F7 and STM32H7) will be used I was looking for a HAL solution.

ChibiOS was suggested to me.
So i downloaded the actual version of ChibiStudio and it seems to be a really nice solution.
At the moment I'm not sure if I will use ChibiOS/RT but ChibiOS/HAL looks promising.

The only problem I found is the lack support of IAR EWARM.
For some of the HAL examples at ..\testhal\.. EWARm workspace and project file are existing but they seem to be outdated. For example the fili links within the project file are not correct (e.g.: adc.c instead of hal_adc.c).

Are there any plan for updating the EWARM projects?

Many thanks in adavance!

regards
Gerhard
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS/HAL and IAR EWARM?

Post by Giovanni »

Hi,

The project under \demos\STM32\RT-STM32F303-DISCOVERY\iar should be fine, I will update the files you reported in next releases.

The problem with IAR (and Keil) projects is that project files are monolithic and a PITA to maintain, this is why we only provide few examples. Makefiles are much more flexible in comparison, it is a small file that includes the .mk of the various parts, handling and maintenance is very easy. If you change one .mk then all projects are updated.

Giovanni
gerhardf
Posts: 7
Joined: Fri Sep 28, 2018 8:52 am

Re: ChibiOS/HAL and IAR EWARM?

Post by gerhardf »

Hello Giovanni,
thanks for the quick reply.

I tested the project you mentioned and was able to build it as long as I use chibios176.
A warnung is produced:
Warning: The header file 'cmsis_iar.h' is obsolete and should not be used.

At chibios182 it seems that the directory structure was changed too.
I tried to change the preprocessor include paths but there are still some compiler errors.

Next problem:
I would like to use a STM32F723 Discovery kit.
Is there s simple way to use this kit?

Many thanks in advance!

Gerhard
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS/HAL and IAR EWARM?

Post by Giovanni »

Is the demo in 18.2.1 not working?

If you are in an hurry, try ChibiStudio and try all demos. I will fix IAR projects in next release.

Giovanni
gerhardf
Posts: 7
Joined: Fri Sep 28, 2018 8:52 am

Re: ChibiOS/HAL and IAR EWARM?

Post by gerhardf »

Hello,
I was able to change the .ewp file so the poject is now building with success.

As I don't own the STM32F303 Discovery board I will use ChibiStudio for first evaluation.

BTW: I tried to attach the .ewp file to this message but get an error message:
Invalid file extension: ch.ewp

regards
Gerhard
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS/HAL and IAR EWARM?

Post by Giovanni »

Hi,

You need to attach zip/7z files, it is a security feature of the forum.

Giovanni
gerhardf
Posts: 7
Joined: Fri Sep 28, 2018 8:52 am

Re: ChibiOS/HAL and IAR EWARM?

Post by gerhardf »

Hello once more,
I've here a STM32F723 Discovery kit, which isn't supported yet.

I've read that the necessary adaption can be done with the "ChibiStudio board generator plugin".
Where can I find this tool?

many thanks in advance!

Gerhard

BTW: enclosed the .ewp file
Attachments
ch.zip
(7.11 KiB) Downloaded 461 times
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS/HAL and IAR EWARM?

Post by Giovanni »

Hi,

That plugin is included in ChibiStudio, it allows to generate the board.h/c/mk files starting from an XML description with extension .chcfg.

Have you seen the guides on playembedded.org? it is a good way to get started.

Giovanni
gerhardf
Posts: 7
Joined: Fri Sep 28, 2018 8:52 am

Re: ChibiOS/HAL and IAR EWARM?

Post by gerhardf »

Giovanni wrote:That plugin is included in ChibiStudio, it allows to generate the board.h/c/mk files starting from an XML description with extension .chcfg.

Sorry but I didn't find any plugin. Is there any documentation about this stuff available?


Giovanni wrote:Have you seen the guides on playembedded.org? it is a good way to get started.

I've already read the guides on playembedded.org but didn't find any hints regarding the plugin.

regards
Gerhard
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS/HAL and IAR EWARM?

Post by Giovanni »

Post Reply