Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


MAC Address

I am designing an ethernet board with STM32F4. The MAC address is set in a header file. What is suggested for:

  • Allocating MAC addresses in production?
  • programming them into each chip?
IEEE manages MAC address allocation. They sell blocks (large and small) at reasonable prices.

Thanks, Alec. I was aware of buying numbers from IEEE. Your answer implies that STM has no small lots of numbers available for low volume designs. Is that true?

The other part of my question is, how does each board get its MAC at manufacture/configuration time?

Do I have to set up a patch system to inject the MAC into the loadable firmware at load time? That would be bad for post-ship updates.

Does the HAL have any provision for storing MAC and other config in a small Flash segment that is not wiped in a firmware load?

Or does each developer have to come up with their own scheme? It’s not that hard, we’ve all done it, but I don’t want to do it myself if a standard mechanism exists for STM32.


I have not done an Ethernet board, so I don’t have detailed answers.

The STM device I’m using has a “One-time Programmable” section of Flash, which could probably be used to store a factory programmed MAC for the life of the device.
How to do that will depend on what interfaces you have available. If your board supports a Bootloader, consider using a separate RAM based firmware to program the OTP.


Thank you, Alec. I will look for OTP Flash on my chip, and will not search the Cube libraries for a method to do this task.

 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs