sbl/drivers/nvmctrl.c
int nvmctrl_flash_write(uint32_t adr, uint8_t data[64]){
	int status = -1;

	/* Check if address is within flash area, flash always start at 0x00 at SAM L21 */
	/* Ignore if portion is dedicated to ee */
	if( adr < FLASH_SIZE){ 
		status = nvmctrl_cmd_write(NVM_CMD_WRITE_MAIN, adr, data);
	}

	return status;
}
/**
 * @brief Write to main flash - address must be 64byte aligned.
 */
@brief Write to main flash - address must be 64byte aligned.
@brief Write to main flash - address must be 64byte aligned .
int nvmctrl_flash_write(uint32_t adr, uint8_t data[64]){
	int status = -1;
	if( adr < FLASH_SIZE){ 
		status = nvmctrl_cmd_write(NVM_CMD_WRITE_MAIN, adr, data);
	}
	return status;
}
int nvmctrl_flash_write ( uint32_t adr , uint8_t data [ 64 ] ) { int status = -1 ; if ( adr < FLASH_SIZE ) { status = nvmctrl_cmd_write ( NVM_CMD_WRITE_MAIN , adr , data ) ; } return status ; }
@brief Write to main flash - address must be 64byte aligned.
@brief Write to main flash - address must be 64byte aligned .
/* Check if address is within flash area, flash always start at 0x00 at SAM L21 */ /* Ignore if portion is dedicated to ee */