In consideration of pending NRE revenue, the following article provides a pretty comprehensive overview on the 'when, how and how much'. While it references software development (ISV), I would imagine that fundamental principles still apply.
http://pragmaticmarketing.com//resources/non-recurring-engineering?p=1