Re: [Bacnet-developers] Having problem porting STM32F4xx
Brought to you by:
skarg
|
From: Samuel Z. <Sam...@rh...> - 2021-05-14 05:19:59
|
Hello Emre Can Kirtorun, I’m interesting on your topic because we are going to do some development at STMF4XX. What kind of IDE are you using? We are using TruStudio? Regards Samuel From: Steve Karg <st...@ka...> Sent: Wednesday, 12 May 2021 12:58 AM To: Discussion for developers of the BACnet stack <bac...@li...> Subject: [EXT]Re: [Bacnet-developers] Having problem porting STM32F4xx External Email Notification CAUTION: This message was sent from someone outside the company. Do not click on links, open attachments or unsubscribe unless you recognize the source and know it is safe. If a financial transaction is requested, please call the sender to verify. 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://secure-web.cisco.com/1Vi-kbgMGKXvURH93t7UKoQayae7bFRSUnyxWPaYZHsPCLKfQulrneOhBqDRf9kNYcLCEYlJlU78IgCD6tFmn4OkknDu2u28oS2CNEE50lmCHSB1NAjqTLKlnolN3MelT2bP1bPnC7_kQ6IM3QSZY0NYf5jAXhqCIwOTBxBRqU3MVu57CsorjearB71-CibjnhBB0OVhq6KJFq2uv9bbnnyPYaZunSPwY6gzRCzvbtukdRLKSwEa9M_AXXzJecSqAr9taJHQge6GjIK9bn_3Qvuyf0AtdwY6UXoKZWxqj_b9W-O6UzL8iUE9_NywtvgTw/https%3A%2F%2Fsourceforge.net%2Fp%2Fbacnet%2Fsrc%2Fci%2Fmaster%2Ftree%2Fsrc%2Fbacnet%2Fconfig.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...<mailto: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...<mailto:BAC...@li...> https://secure-web.cisco.com/1lMTFIo68p3OPZVqf6w0YBqeYKLQBatbr6DjIs7MEWugiy87zkROmLeu99EBNZ93XINDLON29nDf5wKCVYpzQxPJHgCL-MEl0ufRYFUHthx1ixD3rESS6GcJFvQWItyy2tM2i8_2YyXrW33L5t5rABn_o1vft1gX0yJifOzf5O2hbVgiLFQ1Z14QHMJbMgliBjWHca4AscljnVK2uht3CBcyrl-ZADlA3zMYfzE7Jvnpb8zQuBUmdsTtyn2jnqvtlwQWUbTK1iJllwscE2RPYcnTJqT4fFEMq6UdQFrFBIoTRHbSze-emdQqNuIRRAQXe/https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fbacnet-developers Your privacy is important to us. You can review our privacy policy at http://www.rheem.com.au/privacy This email and any attachments are confidential or privileged. If you receive this email in error, please notify the sender immediately by return e-mail and delete it from your system. If you are not the intended recipient any disclosure, copying, distribution or action taken or omitted to be taken in reliance of this communication is prohibited and may be unlawful. Confidentiality is not waived or lost because this email was sent to you in error. Any views expressed in this email or any attachments are those of the individual author only, unless expressly stated to be those of Rheem Australia Pty Ltd (RAPL). It is the responsibility of the recipient to check this email and any attachments for viruses and other errors. RAPL accepts no liability for any loss or damage caused by any viruses or errors. |