EX-5.1 2 x15701exv5w1.txt CONSENT OF ERNST & YOUNG LLP EXHIBIT 5.1 CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM We consent to the reference to our firm under the caption "Experts" and to the use of our report dated February 4, 2005, in the Registration Statement (Form F-10) and related Prospectus of Cardiome Pharma Corp. for the registration of its common shares. /s/ Ernst & Young LLP Vancouver, Canada Chartered Accountants February 28, 2005