Errors porting v2.x to v3.x

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 605
Joined: Mon May 12, 2008 10:55 am

Errors porting v2.x to v3.x

Post 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?
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: Errors porting v2.x to v3.x

Post by TomNB »

I think you may need to pick up the latest dmh package for 3.x tools.
SeeCwriter
Posts: 605
Joined: Mon May 12, 2008 10:55 am

Re: Errors porting v2.x to v3.x

Post by SeeCwriter »

I didn't realize there was a 3.x version. Thanks.
Post Reply