Re: [Bacnet-developers] Having problem porting STM32F4xx
Brought to you by:
skarg
|
From: Steve K. <st...@ka...> - 2021-05-11 15:23:16
|
Hello Emre Can Kirtorun, You didn't mention which compiler or IDE you are using, so I'm guessing you are not using the example code in ports/stm32f4xx folder as-is. The IAR project file uses some defines to tune RAM usage, and there are more settings in src/bacnet/config.h <https://sourceforge.net/p/bacnet/src/ci/master/tree/src/bacnet/config.h> file that can be overridden from their defaults, or just make your own config file. IAR: <state>NDEBUG</state> <state>USE_STDPERIPH_DRIVER</state> <state>STM32F4XX</state> <state>BACDL_MSTP</state> <state>MAX_APDU=480</state> <state>BIG_ENDIAN=0</state> <state>MAX_TSM_TRANSACTIONS=1</state> GCC Makefile: BACNET_FLAGS = -DBACDL_MSTP=1 BACNET_FLAGS += -DBACAPP_ALL BACNET_FLAGS += -DMAX_APDU=480 BACNET_FLAGS += -DBIG_ENDIAN=0 BACNET_FLAGS += -DMAX_TSM_TRANSACTIONS=0 BACNET_FLAGS += -DMAX_CHARACTER_STRING_BYTES=64 BACNET_FLAGS += -DMAX_OCTET_STRING_BYTES=64 # if called from root Makefile, PRINT was already defined BACNET_FLAGS += -UPRINT_ENABLED BACNET_FLAGS += -DPRINT_ENABLED=0 Probably MAX_TSM_TRANSACTIONS needs to be lowered, since the default is 255. Best regards, Steve On Tue, May 11, 2021 at 4:40 AM Emre Can Kirtorun <krt...@gm...> wrote: > Hello everyone, > > I've been trying to port stm32f4xx on my smt32f4 device and when I try to > compile the whole bacnet stack I receive a RAM error which says RAM > overflow . I have no idea about where I made a mistake but any help would > be appreciated. > > Best regards. > _______________________________________________ > BACnet-developers mailing list > BAC...@li... > https://lists.sourceforge.net/lists/listinfo/bacnet-developers > |