Skip to content

rename z_NmiHandlerSet to z_arm_nmi_set_handler #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

maxd-nordic
Copy link

This should fix #49

Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
@@ -28,8 +28,8 @@
// Since we don't use the arguments we match anything with () to avoid
// compiler warnings and share the same bootup logic
static int prv_install_nmi_handler() {
extern void z_NmiHandlerSet(void (*pHandler)(void));
z_NmiHandlerSet(MEMFAULT_EXC_HANDLER_NMI);
extern void z_arm_nmi_set_handler(void (*pHandler)(void));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right file?
ports/zephyr/v2.4/memfault_fault_handler.c
This is for Zephyr v2.4, and back then the function was still named z_NmiHandlerSet()?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing it there fixes the build issue. Maybe there needs to be another version.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. But this might then break the build against older Zephyr versions?

@noahp
Copy link
Contributor

noahp commented Apr 27, 2023

Thanks @carlescufi + @maxd-nordic , this should be solved in 0.43.1:
https://github.com/memfault/memfault-firmware-sdk/releases/tag/0.43.1

(cc #49 )

@noahp noahp closed this Apr 27, 2023
@maxd-nordic maxd-nordic deleted the z_arm_nmi_set_handler branch April 27, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zephyr: z_NmiHandlerSet used in port is gone
3 participants