2020-10-22 03:21 AM
I am a student who is currently doing his bachelor thesis. My job is to control two microcontrollers (Nucleo-STM32F411RE) via Bluetooth (X-Nucleo-BNRG2A1) in order to transfer parameter values for a system. The idea now is to use the same program on the two microcontrollers. For this purpose, there should be a possibility in the initialization phase to be able to differentiate between the two boards in a simple way in order to then be able to continue with the further initialization that is correct for the board. Is there an easy way how to make the boards distinguishable?
Solved! Go to Solution.
2020-10-22 05:45 AM
In hardware, this can be done by grounding a pin on one board and not the other. Then, you can use a pullup on that pin and read its state to see which board is which. This can also be done with a jumper or DIP switch.
You could also use the unique ID of the chip itself, but you'll need to hardcode those values within the code.
2020-10-22 05:45 AM
In hardware, this can be done by grounding a pin on one board and not the other. Then, you can use a pullup on that pin and read its state to see which board is which. This can also be done with a jumper or DIP switch.
You could also use the unique ID of the chip itself, but you'll need to hardcode those values within the code.
2020-10-22 05:49 AM
Each has a Unique ID
2020-10-22 07:32 AM
Thank you very much. This is what I needed.