Skip to content

Commit 7e37df3

Browse files
nordicjmfabiobaltieri
authored andcommitted
doc: migration-guide: 3.5: Add note on SMP version 2 error handlers
Adds a note about required changed for Zephyr 3.4 SMP version 2 error translation handlers in Zephyr 3.5 (or newer) Signed-off-by: Jamie McCrae <[email protected]>
1 parent 2aafc0d commit 7e37df3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/releases/migration-guide-3.5.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ Required changes
3434
SMP version 2 error code defines for in-tree modules have been updated to
3535
replace the ``*_RET_RC_*`` parts with ``*_ERR_*``.
3636

37+
* MCUmgr SMP version 2 error translation (to legacy MCUmgr error code) is now
38+
handled in function handlers by setting the ``mg_translate_error`` function
39+
pointer of :c:struct:`mgmt_group` when registering a group. See
40+
:c:type:`smp_translate_error_fn` for function details. Any SMP version 2
41+
handlers made for Zephyr 3.4 need to be updated to include these translation
42+
functions when the groups are registered.
43+
3744
* ``zephyr,memory-region-mpu`` was renamed ``zephyr,memory-attr`` and its type
3845
moved from 'enum' to 'int'. To have a seamless conversion this is the
3946
required change in the DT:

0 commit comments

Comments
 (0)