Given a piecewise continuous function A:R¯+→L(CN) and a projection P1 onto a subspace X1 of CN, we investigate the injectivity, surjectivity and, more generally, the Fredholm properties of the ordinary differential operator with boundary condition (u˙+Au,P1u(0)). This operator acts from the “natural” space WA1,2={u:u˙∈L2,Au∈L2} into L2×X1. A main novelty is that it is not assumed that A is bounded or that u˙+Au=0 has any dichotomy, except to discuss the impact of the results on this special case. We show that all the functional properties of interest, including the characterization of the Fredholm index, can be related to the existence of a selfadjoint solution H of the Riccati differential inequality HA+A∗H−H˙⩾ν(A∗A+H2). Special attention is given to the simple case when H=A+A∗ satisfies this inequality. When H is known, all the other hypotheses and criteria are easily verifiable in most concrete problems.