https://www.erowid.org/archive/rhodium/chemistry/codeine2morphine.html
will this method work?
A solution of 3.00 grams (10 mmol) of codeine in 60 ml of dry dimethylformamide was degassed under nitrogen by repeatedly stirring under vacuum, followed by inletting nitrogen. Following the addition...
Introduction
The O-demethylation of codeine to yield morphine has been reported using a variety of reagents, including sodium propylmercaptide in dimethylformamide and boron tribromide in chloroform. These methods require a considerable measure of chemical expertise and suitable laboratory...