in 1812 he was appointed general of kalmar regiment, and participated in the war in germany, notably the attack on dessau, the battle of fredrikort and other parts of the military campaigns. in 1814 he became major general and participated in warfare on the opposite side of the rhine. in the same year he became the head of field marshal curt von stedingk's staff, and was appointed to adjutant general of foreign affairs at the army in norway, where he led the negotiations that led to the convention of moss of 1814.