Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

Viljami
Posts: 15
Joined: Tue Apr 05, 2022 3:32 pm
Has thanked: 13 times

Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Viljami » Tue Jun 21, 2022 4:55 pm

Hello folks!

Are there differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free versions?

The settings&configs were exactly the same for the previous ones but data size was 0 for ChibiOS 21.11.1 free.

ChibiOS 21.11.1 free based application did not start, a lsusb command did not see USB addr etc.

ChibiOS 21.11.1:

Code: Select all

text   data       bss       dec       hex
35748   268    130800    166816     28ba0


ChibiOS 21.11.1 free:

Code: Select all

text    data   bss       dec       hex
13096    0   131072    144168     23328


Best regards

Viljami

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Giovanni » Tue Jun 21, 2022 5:09 pm

Hi,

The code is exactly the same, note that the commercial "free" version has some restrictions, it enforces:

Code: Select all

#define CH_CFG_ST_FREQUENCY                 1000
#define CH_DBG_STATISTICS                   FALSE
#define CH_DBG_TRACE_MASK                   CH_DBG_TRACE_MASK_DISABLED


Make sure to keep those options the same. The only thing that could affect you is the frequency, please verify this.

BTW, if this is the case then I could simply lift the restriction in next free release (21.11.2), there is no really need for that anymore. You could also give 21.11.2 a try now and see if everything is OK for you.

Giovanni

Viljami
Posts: 15
Joined: Tue Apr 05, 2022 3:32 pm
Has thanked: 13 times

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Viljami » Wed Jun 22, 2022 11:23 am

Hello again Giovanni!

I tried the following parameters&values but no success:

Code: Select all

#define CH_CFG_ST_FREQUENCY                 1000
#define CH_DBG_STATISTICS                   FALSE
#define CH_DBG_TRACE_MASK                   CH_DBG_TRACE_MASK_DISABLED


Do you have a version 21.11.2 free somewhere?

Best regards

Viljami

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Giovanni » Wed Jun 22, 2022 11:34 am

Hi,

You should try those parameters on the GPL version and see if it shows the same problem, those parameters are already enforced on the "free" version.

21.11.2 free is not yet available, I could do that over weekend.

Giovanni

Viljami
Posts: 15
Joined: Tue Apr 05, 2022 3:32 pm
Has thanked: 13 times

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Viljami » Wed Jun 22, 2022 1:26 pm

Hello again Giovanni!

My parameters&values are

Code: Select all

#define CH_CFG_ST_FREQUENCY                 10000
#define CH_DBG_STATISTICS                   FALSE
#define CH_DBG_TRACE_MASK                   CH_DBG_TRACE_MASK_ALL

Chibios versions 21.11.1 and 21.11.2 started (with my parameters&values) but 21.11.1 free did not.

I tried the following parameters&values but no success (my application did not start) for 21.11.1, 21.11.2 and 21.11.1 free:

Code: Select all

#define CH_CFG_ST_FREQUENCY                 1000
#define CH_DBG_STATISTICS                   FALSE
#define CH_DBG_TRACE_MASK                   CH_DBG_TRACE_MASK_DISABLED

Best regards
Viljami

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Giovanni » Wed Jun 22, 2022 1:34 pm

Hi,

So it is:

CH_CFG_ST_FREQUENCY set to 1000 that prevents your application from working. Is there anything in your application that requires 10000? Post your mcuconf.h, it could be that 1000 cannot be obtained because your other settings.

Anyway, I will make CH_CFG_ST_FREQUENCY unconstrained in 21.11.2 so you could just wait for that.

Another suggestion, try to enable assertions in chconf.h and see if something is caught.

Giovanni

Viljami
Posts: 15
Joined: Tue Apr 05, 2022 3:32 pm
Has thanked: 13 times

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Viljami » Mon Jul 25, 2022 10:09 am

Giovanni wrote:Hi,

So it is:

CH_CFG_ST_FREQUENCY set to 1000 that prevents your application from working. Is there anything in your application that requires 10000? Post your mcuconf.h, it could be that 1000 cannot be obtained because your other settings.

Anyway, I will make CH_CFG_ST_FREQUENCY unconstrained in 21.11.2 so you could just wait for that.

Another suggestion, try to enable assertions in chconf.h and see if something is caught.

Giovanni


Hello Giovanni!

Do you have a link for downloading?

BR

Viljami

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Giovanni » Mon Jul 25, 2022 1:24 pm

Hi,

You need to re-submit the request form for updates.

Giovanni

Viljami
Posts: 15
Joined: Tue Apr 05, 2022 3:32 pm
Has thanked: 13 times

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Viljami » Thu Aug 18, 2022 1:58 pm

Hello again!

Yes, I downloaded ChibiOS 21.11.2 free. Unfortunately I met the same kind of problems (my application did not start etc.) with ChibiOS 21.11.2 free what I met with ChibiOS 21.11.1 free.

ChibiOS 21.11.2 free generated the following:

Code: Select all

   text      data       bss       dec       hex
  13348         0    131072    144420     23424


BR

Viljami

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free

Postby Giovanni » Thu Aug 18, 2022 7:07 pm

Hi,

My error... I forgot to remove the lock on systick frequency,

Proceed as follow:
- Open /os/rt/include/chrestrictions.h
- Comment out line 66 an 67 (#undef CH_CFG_ST_FREQUENCY)(#define CH_CFG_ST_FREQUENCY 1000).
- Now the systick restriction is removed, I authorize you to do so.

As soon I have a change (next week probably) I will update the downloadable package and post a note here.

Giovanni


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 25 guests