I USE IAR7.7 AND v11.0
THERE ARE ERRS.
FS_REGISTER_CFG(fs_config_t fs_config) =
{
.callback = fs_evt_handler, // Function for event callbacks.
.num_pages = NUM_PAGES, // Number of physical flash pages required.
.priority = 0xFE // Priority for flash usage.
};
#define FS_REGISTER_CFG(cfg_var) NRF_SECTION_VARS_ADD(fs_data, cfg_var)
#define NRF_SECTION_VARS_ADD(section_name, type_def) \
__root type_def @ #section_name
//__root type_def @ #section_name
#endif
Error[Pa094]: the object attribute "__root" is not allowed here
Error[Ta017]: Auto variable "fs_config @ "fs_data"" cannot be located to section fs_data
help !!!!
thank you