cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing BACnet IP Stack on STM32F401 with W5500 Ethernet shield

mehmetk
Associate

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

2 REPLIES 2

@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.

See: https://community.st.com/t5/stm32cubeide-mcus/stmcubeide-generating-errors-in-the-driver-files-on-creation-of/m-p/97912/highlight/true#M2765

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

@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 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.