Any person subject to this chapter charged with an offense under this chapter shall be ordered into arrest or confinement, as circumstances may require; but when charged only with an offense normally tried by a summary court-martial, he shall not ordinarily be placed in confinement. When any person subject to this chapter is placed in arrest or confinement prior to trial, immediate steps shall be taken to inform him of the specific wrong of which he is accused and to try him or to dismiss the charges and release him.