Note 7 - Stockholders' Equity (Details Textual) - USD ($) | Jun. 19, 2019 | Nov. 01, 2018 | Jul. 13, 2018 | Feb. 16, 2018 | Feb. 14, 2018 | Dec. 31, 2019 | Jan. 31, 2019 | Jun. 30, 2020 | Jun. 30, 2019 | Jun. 30, 2020 | Jun. 30, 2019 | Dec. 31, 2019 | Dec. 31, 2018 | Mar. 10, 2020 | Aug. 28, 2019 | Aug. 22, 2018 | Jan. 31, 2015 |
Preferred Stock, Shares Authorized (in shares) | | | | | | 5,000,000 | | 5,000,000 | | 5,000,000 | | 5,000,000 | | | | | |
Preferred Stock, Par or Stated Value Per Share (in dollars per share) | | | | | | $ 0.001 | | $ 0.001 | | $ 0.001 | | $ 0.001 | | | | | |
Preferred Stock, Shares Issued, Total (in shares) | | | | | | 48,503 | | 48,503 | | 48,503 | | 48,503 | | | | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | 48,503 | | 48,503 | | 48,503 | | 48,503 | | | | | |
Proceeds from Issuance or Sale of Equity, Net | | | | $ 15,500,000 | | | | | | | | | | | | | |
Common Stock, Shares Authorized (in shares) | | | | | | 100,000,000 | | 100,000,000 | | 100,000,000 | | 100,000,000 | | | | | |
Common Stock, Par or Stated Value Per Share (in dollars per share) | | | | | | $ 0.001 | | $ 0.001 | | $ 0.001 | | $ 0.001 | | | | | |
Common Stock, Shares, Issued, Total (in shares) | | | | | | 10,364,663 | | 51,339,024 | | 51,339,024 | | 10,364,663 | | | | | |
Common Stock, Shares, Outstanding, Ending Balance (in shares) | | | | | | 10,364,663 | | 51,339,024 | | 51,339,024 | | 10,364,663 | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | | | | 2,753,999 | | 2,753,999 | | 2,753,999 | | 2,753,999 | | | | | |
Proceeds from Warrant Exercises | | | | | | | | | | | $ 7,993,000 | | | | | | |
Class of Warrant or Right, Outstanding (in shares) | | | | | | | | 27,539,986 | | 27,539,986 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period (Year) | | | | | | | | | | 4 years | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period (Year) | | | | | | | | | | 10 years | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period (in shares) | | | | | | | | | | 0 | 0 | | | | | | |
Share-based Payment Arrangement, Expense, Tax Benefit | | | | | | | | $ 0 | $ 0 | $ 0 | $ 0 | | | | | | |
Share-based Payment Arrangement, Option [Member] | | | | | | | | | | | | | | | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount, Total | | | | | | | | 20,000 | | $ 20,000 | | | | | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition (Year) | | | | | | | | | | 255 days | | | | | | | |
Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount, Total | | | | | | | | $ 1,900,000 | | $ 1,900,000 | | | | | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition (Year) | | | | | | | | | | 1 year 146 days | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number, Ending Balance (in shares) | | | | | | 908,504 | | 815,187 | | 815,187 | | 908,504 | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Fair Value | | | | | | | | $ 300,000 | | $ 300,000 | | | | | | | |
Share Price (in dollars per share) | | | | | | | | $ 0.31 | | $ 0.31 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value | | | | | | | | | | $ 1,200 | $ 565 | | | | | | |
Minimum [Member] | Common Stock Options [ member] | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Purchase Price of Common Stock, Percent | | | | | | | | | | 100.00% | | | | | | | |
Minimum [Member] | Common Stock Options [ member] | Stockholder with More than 10% Voting Power [Member] | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Purchase Price of Common Stock, Percent | | | | | | | | | | 110.00% | | | | | | | |
Minimum [Member] | Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period (Year) | | | | | | | | | | 3 years | | | | | | | |
Maximum [Member] | Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period (Year) | | | | | | | | | | 4 years | | | | | | | |
The 2015 Employee Stock Purchase Plan [Member] | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized (in shares) | | | | | | | | | | | | | | | | | 3,300 |
Share-based Compensation Arrangement by Share-based Payment Award, Additional Shares Reserved for Issuance, Annual (in shares) | | | | | | | | | | | | | | | | | 4,225 |
Share-based Compensation Arrangement by Share-based Payment Award, Additional Shares Reserved for Issuance, Percentage on Shares Outstanding | | | | | | | | | | | | | | | | | 5.00% |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Additional Shares Authorized (in shares) | 800,000 | | | | | | | | | | | | 300,000 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant (in shares) | | | | | | | | 187,753 | | 187,753 | | | | | | | |
Officer and Director Share Purchase Plan [Member] | | | | | | | | | | | | | | | | | |
Common Stock, Shares, Issued, Total (in shares) | | | | | | | | 53,034 | | 53,034 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized (in shares) | | | | | | | | | | | | | | 125,000 | 40,000 | 20,000 | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant (in shares) | | | | | | | | 92,170 | | 92,170 | | | | | | | |
Common Stock Warrants, Issued with Series E Convertible Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Securities Called as Percentage of Convertible Preferred Stock Shares | | | | | | | | | | | | | | | | | 50.00% |
Common Stock Warrants, Issued with Series B Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | | 1,797,900 | | | | 1,768,850 | | 1,768,850 | | | | | | | |
Common Stock Warrants, Issued with Series B Preferred Stock, Warrant One [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Warrants Issued for Each Share of Preferred Stock (in shares) | | | | 1 | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | $ 4 | | | | | | | | | | | | | |
Class of Warrant or Right, Contingent Expiration Period Following Initial Exercise Date (Year) | | | | 7 years | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Each Warrant or Right (in shares) | | | | 50 | | | | | | | | | | | | | |
Common Stock Warrants, Issued with Series B Preferred Stock, Warrant Two [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Warrants Issued for Each Share of Preferred Stock (in shares) | | | | 1 | | | | | | | | | | | | | |
Class of Warrant or Right, Contingent Expiration Period Following Initial Exercise Date (Year) | | | | 7 years | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Each Warrant or Right (in shares) | | | | 50 | | | | | | | | | | | | | |
Class of Warrant or Right, Expiration Period Following FDA Clearance (Day) | | | | 60 days | | | | | | | | | | | | | |
Common Stock Warrants [Member] | Placement Agency Sale - Prospectus Supplement of July 12, 2018 [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | 108,309 | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | $ 15.80 | | | | | | | | | | | | | | |
Common Stock Warrants [Member] | November Public Offering [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | 2,875,000 | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | $ 4 | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Each Warrant or Right (in shares) | | 1 | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercised (in shares) | | | | | | | | | | | | 1,998,079 | | | | | |
Proceeds from Warrant Exercises | | | | | | | | | | | | $ 8,000,000 | | | | | |
Class of Warrant or Right, Outstanding (in shares) | | | | | | 876,840 | | 876,840 | | 876,840 | | 876,840 | | | | | |
Preferred Stock Warrants [Member] | November Public Offering [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Each Warrant or Right (in shares) | | 250 | | | | | | | | | | | | | | | |
Common Stock [Member] | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | 728,500 | | | | | | | | | | | | | | | |
Common Stock [Member] | Placement Agency Sale - Prospectus Supplement of July 12, 2018 [Member] | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | 216,618 | | | | | | | | | | | | | | |
Common Stock [Member] | November Public Offering [Member] | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | 728,500 | | | | | | | | | | | | | | | |
Conversion of Series B Preferred Stock into Common Stock [Member] | | | | | | | | | | | | | | | | | |
Conversion of Stock, Shares Converted (in shares) | | | | | | | | | | | | 1,523 | | | | | |
Conversion of Stock, Shares Issued (in shares) | | | | | | | | | | | | 380,750 | | | | | |
Conversion of Series C Preferred Stock into Common Stock [Member] | | | | | | | | | | | | | | | | | |
Conversion of Stock, Shares Issued (in shares) | | | | | | | | | | | 542,500 | | | | | | |
Series A Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | | | 48,325 | | 48,325 | | | | | | | |
Dividends, Preferred Stock, Total | | | | | | | | $ 967,000 | $ 895,000 | $ 1,900,000 | $ 1,800,000 | | | | | | |
Series A Preferred Stock [Member] | CRG [Member] | | | | | | | | | | | | | | | | | |
Preferred Stock Dividends, Shares (in shares) | | | | | | 3,580 | 2,945 | | | | | | | | | | |
Series B Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Preferred Stock, Par or Stated Value Per Share (in dollars per share) | | | | $ 0.001 | | | | | | | | | | | | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | 178 | | 178 | | 178 | | 178 | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | | 17,979 | | | | | | | | | | | | | |
Preferred Stock, Convertible, Conversion Price (in dollars per share) | | | | | | | | | | $ 0.25 | | $ 0.25 | | | | | |
Series C Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Preferred Stock, Par or Stated Value Per Share (in dollars per share) | | $ 0.001 | | | | | | | | | | | | | | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | | | | 2,170 | | 2,170 | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | 8,586 | | | | | | | | | | | | | | | |
Proceeds from Issuance or Sale of Equity, Net | | $ 10,200,000 | | | | | | | | | | | | | | | |
Conversion of Principal Amount of Senior Secured Loan to Newly Authorized Series A Preferred Stock [Member] | Series A Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Convertible Preferred Stock, Shares of Common Stock Issuable on Conversion (in shares) | | | | | 2,090,000 | | | | | | | | | | | | |
Preferred Stock, Dividend Rate, Percentage | | | | | 8.00% | | | | | | | | | | | | |
CRG [Member] | Conversion of Principal Amount of Senior Secured Loan to Newly Authorized Series A Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Debt Conversion, Original Debt, Amount | | | | | $ 38,000,000 | | | | | | | | | | | | |
Debt Conversion, Fees and Prepayment Premium Amount | | | | | 3,800,000 | | | | | | | | | | | | |
Debt Conversion, Converted Instrument, Amount | | | | | $ 41,800,000 | | | | | | | | | | | | |