RTEMS / RTOS / Examples

Go to Issues or Merge Requests

Merge Requests Summary


Issues

3 - Compile error in misc/regulator/regulator_example.c

Id

3

State

closed

Type

ISSUE

Author

geng zhu

Closed by

Kinsey Moore

Created

2024-09-20T08:14:44.138Z

Closed

2024-11-25T03:08:28.196Z

Updated

2025-09-19T00:49:55.867Z

Milestone

6.2

Link

https://gitlab.rtems.org/rtems/rtos/rtems-examples/-/issues/3

Merges

1

Summary

  • compile rtems_example failed with error

[ 97/175] Linking build/aarch64-rtems6-phytium_pi/misc/nanosecond_tick_wrap/nanoseconds_tick_wrap.exe
[ 98/175] Compiling misc/regulator/regulator_example.c
[ 99/175] Compiling misc/regulator/rtems_config.c
../../misc/regulator/regulator_example.c: In function 'example_send_messages':
../../misc/regulator/regulator_example.c:134:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_priority'; did you mean 'delivery_thread_priority'?
134 |     .output_thread_priority = 16,
|      ^~~~~~~~~~~~~~~~~~~~~~
|      delivery_thread_priority
../../misc/regulator/regulator_example.c:135:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_stack_size'; did you mean 'delivery_thread_stack_size'?
135 |     .output_thread_stack_size = 0,
|      ^~~~~~~~~~~~~~~~~~~~~~~~
|      delivery_thread_stack_size
../../misc/regulator/regulator_example.c:136:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_period'; did you mean 'delivery_thread_period'?
136 |     .output_thread_period = RTEMS_MILLISECONDS_TO_TICKS(1000),
|      ^~~~~~~~~~~~~~~~~~~~
|      delivery_thread_period

Waf: Leaving directory `/root/rtems-work/rtems/rtems-examples/build/aarch64-rtems6-phytium_pi'
Build failed
-> task in 'regulator_example.exe' failed with exit status 1 (run with -v to display more information)
make: *** [/root/rtems-work/tools/rtems_phytium_pi.mk:40: phytium_pi_aarch64_example] Error 1
  • I modify code as gcc prompted and works ok

Steps to reproduce

Author: Joel Sherrill

2024-11-22T17:22:43.104Z

mentioned in merge request !8

Merge Requests