Page 1 of 1

Errors porting v2.x to v3.x

Posted: Wed Jul 06, 2022 7:01 am
by SeeCwriter
I am trying to convert an application for the MOD5441X module and built with v2.9.5, to the v3.3.8 tools and get a bunch of errors I haven't been able to resolve. I did this with a NANO project without any serious problems. But the MOD5441X firmware uses DMH Software's SNMP agent, which is where the problem seems to be. I think I may be missing an include file.
Here are some errors:

Code: Select all

In file included from C:/nburn/nbrtos/include/file/port_s.h:34,
                 from C:/nburn/nbrtos/include/file/fsm.h:34,
                 from C:/nburn/nbrtos/include/file/fsf.h:59,
                 from C:/nburn/nbrtos/include/file/flashdrv.h:34,
                 from ../src/DMH_SNMP_INC/DMH_SNMP/nb-filesystem-ctc.h:91,
                 from ../src/DMH_SNMP_INC/DMH_SNMP/sn-flash-sysgroup-nb.c:53:
C:/nburn/nbrtos/include/file/udefs.h:35:8: error: expected identifier or '(' before string constant
 extern "C++"
        ^~~~~
In file included from C:/nburn/nbrtos/include/file/port_s.h:34,
                 from C:/nburn/nbrtos/include/file/fsm.h:34,
                 from C:/nburn/nbrtos/include/file/fsf.h:59,
                 from C:/nburn/nbrtos/include/file/flashdrv.h:34,
                 from ../src/DMH_SNMP_INC/DMH_SNMP/nb-filesystem-ctc.h:91,
                 from ../src/DMH_SNMP_INC/DMH_SNMP/sn-flash-sysgroup-nb.c:53:
C:/nburn/nbrtos/include/file/udefs.h:75:23: error: unknown type name 'OS_CRIT'
 #define FS_MUTEX_TYPE OS_CRIT
                       ^~~~~~~
C:/nburn/nbrtos/include/file/port_s.h:51:29: note: in expansion of macro 'FS_MUTEX_TYPE'
     extern int fs_mutex_get(FS_MUTEX_TYPE *);
                             ^~~~~~~~~~~~~

Any ideas on what I'm missing?

Edit:

It occurred to me that DMH SNMP, SSL Cert & Keys, and the module configuration structure used with v3.x tools all use the module's flash via the fs_* file system. Could the SNMP configuration be clashing with the other users of the flash?

Re: Errors porting v2.x to v3.x

Posted: Wed Jul 06, 2022 12:01 pm
by TomNB
I think you may need to pick up the latest dmh package for 3.x tools.

Re: Errors porting v2.x to v3.x

Posted: Thu Jul 07, 2022 7:27 am
by SeeCwriter
I didn't realize there was a 3.x version. Thanks.