2025-04-09 12:34 PM - last edited on 2025-04-09 12:38 PM by mƎALLEm
Hi,
I'm trying to implement BACnet using an STM32F401RE Nucleo board and a W5500 Ethernet shield, but I'm having trouble adding the BACnet source files. I'm unsure exactly which source and header files I need to include. Despite several attempts, I keep getting multiple errors.
Were you able to successfully run your BACnet project? If you could explain the correct way to set it up, I'd greatly appreciate it.
Thank you.
Mehmet
2025-04-09 1:18 PM - edited 2025-04-09 1:18 PM
@mehmetk wrote:I'm having trouble adding the BACnet source files. I'm unsure exactly which source and header files I need to include.
So what BACnet stack are you using ?
Did it not come with any documentation ?
Are you using BACnet, or BACnet/IP ?
@mehmetk wrote:I keep getting multiple errors.
Very often, getting large numbers of errors is due to one simple error early on leading to multiple resultant errors.
eg, 1 missing header file will lead to errors in every single thing which relies upon something from that header file.
That's why it's important to address the earliest-reported error first.
The Eclipse 'Problems' view is useless for this, because it re-orders the messages - therefore you need to use the 'Console', and scroll back to the earliest-reported error.
2025-04-09 1:23 PM
@mehmetk wrote:an STM32F401RE Nucleo board and a W5500 Ethernet shield,
Why not just use an STM32 with its own built-in Ethernet?
There are 71 to choose from just in the F4 series:
https://www.st.com/en/microcontrollers-microprocessors/stm32f4-series/products.html