How to store file on NOR flash?

if i want to store file every 20min with C api, how to do it ? if i write it to /etc directory , is there some issue?

Yes, flash wear.