-
Notifications
You must be signed in to change notification settings - Fork 60
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
[nrf noup] Provide a workaround for Factory Data support on nRF54H #504
[nrf noup] Provide a workaround for Factory Data support on nRF54H #504
Conversation
|
||
# If the location of the factory data is defined as an alias, | ||
# add the base address to the factory data offset | ||
# to get the proper offset calcualted from the base memory location. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# to get the proper offset calcualted from the base memory location. | |
# to get the proper offset calculated from the base memory location. |
@@ -36,7 +36,12 @@ | |||
#else | |||
#include <zephyr/storage/flash_map.h> | |||
#define FACTORY_DATA_SIZE DT_REG_SIZE(DT_ALIAS(factory_data)) | |||
#define FACTORY_DATA_LOCATION_ADDRESS DT_REG_ADDR(DT_ALIAS(factory_data_location)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it going to pass the compilation if factory_data_location
does not exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I've done some tests locally and it seems to work.
@@ -36,7 +36,12 @@ | |||
#else | |||
#include <zephyr/storage/flash_map.h> | |||
#define FACTORY_DATA_SIZE DT_REG_SIZE(DT_ALIAS(factory_data)) | |||
#define FACTORY_DATA_LOCATION_ADDRESS DT_REG_ADDR(DT_ALIAS(factory_data_location)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I've done some tests locally and it seems to work.
Until we do not have a proper solution for merging the factory data hex file with the firmware hex file, we need to flash the factory data manually. This commit allows doing that on nRF54H20 DK. Signed-off-by: Arkadiusz Balys <[email protected]>
8cd5f5f
to
a560ba9
Compare
Until we do not have a proper solution for merging the factory data hex file with the firmware hex file, we need to flash the factory data manually. This commit allows doing that on nRF54H20 DK.