<?xml version="1.0" encoding="us-ascii" standalone="yes"?>
<!--Created by EdgarAgents, Powered by IRIS Carbon, Unique Code 67d1efa72eea2b32e8139aaf, Generated At Wed, 12 Mar 2025 20:34:17 GMT-->
<link:linkbase xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xl="http://www.xbrl.org/2003/XLink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrli="http://www.xbrl.org/2003/instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" />
  <link:roleRef roleURI="http://electrocore.com/role/CashCashEquivalentsRestrictedCashandMarketableSecuritiesSummaryofCashCashEquivalentsRestrictedCashandMarketableSecuritiesDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#CashCashEquivalentsRestrictedCashandMarketableSecuritiesSummaryofCashCashEquivalentsRestrictedCashandMarketableSecuritiesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/ShareholdersEquityScheduleofStockPurchaseWarrantsDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#ShareholdersEquityScheduleofStockPurchaseWarrantsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/ConsolidatedStatementsofEquity" xlink:type="simple" xlink:href="ecor-20241231.xsd#ConsolidatedStatementsofEquity" />
  <link:roleRef roleURI="http://electrocore.com/role/LiquidityandCertainRisksScheduleofcompanysnetsalesDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#LiquidityandCertainRisksScheduleofcompanysnetsalesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureInventoryAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureInventoryAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShareAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureNetLossPerShareAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/RevenueSummaryofNetSalesDisaggregatedbyChannelDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#RevenueSummaryofNetSalesDisaggregatedbyChannelDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesSummaryofEstimatedUsefulLivesofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#SummaryofSignificantAccountingPoliciesSummaryofEstimatedUsefulLivesofPropertyandEquipmentDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/RevenueSummaryofNetSalesDisaggregatedbyGeographicAreaDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#RevenueSummaryofNetSalesDisaggregatedbyGeographicAreaDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensationSummaryofRestrictedStockandDeferredStockUnitsGrantedActivityDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensationSummaryofRestrictedStockandDeferredStockUnitsGrantedActivityDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureLeasesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensationAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensationAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/TheCompanyAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#TheCompanyAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureIncomeTaxesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd#eedm" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureVariableInterestEntityAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureVariableInterestEntityAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensationSummaryofAdditionalInformationaboutStockOptionsDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensationSummaryofAdditionalInformationaboutStockOptionsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/ShareholdersEquityAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#ShareholdersEquityAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilitiesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#AccruedExpensesandOtherCurrentLiabilitiesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SubsequentEventsAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#SubsequentEventsAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensationSummaryofRecognizedStockCompensationforEquityAwardsDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensationSummaryofRecognizedStockCompensationforEquityAwardsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/LiquidityandCertainRisksAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#LiquidityandCertainRisksAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SeveranceandOtherRelatedChargesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#SeveranceandOtherRelatedChargesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/FairValueMeasurementsSummaryofAssetsandLiabilitiesCarriedatFairValueDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#FairValueMeasurementsSummaryofAssetsandLiabilitiesCarriedatFairValueDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/RelatedPartyTransactionsAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#RelatedPartyTransactionsAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SegmentReportingScheduleofoperatingfinancialresultsofsegmentDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#SegmentReportingScheduleofoperatingfinancialresultsofsegmentDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#SummaryofSignificantAccountingPoliciesAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DocumentDocumentAndEntityInformation" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DocumentDocumentAndEntityInformation" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementConsolidatedBalanceSheets" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_StatementConsolidatedBalanceSheets" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_StatementConsolidatedBalanceSheetsParenthetical" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementConsolidatedStatementsOfOperations" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_StatementConsolidatedStatementsOfOperations" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementConsolidatedStatementsOfComprehensiveLoss" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_StatementConsolidatedStatementsOfComprehensiveLoss" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_StatementConsolidatedStatementsOfCashFlows" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_StatementConsolidatedStatementsOfCashFlows" />
  <link:roleRef roleURI="http://electrocore.com/role/TheCompany" xlink:type="simple" xlink:href="ecor-20241231.xsd#TheCompany" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="ecor-20241231.xsd#SummaryofSignificantAccountingPolicies" />
  <link:roleRef roleURI="http://electrocore.com/role/LiquidityandCertainRisks" xlink:type="simple" xlink:href="ecor-20241231.xsd#LiquidityandCertainRisks" />
  <link:roleRef roleURI="http://electrocore.com/role/Revenue" xlink:type="simple" xlink:href="ecor-20241231.xsd#Revenue" />
  <link:roleRef roleURI="http://electrocore.com/role/CashCashEquivalentsRestrictedCashandMarketableSecurities" xlink:type="simple" xlink:href="ecor-20241231.xsd#CashCashEquivalentsRestrictedCashandMarketableSecurities" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurements" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureFairValueMeasurements" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureInventory" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureInventory" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNet" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosurePropertyAndEquipmentNet" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeases" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureLeases" />
  <link:roleRef roleURI="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilities" xlink:type="simple" xlink:href="ecor-20241231.xsd#AccruedExpensesandOtherCurrentLiabilities" />
  <link:roleRef roleURI="http://electrocore.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="ecor-20241231.xsd#ShareholdersEquity" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShare" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureNetLossPerShare" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureVariableInterestEntity" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureVariableInterestEntity" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxes" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureIncomeTaxes" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensation" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensation" />
  <link:roleRef roleURI="http://electrocore.com/role/SegmentReporting" xlink:type="simple" xlink:href="ecor-20241231.xsd#SegmentReporting" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingencies" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureCommitmentsAndContingencies" />
  <link:roleRef roleURI="http://electrocore.com/role/RestructuringChargesandOtherRelatedCharges" xlink:type="simple" xlink:href="ecor-20241231.xsd#RestructuringChargesandOtherRelatedCharges" />
  <link:roleRef roleURI="http://electrocore.com/role/SeveranceandOtherRelatedCharges" xlink:type="simple" xlink:href="ecor-20241231.xsd#SeveranceandOtherRelatedCharges" />
  <link:roleRef roleURI="http://electrocore.com/role/RelatedPartyTransactions" xlink:type="simple" xlink:href="ecor-20241231.xsd#RelatedPartyTransactions" />
  <link:roleRef roleURI="http://electrocore.com/role/SubsequentEvents" xlink:type="simple" xlink:href="ecor-20241231.xsd#SubsequentEvents" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="ecor-20241231.xsd#SummaryofSignificantAccountingPoliciesPolicies" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#SummaryofSignificantAccountingPoliciesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/GoingConcernSignificantRisksandUncertaintiesTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#GoingConcernSignificantRisksandUncertaintiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/RevenueTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#RevenueTables" />
  <link:roleRef roleURI="http://electrocore.com/role/CashCashEquivalentsandMarketableSecuritiesTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#CashCashEquivalentsandMarketableSecuritiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureFairValueMeasurementsTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureInventoryTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureInventoryTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureLeasesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilitiesTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#AccruedExpensesandOtherCurrentLiabilitiesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/ShareholdersEquityTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#ShareholdersEquityTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureNetLossPerShareTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureNetLossPerShareTables" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureIncomeTaxesTables" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensationTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensationTables" />
  <link:roleRef roleURI="http://electrocore.com/role/SegmentReportingTables" xlink:type="simple" xlink:href="ecor-20241231.xsd#SegmentReportingTables" />
  <link:roleRef roleURI="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesScheduleofCondensedCashFlowStatementDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#SummaryofSignificantAccountingPoliciesScheduleofCondensedCashFlowStatementDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/RevenueAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#RevenueAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/FairValueMeasurementsAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#FairValueMeasurementsAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/InventoryDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#InventoryDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/InventoryDetailsCalc2" xlink:type="simple" xlink:href="ecor-20241231.xsd#InventoryDetailsCalc2" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/LeasesFutureminimumleasepaymentsundernoncancellableoperatingleasesDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#LeasesFutureminimumleasepaymentsundernoncancellableoperatingleasesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/AccruedExpensesandCurrentLiabilitiesScheduleofAccruedExpensesDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#AccruedExpensesandCurrentLiabilitiesScheduleofAccruedExpensesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesComponentsOfLossBeforeProvisionForIncomeTaxesDomesticAndForeignDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureIncomeTaxesComponentsOfLossBeforeProvisionForIncomeTaxesDomesticAndForeignDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesScheduleOfIncomeTaxProvisionFromContinuingOperationsDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureIncomeTaxesScheduleOfIncomeTaxProvisionFromContinuingOperationsDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesComponentsOfDeferredIncomeTaxAssetsAndLiabilitiesDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureIncomeTaxesComponentsOfDeferredIncomeTaxAssetsAndLiabilitiesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureIncomeTaxesReconciliationOfIncomeTaxProvisionComputedAtStatutoryRatesDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureIncomeTaxesReconciliationOfIncomeTaxProvisionComputedAtStatutoryRatesDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensationSummaryofStockOptionsGrantedActivityDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensationSummaryofStockOptionsGrantedActivityDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/StockBasedCompensationSummaryofWeightedAverageAssumptionsUsedinValuingPlansDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#StockBasedCompensationSummaryofWeightedAverageAssumptionsUsedinValuingPlansDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/SegmentReportingAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#SegmentReportingAdditionalInformationDetails" />
  <link:roleRef roleURI="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="ecor-20241231.xsd#Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CashCashEquivalentsRestrictedCashandMarketableSecuritiesSummaryofCashCashEquivalentsRestrictedCashandMarketableSecuritiesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:title="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAmortizedCostBasisCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAmortizedCostBasisCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAmortizedCostBasisCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAmortizedCostBasisCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAmortizedCostBasisCurrent" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTaxCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTaxCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:title="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:title="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:title="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:title="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:title="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAmortizedCostBasisCurrent" xlink:type="arc" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainBeforeTaxCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainBeforeTaxCurrent" xlink:type="arc" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTaxCurrent" xlink:type="arc" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:type="arc" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:title="us-gaap_DebtSecuritiesAvailableForSaleTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:title="Definition : us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems to us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:type="arc" order="12" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="us-gaap_FinancialInstrumentAxis" xlink:title="us-gaap_FinancialInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:to="us-gaap_FinancialInstrumentAxis" xlink:title="Definition : us-gaap_DebtSecuritiesAvailableForSaleTable to us-gaap_FinancialInstrumentAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:title="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FinancialInstrumentAxis" xlink:to="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:title="Definition : us-gaap_FinancialInstrumentAxis to us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USTreasuryBondSecuritiesMember" xlink:label="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="us-gaap_USTreasuryBondSecuritiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="Definition : us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain to us-gaap_USTreasuryBondSecuritiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1" xlink:title="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FinancialInstrumentAxis" xlink:to="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1" xlink:title="Definition : us-gaap_FinancialInstrumentAxis to us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/ShareholdersEquityScheduleofStockPurchaseWarrantsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercised" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExpirations" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsExercisable" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisedInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:title="Definition : ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:title="Definition : ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsOne" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:title="Definition : ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTermsExercisable" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:label="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:title="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:title="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:title="Definition : ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward to us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:title="Definition : ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercised" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:title="Definition : ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExpired" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueOutstandingOne" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueOutstandingOne" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueOutstandingOne" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueOutstandingOne" xlink:title="Definition : ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueOutstandingOne" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:title="Definition : ecor_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueRollForward to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionAggregateIntrinsicValueExercisable" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis" xlink:label="us-gaap_AwardTypeAxis" xlink:title="us-gaap_AwardTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_AwardTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_AwardTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockPurchaseWarrantsMember" xlink:label="ecor_StockPurchaseWarrantsMember" xlink:title="ecor_StockPurchaseWarrantsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="ecor_StockPurchaseWarrantsMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to ecor_StockPurchaseWarrantsMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/ConsolidatedStatementsofEquity">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems" xlink:label="us-gaap_StatementLineItems" xlink:title="us-gaap_StatementLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:title="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity" xlink:title="us-gaap_StockholdersEquity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockholdersEquity" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockholdersEquity" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent" xlink:label="us-gaap_TemporaryEquityCarryingAmountAttributableToParent" xlink:title="us-gaap_TemporaryEquityCarryingAmountAttributableToParent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_TemporaryEquityCarryingAmountAttributableToParent" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_TemporaryEquityCarryingAmountAttributableToParent" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharesOutstanding" xlink:label="us-gaap_SharesOutstanding" xlink:title="us-gaap_SharesOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_SharesOutstanding" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_SharesOutstanding" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss" xlink:title="us-gaap_NetIncomeLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_NetIncomeLoss" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_NetIncomeLoss" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:title="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockAndWarrantsIssuedDuringPeriodValue" xlink:label="ecor_StockAndWarrantsIssuedDuringPeriodValue" xlink:title="ecor_StockAndWarrantsIssuedDuringPeriodValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="ecor_StockAndWarrantsIssuedDuringPeriodValue" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to ecor_StockAndWarrantsIssuedDuringPeriodValue" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockAndWarrantsIssuedDuringPeriodShares" xlink:label="ecor_StockAndWarrantsIssuedDuringPeriodShares" xlink:title="ecor_StockAndWarrantsIssuedDuringPeriodShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="ecor_StockAndWarrantsIssuedDuringPeriodShares" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to ecor_StockAndWarrantsIssuedDuringPeriodShares" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts" xlink:label="us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts" xlink:title="us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockIssuedDuringPeriodValueWarrantsExercised" xlink:label="ecor_StockIssuedDuringPeriodValueWarrantsExercised" xlink:title="ecor_StockIssuedDuringPeriodValueWarrantsExercised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="ecor_StockIssuedDuringPeriodValueWarrantsExercised" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to ecor_StockIssuedDuringPeriodValueWarrantsExercised" xlink:type="arc" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockIssuedDuringPeriodSharesWarrantsExercised" xlink:label="ecor_StockIssuedDuringPeriodSharesWarrantsExercised" xlink:title="ecor_StockIssuedDuringPeriodSharesWarrantsExercised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="ecor_StockIssuedDuringPeriodSharesWarrantsExercised" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to ecor_StockIssuedDuringPeriodSharesWarrantsExercised" xlink:type="arc" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:label="us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:title="us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:label="us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:title="us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:label="us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:title="us-gaap_StockRedeemedOrCalledDuringPeriodShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_StockRedeemedOrCalledDuringPeriodShares" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:title="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:to="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:title="Definition : us-gaap_IncreaseDecreaseInStockholdersEquityRollForward to us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable" xlink:label="us-gaap_StatementTable" xlink:title="us-gaap_StatementTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" xlink:title="Definition : us-gaap_StatementLineItems to us-gaap_StatementTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="us-gaap_StatementClassOfStockAxis" xlink:title="us-gaap_StatementClassOfStockAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementClassOfStockAxis" xlink:title="Definition : us-gaap_StatementTable to us-gaap_StatementClassOfStockAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain" xlink:label="us-gaap_ClassOfStockDomain" xlink:title="us-gaap_ClassOfStockDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementClassOfStockAxis" xlink:to="us-gaap_ClassOfStockDomain" xlink:title="Definition : us-gaap_StatementClassOfStockAxis to us-gaap_ClassOfStockDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RedeemablePreferredStockMember" xlink:label="us-gaap_RedeemablePreferredStockMember" xlink:title="us-gaap_RedeemablePreferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="us-gaap_RedeemablePreferredStockMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to us-gaap_RedeemablePreferredStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain" xlink:label="us-gaap_ClassOfStockDomain_1" xlink:title="us-gaap_ClassOfStockDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementClassOfStockAxis" xlink:to="us-gaap_ClassOfStockDomain_1" xlink:title="Definition : us-gaap_StatementClassOfStockAxis to us-gaap_ClassOfStockDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:title="us-gaap_StatementEquityComponentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementEquityComponentsAxis" xlink:title="Definition : us-gaap_StatementTable to us-gaap_StatementEquityComponentsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ParentMember" xlink:label="us-gaap_ParentMember" xlink:title="us-gaap_ParentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_ParentMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_ParentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember" xlink:label="us-gaap_CommonStockMember" xlink:title="us-gaap_CommonStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ParentMember" xlink:to="us-gaap_CommonStockMember" xlink:title="Definition : us-gaap_ParentMember to us-gaap_CommonStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="us-gaap_AdditionalPaidInCapitalMember" xlink:title="us-gaap_AdditionalPaidInCapitalMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ParentMember" xlink:to="us-gaap_AdditionalPaidInCapitalMember" xlink:title="Definition : us-gaap_ParentMember to us-gaap_AdditionalPaidInCapitalMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsMember" xlink:label="us-gaap_RetainedEarningsMember" xlink:title="us-gaap_RetainedEarningsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ParentMember" xlink:to="us-gaap_RetainedEarningsMember" xlink:title="Definition : us-gaap_ParentMember to us-gaap_RetainedEarningsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:title="us-gaap_AccumulatedOtherComprehensiveIncomeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ParentMember" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:title="Definition : us-gaap_ParentMember to us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain_1" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_1" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/LiquidityandCertainRisksScheduleofcompanysnetsalesDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="us-gaap_ConcentrationRiskLineItems" xlink:title="us-gaap_ConcentrationRiskLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="us-gaap_ConcentrationRiskPercentage1" xlink:title="us-gaap_ConcentrationRiskPercentage1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskPercentage1" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_ConcentrationRiskPercentage1" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTable" xlink:label="us-gaap_ConcentrationRiskTable" xlink:title="us-gaap_ConcentrationRiskTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskTable" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_ConcentrationRiskTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_DepartmentofVeteransAffairsAndDepartmentOfDefenseMember" xlink:label="ecor_DepartmentofVeteransAffairsAndDepartmentOfDefenseMember" xlink:title="ecor_DepartmentofVeteransAffairsAndDepartmentOfDefenseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_DepartmentofVeteransAffairsAndDepartmentOfDefenseMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_DepartmentofVeteransAffairsAndDepartmentOfDefenseMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelFiveMember" xlink:label="ecor_ChannelFiveMember" xlink:title="ecor_ChannelFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_ChannelFiveMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_ChannelFiveMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NationalHealthServiceMember" xlink:label="ecor_NationalHealthServiceMember" xlink:title="ecor_NationalHealthServiceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_NationalHealthServiceMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_NationalHealthServiceMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain_1" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain_1" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="us-gaap_ConcentrationRiskByTypeAxis" xlink:title="us-gaap_ConcentrationRiskByTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByTypeAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_ConcentrationRiskByTypeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="us-gaap_ConcentrationRiskTypeDomain" xlink:title="us-gaap_ConcentrationRiskTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain" xlink:title="Definition : us-gaap_ConcentrationRiskByTypeAxis to us-gaap_ConcentrationRiskTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:label="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="us-gaap_RevenueFromRightsConcentrationRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="Definition : us-gaap_ConcentrationRiskTypeDomain to us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="us-gaap_ConcentrationRiskTypeDomain_1" xlink:title="us-gaap_ConcentrationRiskTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain_1" xlink:title="Definition : us-gaap_ConcentrationRiskByTypeAxis to us-gaap_ConcentrationRiskTypeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="us-gaap_ConcentrationRiskByBenchmarkAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SalesRevenueNetMember" xlink:label="us-gaap_SalesRevenueNetMember" xlink:title="us-gaap_SalesRevenueNetMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:to="us-gaap_SalesRevenueNetMember" xlink:title="Definition : us-gaap_ConcentrationRiskBenchmarkDomain to us-gaap_SalesRevenueNetMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureInventoryAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryLineItems" xlink:label="us-gaap_InventoryLineItems" xlink:title="us-gaap_InventoryLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryValuationReserves" xlink:label="us-gaap_InventoryValuationReserves" xlink:title="us-gaap_InventoryValuationReserves" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="us-gaap_InventoryValuationReserves" xlink:title="Definition : us-gaap_InventoryLineItems to us-gaap_InventoryValuationReserves" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_InventoryNoncurrentRawMaterials" xlink:label="ecor_InventoryNoncurrentRawMaterials" xlink:title="ecor_InventoryNoncurrentRawMaterials" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="ecor_InventoryNoncurrentRawMaterials" xlink:title="Definition : us-gaap_InventoryLineItems to ecor_InventoryNoncurrentRawMaterials" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_InventoryNoncurrentWorkInProcess" xlink:label="ecor_InventoryNoncurrentWorkInProcess" xlink:title="ecor_InventoryNoncurrentWorkInProcess" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="ecor_InventoryNoncurrentWorkInProcess" xlink:title="Definition : us-gaap_InventoryLineItems to ecor_InventoryNoncurrentWorkInProcess" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationInventory1" xlink:label="us-gaap_DisposalGroupIncludingDiscontinuedOperationInventory1" xlink:title="us-gaap_DisposalGroupIncludingDiscontinuedOperationInventory1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="us-gaap_DisposalGroupIncludingDiscontinuedOperationInventory1" xlink:title="Definition : us-gaap_InventoryLineItems to us-gaap_DisposalGroupIncludingDiscontinuedOperationInventory1" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NetWriteDownsReversalsOfWriteDownsOfInventories" xlink:label="ecor_NetWriteDownsReversalsOfWriteDownsOfInventories" xlink:title="ecor_NetWriteDownsReversalsOfWriteDownsOfInventories" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryLineItems" xlink:to="ecor_NetWriteDownsReversalsOfWriteDownsOfInventories" xlink:title="Definition : us-gaap_InventoryLineItems to ecor_NetWriteDownsReversalsOfWriteDownsOfInventories" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryCurrentTable" xlink:label="us-gaap_InventoryCurrentTable" xlink:title="us-gaap_InventoryCurrentTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_InventoryLineItems" xlink:to="us-gaap_InventoryCurrentTable" xlink:title="Definition : us-gaap_InventoryLineItems to us-gaap_InventoryCurrentTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="us-gaap_IncomeStatementLocationAxis" xlink:title="us-gaap_IncomeStatementLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_InventoryCurrentTable" xlink:to="us-gaap_IncomeStatementLocationAxis" xlink:title="Definition : us-gaap_InventoryCurrentTable to us-gaap_IncomeStatementLocationAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfSalesMember" xlink:label="us-gaap_CostOfSalesMember" xlink:title="us-gaap_CostOfSalesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_CostOfSalesMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_CostOfSalesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain_1" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain_1" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShareAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="us-gaap_CommonStockParOrStatedValuePerShare" xlink:title="us-gaap_CommonStockParOrStatedValuePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="us-gaap_CommonStockParOrStatedValuePerShare" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems to us-gaap_CommonStockParOrStatedValuePerShare" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToCallOptionsAndWarrants" xlink:label="us-gaap_IncrementalCommonSharesAttributableToCallOptionsAndWarrants" xlink:title="us-gaap_IncrementalCommonSharesAttributableToCallOptionsAndWarrants" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="us-gaap_IncrementalCommonSharesAttributableToCallOptionsAndWarrants" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems to us-gaap_IncrementalCommonSharesAttributableToCallOptionsAndWarrants" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:title="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems to us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:title="us-gaap_StatementEquityComponentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:to="us-gaap_StatementEquityComponentsAxis" xlink:title="Definition : us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable to us-gaap_StatementEquityComponentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember" xlink:label="us-gaap_CommonStockMember" xlink:title="us-gaap_CommonStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_CommonStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain_1" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_1" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FirstSecuritiesPurchaseAgreementMember" xlink:label="ecor_FirstSecuritiesPurchaseAgreementMember" xlink:title="ecor_FirstSecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_FirstSecuritiesPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_FirstSecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockPurchaseAgreementMember" xlink:label="ecor_StockPurchaseAgreementMember" xlink:title="ecor_StockPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_StockPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_StockPurchaseAgreementMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightAxis" xlink:label="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="us-gaap_ClassOfWarrantOrRightAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:to="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="Definition : us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable to us-gaap_ClassOfWarrantOrRightAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WarrantMember" xlink:label="us-gaap_WarrantMember" xlink:title="us-gaap_WarrantMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="us-gaap_WarrantMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to us-gaap_WarrantMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RevenueSummaryofNetSalesDisaggregatedbyChannelDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="us-gaap_DisaggregationOfRevenueLineItems" xlink:title="us-gaap_DisaggregationOfRevenueLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisaggregationOfRevenueLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="Definition : us-gaap_DisaggregationOfRevenueLineItems to us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="us-gaap_DisaggregationOfRevenueTable" xlink:title="us-gaap_DisaggregationOfRevenueTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DisaggregationOfRevenueLineItems" xlink:to="us-gaap_DisaggregationOfRevenueTable" xlink:title="Definition : us-gaap_DisaggregationOfRevenueLineItems to us-gaap_DisaggregationOfRevenueTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerSalesChannelAxis" xlink:label="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:title="us-gaap_ContractWithCustomerSalesChannelAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DisaggregationOfRevenueTable" xlink:to="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:title="Definition : us-gaap_DisaggregationOfRevenueTable to us-gaap_ContractWithCustomerSalesChannelAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:title="us-gaap_ContractWithCustomerSalesChannelDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:to="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelAxis to us-gaap_ContractWithCustomerSalesChannelDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelOneMember" xlink:label="ecor_ChannelOneMember" xlink:title="ecor_ChannelOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelOneMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelTwoMember" xlink:label="ecor_ChannelTwoMember" xlink:title="ecor_ChannelTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelTwoMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelThreeMember" xlink:label="ecor_ChannelThreeMember" xlink:title="ecor_ChannelThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelThreeMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelThreeMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelFourMember" xlink:label="ecor_ChannelFourMember" xlink:title="ecor_ChannelFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelFourMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelFourMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelFiveMember" xlink:label="ecor_ChannelFiveMember" xlink:title="ecor_ChannelFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelFiveMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelFiveMember" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="us-gaap_ContractWithCustomerSalesChannelDomain_1" xlink:title="us-gaap_ContractWithCustomerSalesChannelDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:to="us-gaap_ContractWithCustomerSalesChannelDomain_1" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelAxis to us-gaap_ContractWithCustomerSalesChannelDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesSummaryofEstimatedUsefulLivesofPropertyandEquipmentDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:title="us-gaap_PropertyPlantAndEquipmentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:title="us-gaap_PropertyPlantAndEquipmentUsefulLife" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentLineItems to us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LeaseholdImprovementsTerm" xlink:label="ecor_LeaseholdImprovementsTerm" xlink:title="ecor_LeaseholdImprovementsTerm" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:to="ecor_LeaseholdImprovementsTerm" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentLineItems to ecor_LeaseholdImprovementsTerm" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLifeDescriptionOfTermExtensibleEnumeration" xlink:label="us-gaap_PropertyPlantAndEquipmentUsefulLifeDescriptionOfTermExtensibleEnumeration" xlink:title="us-gaap_PropertyPlantAndEquipmentUsefulLifeDescriptionOfTermExtensibleEnumeration" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentUsefulLifeDescriptionOfTermExtensibleEnumeration" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentLineItems to us-gaap_PropertyPlantAndEquipmentUsefulLifeDescriptionOfTermExtensibleEnumeration" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:title="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_PropertyPlantAndEquipmentLineItems" xlink:to="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentLineItems to us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:title="us-gaap_PropertyPlantAndEquipmentByTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:to="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfPropertyPlantAndEquipmentTable to us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:title="us-gaap_PropertyPlantAndEquipmentTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentByTypeAxis to us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="us-gaap_MachineryAndEquipmentMember" xlink:title="us-gaap_MachineryAndEquipmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_MachineryAndEquipmentMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_MachineryAndEquipmentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="us-gaap_FurnitureAndFixturesMember" xlink:title="us-gaap_FurnitureAndFixturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_FurnitureAndFixturesMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_FurnitureAndFixturesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComputerEquipmentMember" xlink:label="us-gaap_ComputerEquipmentMember" xlink:title="us-gaap_ComputerEquipmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_ComputerEquipmentMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_ComputerEquipmentMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain_1" xlink:title="us-gaap_PropertyPlantAndEquipmentTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain_1" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentByTypeAxis to us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:to="srt_RangeAxis" xlink:title="Definition : us-gaap_ScheduleOfPropertyPlantAndEquipmentTable to srt_RangeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RevenueSummaryofNetSalesDisaggregatedbyGeographicAreaDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="us-gaap_DisaggregationOfRevenueLineItems" xlink:title="us-gaap_DisaggregationOfRevenueLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisaggregationOfRevenueLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="Definition : us-gaap_DisaggregationOfRevenueLineItems to us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="us-gaap_DisaggregationOfRevenueTable" xlink:title="us-gaap_DisaggregationOfRevenueTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DisaggregationOfRevenueLineItems" xlink:to="us-gaap_DisaggregationOfRevenueTable" xlink:title="Definition : us-gaap_DisaggregationOfRevenueLineItems to us-gaap_DisaggregationOfRevenueTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DisaggregationOfRevenueTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : us-gaap_DisaggregationOfRevenueTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_US" xlink:label="country_US" xlink:title="country_US" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_US" xlink:title="Definition : srt_SegmentGeographicalDomain to country_US" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_GB" xlink:label="country_GB" xlink:title="country_GB" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_GB" xlink:title="Definition : srt_SegmentGeographicalDomain to country_GB" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_OtherCountriesMember" xlink:label="ecor_OtherCountriesMember" xlink:title="ecor_OtherCountriesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ecor_OtherCountriesMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ecor_OtherCountriesMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_JP" xlink:label="country_JP" xlink:title="country_JP" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_JP" xlink:title="Definition : srt_SegmentGeographicalDomain to country_JP" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain_1" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_1" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensationSummaryofRestrictedStockandDeferredStockUnitsGrantedActivityDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" use="optional" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis" xlink:label="us-gaap_AwardTypeAxis" xlink:title="us-gaap_AwardTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_AwardTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_AwardTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_RestrictedStockAndDeferredStockMember" xlink:label="ecor_RestrictedStockAndDeferredStockMember" xlink:title="ecor_RestrictedStockAndDeferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="ecor_RestrictedStockAndDeferredStockMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to ecor_RestrictedStockAndDeferredStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LessorLeaseDescriptionLineItems" xlink:label="us-gaap_LessorLeaseDescriptionLineItems" xlink:title="us-gaap_LessorLeaseDescriptionLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LeaseNotYetRecognizedWithNonCancelablePeriodDescription" xlink:label="ecor_LeaseNotYetRecognizedWithNonCancelablePeriodDescription" xlink:title="ecor_LeaseNotYetRecognizedWithNonCancelablePeriodDescription" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LeaseNotYetRecognizedWithNonCancelablePeriodDescription" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LeaseNotYetRecognizedWithNonCancelablePeriodDescription" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseExpense" xlink:label="us-gaap_OperatingLeaseExpense" xlink:title="us-gaap_OperatingLeaseExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_OperatingLeaseExpense" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_OperatingLeaseExpense" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:label="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:title="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NetRentableAreaBeforeExpansion" xlink:label="ecor_NetRentableAreaBeforeExpansion" xlink:title="ecor_NetRentableAreaBeforeExpansion" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_NetRentableAreaBeforeExpansion" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_NetRentableAreaBeforeExpansion" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetRentableArea" xlink:label="us-gaap_NetRentableArea" xlink:title="us-gaap_NetRentableArea" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_NetRentableArea" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_NetRentableArea" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_InitialBaseRentPerSquareFoot" xlink:label="ecor_InitialBaseRentPerSquareFoot" xlink:title="ecor_InitialBaseRentPerSquareFoot" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_InitialBaseRentPerSquareFoot" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_InitialBaseRentPerSquareFoot" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PercentageOfPerAnnumIncreaseInInitialBaseRentPerSquareFoot" xlink:label="ecor_PercentageOfPerAnnumIncreaseInInitialBaseRentPerSquareFoot" xlink:title="ecor_PercentageOfPerAnnumIncreaseInInitialBaseRentPerSquareFoot" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_PercentageOfPerAnnumIncreaseInInitialBaseRentPerSquareFoot" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_PercentageOfPerAnnumIncreaseInInitialBaseRentPerSquareFoot" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AdditionalNetRentableAreaAfterExpansion" xlink:label="ecor_AdditionalNetRentableAreaAfterExpansion" xlink:title="ecor_AdditionalNetRentableAreaAfterExpansion" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_AdditionalNetRentableAreaAfterExpansion" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_AdditionalNetRentableAreaAfterExpansion" xlink:type="arc" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LeaseAgreementAmendmentEffectiveDate" xlink:label="ecor_LeaseAgreementAmendmentEffectiveDate" xlink:title="ecor_LeaseAgreementAmendmentEffectiveDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LeaseAgreementAmendmentEffectiveDate" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LeaseAgreementAmendmentEffectiveDate" xlink:type="arc" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LeaseAgreementAmendmentExpiryDate" xlink:label="ecor_LeaseAgreementAmendmentExpiryDate" xlink:title="ecor_LeaseAgreementAmendmentExpiryDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LeaseAgreementAmendmentExpiryDate" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LeaseAgreementAmendmentExpiryDate" xlink:type="arc" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermUnderOptionToExtend" xlink:label="ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermUnderOptionToExtend" xlink:title="ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermUnderOptionToExtend" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermUnderOptionToExtend" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermUnderOptionToExtend" xlink:type="arc" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AreaOfRealEstateProperty" xlink:label="us-gaap_AreaOfRealEstateProperty" xlink:title="us-gaap_AreaOfRealEstateProperty" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_AreaOfRealEstateProperty" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_AreaOfRealEstateProperty" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDateForExpansionOfLeasedProperty" xlink:label="ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDateForExpansionOfLeasedProperty" xlink:title="ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDateForExpansionOfLeasedProperty" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDateForExpansionOfLeasedProperty" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDateForExpansionOfLeasedProperty" xlink:type="arc" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AreaOfRealEstatePropertyBeforeExpansionUponLeaseAgreement" xlink:label="ecor_AreaOfRealEstatePropertyBeforeExpansionUponLeaseAgreement" xlink:title="ecor_AreaOfRealEstatePropertyBeforeExpansionUponLeaseAgreement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_AreaOfRealEstatePropertyBeforeExpansionUponLeaseAgreement" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_AreaOfRealEstatePropertyBeforeExpansionUponLeaseAgreement" xlink:type="arc" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermForExpansionOfLeasedPropertyOptionToExtend" xlink:label="ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermForExpansionOfLeasedPropertyOptionToExtend" xlink:title="ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermForExpansionOfLeasedPropertyOptionToExtend" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermForExpansionOfLeasedPropertyOptionToExtend" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTermForExpansionOfLeasedPropertyOptionToExtend" xlink:type="arc" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LesseeOperatingLeaseLeaseNotYetCommencedExpiryDate" xlink:label="ecor_LesseeOperatingLeaseLeaseNotYetCommencedExpiryDate" xlink:title="ecor_LesseeOperatingLeaseLeaseNotYetCommencedExpiryDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LesseeOperatingLeaseLeaseNotYetCommencedExpiryDate" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LesseeOperatingLeaseLeaseNotYetCommencedExpiryDate" xlink:type="arc" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDate" xlink:label="ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDate" xlink:title="ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDate" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to ecor_LesseeOperatingLeaseLeaseNotYetCommencedEffectiveDate" xlink:type="arc" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LessorLeaseDescriptionTable" xlink:label="us-gaap_LessorLeaseDescriptionTable" xlink:title="us-gaap_LessorLeaseDescriptionTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_LessorLeaseDescriptionLineItems" xlink:to="us-gaap_LessorLeaseDescriptionTable" xlink:title="Definition : us-gaap_LessorLeaseDescriptionLineItems to us-gaap_LessorLeaseDescriptionTable" xlink:type="arc" order="17" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_LessorLeaseDescriptionTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_LessorLeaseDescriptionTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AmendmentToLeaseAgreement1Member" xlink:label="ecor_AmendmentToLeaseAgreement1Member" xlink:title="ecor_AmendmentToLeaseAgreement1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_AmendmentToLeaseAgreement1Member" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_AmendmentToLeaseAgreement1Member" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_LessorLeaseDescriptionTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : us-gaap_LessorLeaseDescriptionTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/stpr/2024/stpr-2024.xsd#stpr_NJ" xlink:label="stpr_NJ" xlink:title="stpr_NJ" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="stpr_NJ" xlink:title="Definition : srt_SegmentGeographicalDomain to stpr_NJ" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain_1" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_1" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShareScheduleOfCommonStockEquivalentsExcludedFromComputationOfDilutedLossPerShareDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems to us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:title="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems to us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:title="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:to="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:title="Definition : us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable to us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:title="us-gaap_AntidilutiveSecuritiesNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis to us-gaap_AntidilutiveSecuritiesNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="us-gaap_EmployeeStockOptionMember" xlink:title="us-gaap_EmployeeStockOptionMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_EmployeeStockOptionMember" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesNameDomain to us-gaap_EmployeeStockOptionMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="us-gaap_RestrictedStockUnitsRSUMember" xlink:title="us-gaap_RestrictedStockUnitsRSUMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_RestrictedStockUnitsRSUMember" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesNameDomain to us-gaap_RestrictedStockUnitsRSUMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WarrantMember" xlink:label="us-gaap_WarrantMember" xlink:title="us-gaap_WarrantMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_WarrantMember" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesNameDomain to us-gaap_WarrantMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="us-gaap_AntidilutiveSecuritiesNameDomain_1" xlink:title="us-gaap_AntidilutiveSecuritiesNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="us-gaap_AntidilutiveSecuritiesNameDomain_1" xlink:title="Definition : us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis to us-gaap_AntidilutiveSecuritiesNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensationAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:title="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfOutstandingStockMaximum" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfOutstandingStockMaximum" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfOutstandingStockMaximum" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfOutstandingStockMaximum" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageOfOutstandingStockMaximum" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesIssuablePursuantToExerciseOfStockOptions" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesIssuablePursuantToExerciseOfStockOptions" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesIssuablePursuantToExerciseOfStockOptions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesIssuablePursuantToExerciseOfStockOptions" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesIssuablePursuantToExerciseOfStockOptions" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsContractualTerm" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsContractualTerm" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsContractualTerm" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsContractualTerm" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsContractualTerm" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:title="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="us-gaap_AllocatedShareBasedCompensationExpense" xlink:title="us-gaap_AllocatedShareBasedCompensationExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_AllocatedShareBasedCompensationExpense" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_AllocatedShareBasedCompensationExpense" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:title="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:title="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRateOfPeerEntities" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRateOfPeerEntities" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRateOfPeerEntities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRateOfPeerEntities" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRateOfPeerEntities" xlink:type="arc" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendPayments" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="15" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis" xlink:label="us-gaap_AwardTypeAxis" xlink:title="us-gaap_AwardTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_AwardTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_AwardTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_RestrictedStockAndDeferredStockMember" xlink:label="ecor_RestrictedStockAndDeferredStockMember" xlink:title="ecor_RestrictedStockAndDeferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="ecor_RestrictedStockAndDeferredStockMember" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain to ecor_RestrictedStockAndDeferredStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1" xlink:title="Definition : us-gaap_AwardTypeAxis to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameAxis" xlink:label="us-gaap_PlanNameAxis" xlink:title="us-gaap_PlanNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_PlanNameAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_PlanNameAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain" xlink:label="us-gaap_PlanNameDomain" xlink:title="us-gaap_PlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PlanNameAxis" xlink:to="us-gaap_PlanNameDomain" xlink:title="Definition : us-gaap_PlanNameAxis to us-gaap_PlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_TwoThousandEighteenOmnibusEquityIncentivePlanMember" xlink:label="ecor_TwoThousandEighteenOmnibusEquityIncentivePlanMember" xlink:title="ecor_TwoThousandEighteenOmnibusEquityIncentivePlanMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanNameDomain" xlink:to="ecor_TwoThousandEighteenOmnibusEquityIncentivePlanMember" xlink:title="Definition : us-gaap_PlanNameDomain to ecor_TwoThousandEighteenOmnibusEquityIncentivePlanMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain" xlink:label="us-gaap_PlanNameDomain_1" xlink:title="us-gaap_PlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PlanNameAxis" xlink:to="us-gaap_PlanNameDomain_1" xlink:title="Definition : us-gaap_PlanNameAxis to us-gaap_PlanNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="srt_RangeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to srt_RangeAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualAxis" xlink:label="srt_TitleOfIndividualAxis" xlink:title="srt_TitleOfIndividualAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="srt_TitleOfIndividualAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to srt_TitleOfIndividualAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NonEmployeeDirectorMember" xlink:label="ecor_NonEmployeeDirectorMember" xlink:title="ecor_NonEmployeeDirectorMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_NonEmployeeDirectorMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_NonEmployeeDirectorMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_EmployeesMember" xlink:label="ecor_EmployeesMember" xlink:title="ecor_EmployeesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_EmployeesMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_EmployeesMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/TheCompanyAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:title="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:title="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:to="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:title="Definition : ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems to ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="us-gaap_SubsidiarySaleOfStockAxis" xlink:title="us-gaap_SubsidiarySaleOfStockAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:to="us-gaap_SubsidiarySaleOfStockAxis" xlink:title="Definition : ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsTable to us-gaap_SubsidiarySaleOfStockAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:title="us-gaap_SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsidiarySaleOfStockAxis" xlink:to="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:title="Definition : us-gaap_SubsidiarySaleOfStockAxis to us-gaap_SaleOfStockNameOfTransactionDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IPOMember" xlink:label="us-gaap_IPOMember" xlink:title="us-gaap_IPOMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:to="us-gaap_IPOMember" xlink:title="Definition : us-gaap_SaleOfStockNameOfTransactionDomain to us-gaap_IPOMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="us-gaap_SaleOfStockNameOfTransactionDomain_1" xlink:title="us-gaap_SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_SubsidiarySaleOfStockAxis" xlink:to="us-gaap_SaleOfStockNameOfTransactionDomain_1" xlink:title="Definition : us-gaap_SubsidiarySaleOfStockAxis to us-gaap_SaleOfStockNameOfTransactionDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfWhollyOwnedSubsidiaries" xlink:label="ecor_NumberOfWhollyOwnedSubsidiaries" xlink:title="ecor_NumberOfWhollyOwnedSubsidiaries" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:to="ecor_NumberOfWhollyOwnedSubsidiaries" xlink:title="Definition : ecor_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems to ecor_NumberOfWhollyOwnedSubsidiaries" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_IncomeTaxDisclosureLineItems" xlink:label="ecor_IncomeTaxDisclosureLineItems" xlink:title="ecor_IncomeTaxDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:title="us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:title="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:title="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AccumulatedNonCapitalLosses" xlink:label="ecor_AccumulatedNonCapitalLosses" xlink:title="ecor_AccumulatedNonCapitalLosses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_AccumulatedNonCapitalLosses" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_AccumulatedNonCapitalLosses" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PeriodForCumulativeChangeInOwnership" xlink:label="ecor_PeriodForCumulativeChangeInOwnership" xlink:title="ecor_PeriodForCumulativeChangeInOwnership" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_PeriodForCumulativeChangeInOwnership" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_PeriodForCumulativeChangeInOwnership" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CumulativeChangeInOwnershipPercentage" xlink:label="ecor_CumulativeChangeInOwnershipPercentage" xlink:title="ecor_CumulativeChangeInOwnershipPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_CumulativeChangeInOwnershipPercentage" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_CumulativeChangeInOwnershipPercentage" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherTaxExpenseBenefit" xlink:label="us-gaap_OtherTaxExpenseBenefit" xlink:title="us-gaap_OtherTaxExpenseBenefit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="us-gaap_OtherTaxExpenseBenefit" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to us-gaap_OtherTaxExpenseBenefit" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxCreditCarryforwardAmount" xlink:label="us-gaap_TaxCreditCarryforwardAmount" xlink:title="us-gaap_TaxCreditCarryforwardAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="us-gaap_TaxCreditCarryforwardAmount" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to us-gaap_TaxCreditCarryforwardAmount" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FederalResearchAndDevelopment" xlink:label="ecor_FederalResearchAndDevelopment" xlink:title="ecor_FederalResearchAndDevelopment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_FederalResearchAndDevelopment" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_FederalResearchAndDevelopment" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NJResearchAndDevelopment" xlink:label="ecor_NJResearchAndDevelopment" xlink:title="ecor_NJResearchAndDevelopment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_NJResearchAndDevelopment" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_NJResearchAndDevelopment" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ResearchAndDevelopmentCreditsCarriedForwardYears" xlink:label="ecor_ResearchAndDevelopmentCreditsCarriedForwardYears" xlink:title="ecor_ResearchAndDevelopmentCreditsCarriedForwardYears" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_ResearchAndDevelopmentCreditsCarriedForwardYears" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_ResearchAndDevelopmentCreditsCarriedForwardYears" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_TaxableIncomeOffsetPercentage" xlink:label="ecor_TaxableIncomeOffsetPercentage" xlink:title="ecor_TaxableIncomeOffsetPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_TaxableIncomeOffsetPercentage" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_TaxableIncomeOffsetPercentage" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PercentageOfCorporateAlternativeMinimumTaxRate" xlink:label="ecor_PercentageOfCorporateAlternativeMinimumTaxRate" xlink:title="ecor_PercentageOfCorporateAlternativeMinimumTaxRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_PercentageOfCorporateAlternativeMinimumTaxRate" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_PercentageOfCorporateAlternativeMinimumTaxRate" xlink:type="arc" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ThresholdOfAvergageAdjustedFinancialStatementIncomeForCorporateAltenativeMinimumTaxApplicability" xlink:label="ecor_ThresholdOfAvergageAdjustedFinancialStatementIncomeForCorporateAltenativeMinimumTaxApplicability" xlink:title="ecor_ThresholdOfAvergageAdjustedFinancialStatementIncomeForCorporateAltenativeMinimumTaxApplicability" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_ThresholdOfAvergageAdjustedFinancialStatementIncomeForCorporateAltenativeMinimumTaxApplicability" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_ThresholdOfAvergageAdjustedFinancialStatementIncomeForCorporateAltenativeMinimumTaxApplicability" xlink:type="arc" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PeriodConsideredForCalculatingAverageAdjustedFinancialStatementIncome" xlink:label="ecor_PeriodConsideredForCalculatingAverageAdjustedFinancialStatementIncome" xlink:title="ecor_PeriodConsideredForCalculatingAverageAdjustedFinancialStatementIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_PeriodConsideredForCalculatingAverageAdjustedFinancialStatementIncome" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_PeriodConsideredForCalculatingAverageAdjustedFinancialStatementIncome" xlink:type="arc" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ExciseTaxRatePercentage" xlink:label="ecor_ExciseTaxRatePercentage" xlink:title="ecor_ExciseTaxRatePercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_ExciseTaxRatePercentage" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_ExciseTaxRatePercentage" xlink:type="arc" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromOperatingActivities" xlink:label="us-gaap_ProceedsFromOperatingActivities" xlink:title="us-gaap_ProceedsFromOperatingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="us-gaap_ProceedsFromOperatingActivities" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to us-gaap_ProceedsFromOperatingActivities" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_IncomeTaxTable" xlink:label="ecor_IncomeTaxTable" xlink:title="ecor_IncomeTaxTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_IncomeTaxDisclosureLineItems" xlink:to="ecor_IncomeTaxTable" xlink:title="Definition : ecor_IncomeTaxDisclosureLineItems to ecor_IncomeTaxTable" xlink:type="arc" order="17" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_IncomeTaxTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : ecor_IncomeTaxTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_DE" xlink:label="country_DE" xlink:title="country_DE" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_DE" xlink:title="Definition : srt_SegmentGeographicalDomain to country_DE" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FederalRandDCreditsMember" xlink:label="ecor_FederalRandDCreditsMember" xlink:title="ecor_FederalRandDCreditsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ecor_FederalRandDCreditsMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ecor_FederalRandDCreditsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NewJerseyRAndDCreditsMember" xlink:label="ecor_NewJerseyRAndDCreditsMember" xlink:title="ecor_NewJerseyRAndDCreditsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ecor_NewJerseyRAndDCreditsMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ecor_NewJerseyRAndDCreditsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain_1" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_1" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxCreditCarryforwardAxis" xlink:label="us-gaap_TaxCreditCarryforwardAxis" xlink:title="us-gaap_TaxCreditCarryforwardAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_IncomeTaxTable" xlink:to="us-gaap_TaxCreditCarryforwardAxis" xlink:title="Definition : ecor_IncomeTaxTable to us-gaap_TaxCreditCarryforwardAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="us-gaap_TaxCreditCarryforwardNameDomain" xlink:title="us-gaap_TaxCreditCarryforwardNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TaxCreditCarryforwardAxis" xlink:to="us-gaap_TaxCreditCarryforwardNameDomain" xlink:title="Definition : us-gaap_TaxCreditCarryforwardAxis to us-gaap_TaxCreditCarryforwardNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchMember" xlink:label="us-gaap_ResearchMember" xlink:title="us-gaap_ResearchMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TaxCreditCarryforwardNameDomain" xlink:to="us-gaap_ResearchMember" xlink:title="Definition : us-gaap_TaxCreditCarryforwardNameDomain to us-gaap_ResearchMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxCreditCarryforwardNameDomain" xlink:label="us-gaap_TaxCreditCarryforwardNameDomain_1" xlink:title="us-gaap_TaxCreditCarryforwardNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TaxCreditCarryforwardAxis" xlink:to="us-gaap_TaxCreditCarryforwardNameDomain_1" xlink:title="Definition : us-gaap_TaxCreditCarryforwardAxis to us-gaap_TaxCreditCarryforwardNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="us-gaap_IncomeTaxAuthorityAxis" xlink:title="us-gaap_IncomeTaxAuthorityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_IncomeTaxTable" xlink:to="us-gaap_IncomeTaxAuthorityAxis" xlink:title="Definition : ecor_IncomeTaxTable to us-gaap_IncomeTaxAuthorityAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="us-gaap_IncomeTaxAuthorityDomain" xlink:title="us-gaap_IncomeTaxAuthorityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeTaxAuthorityAxis" xlink:to="us-gaap_IncomeTaxAuthorityDomain" xlink:title="Definition : us-gaap_IncomeTaxAuthorityAxis to us-gaap_IncomeTaxAuthorityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DomesticCountryMember" xlink:label="us-gaap_DomesticCountryMember" xlink:title="us-gaap_DomesticCountryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="us-gaap_DomesticCountryMember" xlink:title="Definition : us-gaap_IncomeTaxAuthorityDomain to us-gaap_DomesticCountryMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="us-gaap_StateAndLocalJurisdictionMember" xlink:title="us-gaap_StateAndLocalJurisdictionMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="us-gaap_StateAndLocalJurisdictionMember" xlink:title="Definition : us-gaap_IncomeTaxAuthorityDomain to us-gaap_StateAndLocalJurisdictionMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="us-gaap_IncomeTaxAuthorityDomain_1" xlink:title="us-gaap_IncomeTaxAuthorityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeTaxAuthorityAxis" xlink:to="us-gaap_IncomeTaxAuthorityDomain_1" xlink:title="Definition : us-gaap_IncomeTaxAuthorityAxis to us-gaap_IncomeTaxAuthorityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UsefulLifeDescriptionOfTermDomain" xlink:label="us-gaap_UsefulLifeDescriptionOfTermDomain" xlink:title="us-gaap_UsefulLifeDescriptionOfTermDomain" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UsefulLifeTermOfLeaseMember" xlink:label="us-gaap_UsefulLifeTermOfLeaseMember" xlink:title="us-gaap_UsefulLifeTermOfLeaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_UsefulLifeDescriptionOfTermDomain" xlink:to="us-gaap_UsefulLifeTermOfLeaseMember" xlink:title="Definition : us-gaap_UsefulLifeDescriptionOfTermDomain to us-gaap_UsefulLifeTermOfLeaseMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureVariableInterestEntityAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityLineItems" xlink:label="us-gaap_VariableInterestEntityLineItems" xlink:title="us-gaap_VariableInterestEntityLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityOwnershipPercentage" xlink:label="us-gaap_VariableInterestEntityOwnershipPercentage" xlink:title="us-gaap_VariableInterestEntityOwnershipPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_VariableInterestEntityLineItems" xlink:to="us-gaap_VariableInterestEntityOwnershipPercentage" xlink:title="Definition : us-gaap_VariableInterestEntityLineItems to us-gaap_VariableInterestEntityOwnershipPercentage" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfDirectors" xlink:label="ecor_NumberOfDirectors" xlink:title="ecor_NumberOfDirectors" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_VariableInterestEntityLineItems" xlink:to="ecor_NumberOfDirectors" xlink:title="Definition : us-gaap_VariableInterestEntityLineItems to ecor_NumberOfDirectors" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfDirectorsAppoint" xlink:label="ecor_NumberOfDirectorsAppoint" xlink:title="ecor_NumberOfDirectorsAppoint" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_VariableInterestEntityLineItems" xlink:to="ecor_NumberOfDirectorsAppoint" xlink:title="Definition : us-gaap_VariableInterestEntityLineItems to ecor_NumberOfDirectorsAppoint" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VentureCapitalGainsLossesNet" xlink:label="us-gaap_VentureCapitalGainsLossesNet" xlink:title="us-gaap_VentureCapitalGainsLossesNet" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_VariableInterestEntityLineItems" xlink:to="us-gaap_VentureCapitalGainsLossesNet" xlink:title="Definition : us-gaap_VariableInterestEntityLineItems to us-gaap_VentureCapitalGainsLossesNet" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfVariableInterestEntitiesTable" xlink:label="us-gaap_ScheduleOfVariableInterestEntitiesTable" xlink:title="us-gaap_ScheduleOfVariableInterestEntitiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_VariableInterestEntityLineItems" xlink:to="us-gaap_ScheduleOfVariableInterestEntitiesTable" xlink:title="Definition : us-gaap_VariableInterestEntityLineItems to us-gaap_ScheduleOfVariableInterestEntitiesTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="srt_ConsolidatedEntitiesAxis" xlink:title="srt_ConsolidatedEntitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfVariableInterestEntitiesTable" xlink:to="srt_ConsolidatedEntitiesAxis" xlink:title="Definition : us-gaap_ScheduleOfVariableInterestEntitiesTable to srt_ConsolidatedEntitiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="srt_ConsolidatedEntitiesDomain" xlink:title="srt_ConsolidatedEntitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_ConsolidatedEntitiesAxis" xlink:to="srt_ConsolidatedEntitiesDomain" xlink:title="Definition : srt_ConsolidatedEntitiesAxis to srt_ConsolidatedEntitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:label="us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:title="us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ConsolidatedEntitiesDomain" xlink:to="us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:title="Definition : srt_ConsolidatedEntitiesDomain to us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="srt_ConsolidatedEntitiesDomain_1" xlink:title="srt_ConsolidatedEntitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_ConsolidatedEntitiesAxis" xlink:to="srt_ConsolidatedEntitiesDomain_1" xlink:title="Definition : srt_ConsolidatedEntitiesAxis to srt_ConsolidatedEntitiesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensationSummaryofAdditionalInformationaboutStockOptionsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:title="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" use="optional" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:title="Definition : us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ExercisePriceRangeOneMember" xlink:label="ecor_ExercisePriceRangeOneMember" xlink:title="ecor_ExercisePriceRangeOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceRangeOneMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceRangeOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ExercisePriceRangeTwoMember" xlink:label="ecor_ExercisePriceRangeTwoMember" xlink:title="ecor_ExercisePriceRangeTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceRangeTwoMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceRangeTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ExercisePriceRangeThreeMember" xlink:label="ecor_ExercisePriceRangeThreeMember" xlink:title="ecor_ExercisePriceRangeThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="ecor_ExercisePriceRangeThreeMember" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain to ecor_ExercisePriceRangeThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_1" xlink:title="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_1" xlink:title="Definition : us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis to us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/ShareholdersEquityAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockLineItems" xlink:label="us-gaap_ClassOfStockLineItems" xlink:title="us-gaap_ClassOfStockLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:label="us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:title="us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="us-gaap_CommonStockParOrStatedValuePerShare" xlink:title="us-gaap_CommonStockParOrStatedValuePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_CommonStockParOrStatedValuePerShare" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_CommonStockParOrStatedValuePerShare" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:label="us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:title="us-gaap_WarrantsAndRightsOutstandingMaturityDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_WarrantsAndRightsOutstandingMaturityDate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsPerShareDeclared" xlink:label="us-gaap_PreferredStockDividendsPerShareDeclared" xlink:title="us-gaap_PreferredStockDividendsPerShareDeclared" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_PreferredStockDividendsPerShareDeclared" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_PreferredStockDividendsPerShareDeclared" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockRedemptionPricePerShare" xlink:label="us-gaap_PreferredStockRedemptionPricePerShare" xlink:title="us-gaap_PreferredStockRedemptionPricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_PreferredStockRedemptionPricePerShare" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_PreferredStockRedemptionPricePerShare" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PreferredStockRedemptionShare" xlink:label="ecor_PreferredStockRedemptionShare" xlink:title="ecor_PreferredStockRedemptionShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_PreferredStockRedemptionShare" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_PreferredStockRedemptionShare" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:label="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:title="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:title="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfClassesOfUnitsPermittedForIssuance" xlink:label="ecor_NumberOfClassesOfUnitsPermittedForIssuance" xlink:title="ecor_NumberOfClassesOfUnitsPermittedForIssuance" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_NumberOfClassesOfUnitsPermittedForIssuance" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_NumberOfClassesOfUnitsPermittedForIssuance" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:label="ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:title="ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_NumberOfVoteEachMemberIsEntitledToForEachUnitHeld" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesConversionOfUnits" xlink:label="us-gaap_StockIssuedDuringPeriodSharesConversionOfUnits" xlink:title="us-gaap_StockIssuedDuringPeriodSharesConversionOfUnits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodSharesConversionOfUnits" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_StockIssuedDuringPeriodSharesConversionOfUnits" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockIssuedDuringPeriodSharesConversionOfOptions" xlink:label="ecor_StockIssuedDuringPeriodSharesConversionOfOptions" xlink:title="ecor_StockIssuedDuringPeriodSharesConversionOfOptions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_StockIssuedDuringPeriodSharesConversionOfOptions" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_StockIssuedDuringPeriodSharesConversionOfOptions" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_SharesIssuedAsPaymentInFullForAccruedAndUnpaidPreferredReturnPayable" xlink:label="ecor_SharesIssuedAsPaymentInFullForAccruedAndUnpaidPreferredReturnPayable" xlink:title="ecor_SharesIssuedAsPaymentInFullForAccruedAndUnpaidPreferredReturnPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_SharesIssuedAsPaymentInFullForAccruedAndUnpaidPreferredReturnPayable" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_SharesIssuedAsPaymentInFullForAccruedAndUnpaidPreferredReturnPayable" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AccruedAndUnpaidPreferredReturnPayable" xlink:label="ecor_AccruedAndUnpaidPreferredReturnPayable" xlink:title="ecor_AccruedAndUnpaidPreferredReturnPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_AccruedAndUnpaidPreferredReturnPayable" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_AccruedAndUnpaidPreferredReturnPayable" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharesIssuedPricePerShare" xlink:label="us-gaap_SharesIssuedPricePerShare" xlink:title="us-gaap_SharesIssuedPricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_SharesIssuedPricePerShare" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_SharesIssuedPricePerShare" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount" xlink:label="us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount" xlink:title="us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendRatePercentage" xlink:label="us-gaap_PreferredStockDividendRatePercentage" xlink:title="us-gaap_PreferredStockDividendRatePercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_PreferredStockDividendRatePercentage" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_PreferredStockDividendRatePercentage" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ReductionInPreferredReturnPercentage" xlink:label="ecor_ReductionInPreferredReturnPercentage" xlink:title="ecor_ReductionInPreferredReturnPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_ReductionInPreferredReturnPercentage" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_ReductionInPreferredReturnPercentage" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PreferredReturnPayableUponPublicOffering" xlink:label="ecor_PreferredReturnPayableUponPublicOffering" xlink:title="ecor_PreferredReturnPayableUponPublicOffering" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_PreferredReturnPayableUponPublicOffering" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_PreferredReturnPayableUponPublicOffering" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:label="us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:title="us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtConversionOriginalDebtAmount1" xlink:label="us-gaap_DebtConversionOriginalDebtAmount1" xlink:title="us-gaap_DebtConversionOriginalDebtAmount1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_DebtConversionOriginalDebtAmount1" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_DebtConversionOriginalDebtAmount1" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtConversionConvertedInstrumentAmount1" xlink:label="us-gaap_DebtConversionConvertedInstrumentAmount1" xlink:title="us-gaap_DebtConversionConvertedInstrumentAmount1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_DebtConversionConvertedInstrumentAmount1" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_DebtConversionConvertedInstrumentAmount1" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AggregateAmountOfBridgeNotesAndRelatedAccruedAndUnpaidInterest" xlink:label="ecor_AggregateAmountOfBridgeNotesAndRelatedAccruedAndUnpaidInterest" xlink:title="ecor_AggregateAmountOfBridgeNotesAndRelatedAccruedAndUnpaidInterest" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_AggregateAmountOfBridgeNotesAndRelatedAccruedAndUnpaidInterest" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_AggregateAmountOfBridgeNotesAndRelatedAccruedAndUnpaidInterest" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityNoteStockSplit" xlink:label="us-gaap_StockholdersEquityNoteStockSplit" xlink:title="us-gaap_StockholdersEquityNoteStockSplit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_StockholdersEquityNoteStockSplit" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_StockholdersEquityNoteStockSplit" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FairValueOfCommonStockSharesIssued" xlink:label="ecor_FairValueOfCommonStockSharesIssued" xlink:title="ecor_FairValueOfCommonStockSharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_FairValueOfCommonStockSharesIssued" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_FairValueOfCommonStockSharesIssued" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:label="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:title="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:type="arc" use="optional" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:title="us-gaap_ProceedsFromIssuanceOfCommonStock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:type="arc" use="optional" order="26" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:label="us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:title="us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:type="arc" use="optional" order="27" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockPricePerShare" xlink:label="us-gaap_SaleOfStockPricePerShare" xlink:title="us-gaap_SaleOfStockPricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_SaleOfStockPricePerShare" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_SaleOfStockPricePerShare" xlink:type="arc" use="optional" order="28" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:title="us-gaap_StockIssuedDuringPeriodSharesNewIssues" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:type="arc" use="optional" order="29" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NonCashCharge" xlink:label="ecor_NonCashCharge" xlink:title="ecor_NonCashCharge" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_NonCashCharge" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_NonCashCharge" xlink:type="arc" use="optional" order="30" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AdditionalCommitmentSharesIssued" xlink:label="ecor_AdditionalCommitmentSharesIssued" xlink:title="ecor_AdditionalCommitmentSharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_AdditionalCommitmentSharesIssued" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_AdditionalCommitmentSharesIssued" xlink:type="arc" use="optional" order="31" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharesIssued" xlink:label="us-gaap_SharesIssued" xlink:title="us-gaap_SharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_SharesIssued" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_SharesIssued" xlink:type="arc" use="optional" order="32" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharePrice" xlink:label="us-gaap_SharePrice" xlink:title="us-gaap_SharePrice" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_SharePrice" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_SharePrice" xlink:type="arc" use="optional" order="33" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:label="us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:title="us-gaap_ProceedsFromDebtNetOfIssuanceCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_ProceedsFromDebtNetOfIssuanceCosts" xlink:type="arc" use="optional" order="34" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="us-gaap_PreferredStockParOrStatedValuePerShare" xlink:title="us-gaap_PreferredStockParOrStatedValuePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_PreferredStockParOrStatedValuePerShare" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_PreferredStockParOrStatedValuePerShare" xlink:type="arc" use="optional" order="35" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValueOutstanding" xlink:label="us-gaap_PreferredStockValueOutstanding" xlink:title="us-gaap_PreferredStockValueOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_PreferredStockValueOutstanding" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_PreferredStockValueOutstanding" xlink:type="arc" use="optional" order="36" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsShares" xlink:label="us-gaap_PreferredStockDividendsShares" xlink:title="us-gaap_PreferredStockDividendsShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_PreferredStockDividendsShares" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_PreferredStockDividendsShares" xlink:type="arc" use="optional" order="37" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfEachSharesVotingRightsPerShares" xlink:label="ecor_NumberOfEachSharesVotingRightsPerShares" xlink:title="ecor_NumberOfEachSharesVotingRightsPerShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_NumberOfEachSharesVotingRightsPerShares" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_NumberOfEachSharesVotingRightsPerShares" xlink:type="arc" order="38" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfOfficersAndDirectors" xlink:label="ecor_NumberOfOfficersAndDirectors" xlink:title="ecor_NumberOfOfficersAndDirectors" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_NumberOfOfficersAndDirectors" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_NumberOfOfficersAndDirectors" xlink:type="arc" order="39" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ClassOfWarrantOrRightPeriodFromWhichWarrantsOrRightsExercisable" xlink:label="ecor_ClassOfWarrantOrRightPeriodFromWhichWarrantsOrRightsExercisable" xlink:title="ecor_ClassOfWarrantOrRightPeriodFromWhichWarrantsOrRightsExercisable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_ClassOfWarrantOrRightPeriodFromWhichWarrantsOrRightsExercisable" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_ClassOfWarrantOrRightPeriodFromWhichWarrantsOrRightsExercisable" xlink:type="arc" order="40" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ClassOfWarrantOrRightExpirationPeriod" xlink:label="ecor_ClassOfWarrantOrRightExpirationPeriod" xlink:title="ecor_ClassOfWarrantOrRightExpirationPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_ClassOfWarrantOrRightExpirationPeriod" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_ClassOfWarrantOrRightExpirationPeriod" xlink:type="arc" order="41" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:label="ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:title="ecor_NumberOfBasisSharesToReceiveRedemptionAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_NumberOfBasisSharesToReceiveRedemptionAmount" xlink:type="arc" order="42" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NumberOfWarrantsSoldTogetherWithAnotherClassOfWarrantEach" xlink:label="ecor_NumberOfWarrantsSoldTogetherWithAnotherClassOfWarrantEach" xlink:title="ecor_NumberOfWarrantsSoldTogetherWithAnotherClassOfWarrantEach" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_NumberOfWarrantsSoldTogetherWithAnotherClassOfWarrantEach" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_NumberOfWarrantsSoldTogetherWithAnotherClassOfWarrantEach" xlink:type="arc" order="43" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ProceedsFromIssuanceOfSecuritiesToLegalCounselOfEntityNetOfIssuanceCost" xlink:label="ecor_ProceedsFromIssuanceOfSecuritiesToLegalCounselOfEntityNetOfIssuanceCost" xlink:title="ecor_ProceedsFromIssuanceOfSecuritiesToLegalCounselOfEntityNetOfIssuanceCost" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_ProceedsFromIssuanceOfSecuritiesToLegalCounselOfEntityNetOfIssuanceCost" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_ProceedsFromIssuanceOfSecuritiesToLegalCounselOfEntityNetOfIssuanceCost" xlink:type="arc" order="44" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockIssuedDuringPeriodSharesWarrantsIssued" xlink:label="ecor_StockIssuedDuringPeriodSharesWarrantsIssued" xlink:title="ecor_StockIssuedDuringPeriodSharesWarrantsIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="ecor_StockIssuedDuringPeriodSharesWarrantsIssued" xlink:title="Definition : us-gaap_ClassOfStockLineItems to ecor_StockIssuedDuringPeriodSharesWarrantsIssued" xlink:type="arc" order="45" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="us-gaap_ScheduleOfStockByClassTable" xlink:title="us-gaap_ScheduleOfStockByClassTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ClassOfStockLineItems" xlink:to="us-gaap_ScheduleOfStockByClassTable" xlink:title="Definition : us-gaap_ClassOfStockLineItems to us-gaap_ScheduleOfStockByClassTable" xlink:type="arc" order="46" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_EquityPurchaseAgreementMember" xlink:label="ecor_EquityPurchaseAgreementMember" xlink:title="ecor_EquityPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_EquityPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_EquityPurchaseAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FirstSecuritiesPurchaseAgreementMember" xlink:label="ecor_FirstSecuritiesPurchaseAgreementMember" xlink:title="ecor_FirstSecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_EquityPurchaseAgreementMember" xlink:to="ecor_FirstSecuritiesPurchaseAgreementMember" xlink:title="Definition : ecor_EquityPurchaseAgreementMember to ecor_FirstSecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_SecondSecuritiesPurchaseAgreementMember" xlink:label="ecor_SecondSecuritiesPurchaseAgreementMember" xlink:title="ecor_SecondSecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_EquityPurchaseAgreementMember" xlink:to="ecor_SecondSecuritiesPurchaseAgreementMember" xlink:title="Definition : ecor_EquityPurchaseAgreementMember to ecor_SecondSecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:label="ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:title="ecor_ThirdSecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_EquityPurchaseAgreementMember" xlink:to="ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:title="Definition : ecor_EquityPurchaseAgreementMember to ecor_ThirdSecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_StockPurchaseAgreementMember" xlink:label="ecor_StockPurchaseAgreementMember" xlink:title="ecor_StockPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_EquityPurchaseAgreementMember" xlink:to="ecor_StockPurchaseAgreementMember" xlink:title="Definition : ecor_EquityPurchaseAgreementMember to ecor_StockPurchaseAgreementMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_SecuritiesPurchaseAgreementMember" xlink:label="ecor_SecuritiesPurchaseAgreementMember" xlink:title="ecor_SecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_SecuritiesPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_SecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="us-gaap_SubsidiarySaleOfStockAxis" xlink:title="us-gaap_SubsidiarySaleOfStockAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="us-gaap_SubsidiarySaleOfStockAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to us-gaap_SubsidiarySaleOfStockAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:title="us-gaap_SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsidiarySaleOfStockAxis" xlink:to="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:title="Definition : us-gaap_SubsidiarySaleOfStockAxis to us-gaap_SaleOfStockNameOfTransactionDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IPOMember" xlink:label="us-gaap_IPOMember" xlink:title="us-gaap_IPOMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:to="us-gaap_IPOMember" xlink:title="Definition : us-gaap_SaleOfStockNameOfTransactionDomain to us-gaap_IPOMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrivatePlacementMember" xlink:label="us-gaap_PrivatePlacementMember" xlink:title="us-gaap_PrivatePlacementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:to="us-gaap_PrivatePlacementMember" xlink:title="Definition : us-gaap_SaleOfStockNameOfTransactionDomain to us-gaap_PrivatePlacementMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_RegisteredDirectOfferingMember" xlink:label="ecor_RegisteredDirectOfferingMember" xlink:title="ecor_RegisteredDirectOfferingMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SaleOfStockNameOfTransactionDomain" xlink:to="ecor_RegisteredDirectOfferingMember" xlink:title="Definition : us-gaap_SaleOfStockNameOfTransactionDomain to ecor_RegisteredDirectOfferingMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="us-gaap_SaleOfStockNameOfTransactionDomain_1" xlink:title="us-gaap_SaleOfStockNameOfTransactionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_SubsidiarySaleOfStockAxis" xlink:to="us-gaap_SaleOfStockNameOfTransactionDomain_1" xlink:title="Definition : us-gaap_SubsidiarySaleOfStockAxis to us-gaap_SaleOfStockNameOfTransactionDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:title="us-gaap_StatementEquityComponentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="us-gaap_StatementEquityComponentsAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to us-gaap_StatementEquityComponentsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember" xlink:label="us-gaap_CommonStockMember" xlink:title="us-gaap_CommonStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_CommonStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain_1" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_1" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="srt_RangeAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to srt_RangeAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="us-gaap_StatementClassOfStockAxis" xlink:title="us-gaap_StatementClassOfStockAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="us-gaap_StatementClassOfStockAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to us-gaap_StatementClassOfStockAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain" xlink:label="us-gaap_ClassOfStockDomain" xlink:title="us-gaap_ClassOfStockDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementClassOfStockAxis" xlink:to="us-gaap_ClassOfStockDomain" xlink:title="Definition : us-gaap_StatementClassOfStockAxis to us-gaap_ClassOfStockDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RedeemablePreferredStockMember" xlink:label="us-gaap_RedeemablePreferredStockMember" xlink:title="us-gaap_RedeemablePreferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="us-gaap_RedeemablePreferredStockMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to us-gaap_RedeemablePreferredStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ProfitsInterestsMember" xlink:label="ecor_ProfitsInterestsMember" xlink:title="ecor_ProfitsInterestsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="ecor_ProfitsInterestsMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to ecor_ProfitsInterestsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CommonUnitsOtherThanProfitsInterestsMember" xlink:label="ecor_CommonUnitsOtherThanProfitsInterestsMember" xlink:title="ecor_CommonUnitsOtherThanProfitsInterestsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="ecor_CommonUnitsOtherThanProfitsInterestsMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to ecor_CommonUnitsOtherThanProfitsInterestsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="us-gaap_SeriesAPreferredStockMember" xlink:title="us-gaap_SeriesAPreferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="us-gaap_SeriesAPreferredStockMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to us-gaap_SeriesAPreferredStockMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="us-gaap_SeriesBPreferredStockMember" xlink:title="us-gaap_SeriesBPreferredStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="us-gaap_SeriesBPreferredStockMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to us-gaap_SeriesBPreferredStockMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_SeriesAWarrantsMember" xlink:label="ecor_SeriesAWarrantsMember" xlink:title="ecor_SeriesAWarrantsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfStockDomain" xlink:to="ecor_SeriesAWarrantsMember" xlink:title="Definition : us-gaap_ClassOfStockDomain to ecor_SeriesAWarrantsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain" xlink:label="us-gaap_ClassOfStockDomain_1" xlink:title="us-gaap_ClassOfStockDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementClassOfStockAxis" xlink:to="us-gaap_ClassOfStockDomain_1" xlink:title="Definition : us-gaap_StatementClassOfStockAxis to us-gaap_ClassOfStockDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis" xlink:label="us-gaap_DebtInstrumentAxis" xlink:title="us-gaap_DebtInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="us-gaap_DebtInstrumentAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to us-gaap_DebtInstrumentAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_December2015TermLoanMember" xlink:label="ecor_December2015TermLoanMember" xlink:title="ecor_December2015TermLoanMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="ecor_December2015TermLoanMember" xlink:title="Definition : us-gaap_DebtInstrumentNameDomain to ecor_December2015TermLoanMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PromissoryNotesMember" xlink:label="ecor_PromissoryNotesMember" xlink:title="ecor_PromissoryNotesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="ecor_PromissoryNotesMember" xlink:title="Definition : us-gaap_DebtInstrumentNameDomain to ecor_PromissoryNotesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain_1" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain_1" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FinancialAdvisorsMember" xlink:label="ecor_FinancialAdvisorsMember" xlink:title="ecor_FinancialAdvisorsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ecor_FinancialAdvisorsMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ecor_FinancialAdvisorsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PurchasersOfBridgeNotesMember" xlink:label="ecor_PurchasersOfBridgeNotesMember" xlink:title="ecor_PurchasersOfBridgeNotesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ecor_PurchasersOfBridgeNotesMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ecor_PurchasersOfBridgeNotesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AdvisorsMember" xlink:label="ecor_AdvisorsMember" xlink:title="ecor_AdvisorsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_AdvisorsMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_AdvisorsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain_1" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain_1" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightAxis" xlink:label="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="us-gaap_ClassOfWarrantOrRightAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="us-gaap_ClassOfWarrantOrRightAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to us-gaap_ClassOfWarrantOrRightAxis" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ExercisePriceOneMember" xlink:label="ecor_ExercisePriceOneMember" xlink:title="ecor_ExercisePriceOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_ExercisePriceOneMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_ExercisePriceOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ExercisePriceTwoMember" xlink:label="ecor_ExercisePriceTwoMember" xlink:title="ecor_ExercisePriceTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_ExercisePriceTwoMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_ExercisePriceTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WarrantMember" xlink:label="us-gaap_WarrantMember" xlink:title="us-gaap_WarrantMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="us-gaap_WarrantMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to us-gaap_WarrantMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PreFundedWarrantsMember" xlink:label="ecor_PreFundedWarrantsMember" xlink:title="ecor_PreFundedWarrantsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_PreFundedWarrantsMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_PreFundedWarrantsMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PipeWarrantsMember" xlink:label="ecor_PipeWarrantsMember" xlink:title="ecor_PipeWarrantsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ClassOfWarrantOrRightDomain" xlink:to="ecor_PipeWarrantsMember" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightDomain to ecor_PipeWarrantsMember" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfWarrantOrRightDomain" xlink:label="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="us-gaap_ClassOfWarrantOrRightDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ClassOfWarrantOrRightAxis" xlink:to="us-gaap_ClassOfWarrantOrRightDomain_1" xlink:title="Definition : us-gaap_ClassOfWarrantOrRightAxis to us-gaap_ClassOfWarrantOrRightDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis" xlink:label="dei_LegalEntityAxis" xlink:title="dei_LegalEntityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfStockByClassTable" xlink:to="dei_LegalEntityAxis" xlink:title="Definition : us-gaap_ScheduleOfStockByClassTable to dei_LegalEntityAxis" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LincolnParkCapitalFundLLCMember" xlink:label="ecor_LincolnParkCapitalFundLLCMember" xlink:title="ecor_LincolnParkCapitalFundLLCMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_EntityDomain" xlink:to="ecor_LincolnParkCapitalFundLLCMember" xlink:title="Definition : dei_EntityDomain to ecor_LincolnParkCapitalFundLLCMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain_1" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain_1" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilitiesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtLineItems" xlink:label="us-gaap_ShortTermDebtLineItems" xlink:title="us-gaap_ShortTermDebtLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="us-gaap_DebtInstrumentFaceAmount" xlink:title="us-gaap_DebtInstrumentFaceAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_DebtInstrumentFaceAmount" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_DebtInstrumentFaceAmount" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentFrequencyOfPeriodicPayment" xlink:label="us-gaap_DebtInstrumentFrequencyOfPeriodicPayment" xlink:title="us-gaap_DebtInstrumentFrequencyOfPeriodicPayment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_DebtInstrumentFrequencyOfPeriodicPayment" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_DebtInstrumentFrequencyOfPeriodicPayment" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:title="us-gaap_DebtInstrumentInterestRateStatedPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentPeriodicPayment" xlink:label="us-gaap_DebtInstrumentPeriodicPayment" xlink:title="us-gaap_DebtInstrumentPeriodicPayment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_DebtInstrumentPeriodicPayment" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_DebtInstrumentPeriodicPayment" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense" xlink:label="us-gaap_InterestExpense" xlink:title="us-gaap_InterestExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_InterestExpense" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_InterestExpense" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesPayableCurrent" xlink:label="us-gaap_NotesPayableCurrent" xlink:title="us-gaap_NotesPayableCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_NotesPayableCurrent" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_NotesPayableCurrent" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTerm" xlink:label="us-gaap_DebtInstrumentTerm" xlink:title="us-gaap_DebtInstrumentTerm" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_DebtInstrumentTerm" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_DebtInstrumentTerm" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShortTermDebtTable" xlink:label="us-gaap_ScheduleOfShortTermDebtTable" xlink:title="us-gaap_ScheduleOfShortTermDebtTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShortTermDebtLineItems" xlink:to="us-gaap_ScheduleOfShortTermDebtTable" xlink:title="Definition : us-gaap_ShortTermDebtLineItems to us-gaap_ScheduleOfShortTermDebtTable" xlink:type="arc" order="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="us-gaap_ShortTermDebtTypeAxis" xlink:title="us-gaap_ShortTermDebtTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShortTermDebtTable" xlink:to="us-gaap_ShortTermDebtTypeAxis" xlink:title="Definition : us-gaap_ScheduleOfShortTermDebtTable to us-gaap_ShortTermDebtTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="us-gaap_ShortTermDebtTypeDomain" xlink:title="us-gaap_ShortTermDebtTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ShortTermDebtTypeAxis" xlink:to="us-gaap_ShortTermDebtTypeDomain" xlink:title="Definition : us-gaap_ShortTermDebtTypeAxis to us-gaap_ShortTermDebtTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesPayableOtherPayablesMember" xlink:label="us-gaap_NotesPayableOtherPayablesMember" xlink:title="us-gaap_NotesPayableOtherPayablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShortTermDebtTypeDomain" xlink:to="us-gaap_NotesPayableOtherPayablesMember" xlink:title="Definition : us-gaap_ShortTermDebtTypeDomain to us-gaap_NotesPayableOtherPayablesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="us-gaap_ShortTermDebtTypeDomain_1" xlink:title="us-gaap_ShortTermDebtTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ShortTermDebtTypeAxis" xlink:to="us-gaap_ShortTermDebtTypeDomain_1" xlink:title="Definition : us-gaap_ShortTermDebtTypeAxis to us-gaap_ShortTermDebtTypeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AgreementAxis" xlink:label="ecor_AgreementAxis" xlink:title="ecor_AgreementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShortTermDebtTable" xlink:to="ecor_AgreementAxis" xlink:title="Definition : us-gaap_ScheduleOfShortTermDebtTable to ecor_AgreementAxis" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AgreementDomain" xlink:label="ecor_AgreementDomain" xlink:title="ecor_AgreementDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ecor_AgreementAxis" xlink:to="ecor_AgreementDomain" xlink:title="Definition : ecor_AgreementAxis to ecor_AgreementDomain" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AgreementOneMember" xlink:label="ecor_AgreementOneMember" xlink:title="ecor_AgreementOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AgreementDomain" xlink:to="ecor_AgreementOneMember" xlink:title="Definition : ecor_AgreementDomain to ecor_AgreementOneMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AgreementTwoMember" xlink:label="ecor_AgreementTwoMember" xlink:title="ecor_AgreementTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AgreementDomain" xlink:to="ecor_AgreementTwoMember" xlink:title="Definition : ecor_AgreementDomain to ecor_AgreementTwoMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AgreementDomain" xlink:label="ecor_AgreementDomain_1" xlink:title="ecor_AgreementDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ecor_AgreementAxis" xlink:to="ecor_AgreementDomain_1" xlink:title="Definition : ecor_AgreementAxis to ecor_AgreementDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SubsequentEventsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventLineItems" xlink:label="us-gaap_SubsequentEventLineItems" xlink:title="us-gaap_SubsequentEventLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:label="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:title="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedRenewalTerm1" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AreaOfRealEstateProperty" xlink:label="us-gaap_AreaOfRealEstateProperty" xlink:title="us-gaap_AreaOfRealEstateProperty" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_AreaOfRealEstateProperty" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_AreaOfRealEstateProperty" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_IncreaseDecreaseInInitialBaseRentPerAnnumOnEachAnniversaryOfEffectiveDatePercentage" xlink:label="ecor_IncreaseDecreaseInInitialBaseRentPerAnnumOnEachAnniversaryOfEffectiveDatePercentage" xlink:title="ecor_IncreaseDecreaseInInitialBaseRentPerAnnumOnEachAnniversaryOfEffectiveDatePercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="ecor_IncreaseDecreaseInInitialBaseRentPerAnnumOnEachAnniversaryOfEffectiveDatePercentage" xlink:title="Definition : us-gaap_SubsequentEventLineItems to ecor_IncreaseDecreaseInInitialBaseRentPerAnnumOnEachAnniversaryOfEffectiveDatePercentage" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AdditionalAreaOfRealEstateProperty" xlink:label="ecor_AdditionalAreaOfRealEstateProperty" xlink:title="ecor_AdditionalAreaOfRealEstateProperty" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="ecor_AdditionalAreaOfRealEstateProperty" xlink:title="Definition : us-gaap_SubsequentEventLineItems to ecor_AdditionalAreaOfRealEstateProperty" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTable" xlink:label="us-gaap_SubsequentEventTable" xlink:title="us-gaap_SubsequentEventTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_SubsequentEventLineItems" xlink:to="us-gaap_SubsequentEventTable" xlink:title="Definition : us-gaap_SubsequentEventLineItems to us-gaap_SubsequentEventTable" xlink:type="arc" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="us-gaap_SubsequentEventTypeAxis" xlink:title="us-gaap_SubsequentEventTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_SubsequentEventTable" xlink:to="us-gaap_SubsequentEventTypeAxis" xlink:title="Definition : us-gaap_SubsequentEventTable to us-gaap_SubsequentEventTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="us-gaap_SubsequentEventTypeDomain" xlink:title="us-gaap_SubsequentEventTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain" xlink:title="Definition : us-gaap_SubsequentEventTypeAxis to us-gaap_SubsequentEventTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember" xlink:label="us-gaap_SubsequentEventMember" xlink:title="us-gaap_SubsequentEventMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventTypeDomain" xlink:to="us-gaap_SubsequentEventMember" xlink:title="Definition : us-gaap_SubsequentEventTypeDomain to us-gaap_SubsequentEventMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="us-gaap_SubsequentEventTypeDomain_1" xlink:title="us-gaap_SubsequentEventTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain_1" xlink:title="Definition : us-gaap_SubsequentEventTypeAxis to us-gaap_SubsequentEventTypeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_SubsequentEventTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_SubsequentEventTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AmendmentToLeaseAgreement1Member" xlink:label="ecor_AmendmentToLeaseAgreement1Member" xlink:title="ecor_AmendmentToLeaseAgreement1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_AmendmentToLeaseAgreement1Member" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_AmendmentToLeaseAgreement1Member" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_SubsequentEventTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : us-gaap_SubsequentEventTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/stpr/2024/stpr-2024.xsd#stpr_NJ" xlink:label="stpr_NJ" xlink:title="stpr_NJ" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="stpr_NJ" xlink:title="Definition : srt_SegmentGeographicalDomain to stpr_NJ" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain_1" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_1" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensationSummaryofRecognizedStockCompensationforEquityAwardsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="us-gaap_AllocatedShareBasedCompensationExpense" xlink:title="us-gaap_AllocatedShareBasedCompensationExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_AllocatedShareBasedCompensationExpense" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_AllocatedShareBasedCompensationExpense" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:title="us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:title="Definition : us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems to us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="us-gaap_IncomeStatementLocationAxis" xlink:title="us-gaap_IncomeStatementLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:to="us-gaap_IncomeStatementLocationAxis" xlink:title="Definition : us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable to us-gaap_IncomeStatementLocationAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:title="us-gaap_SellingGeneralAndAdministrativeExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="us-gaap_ResearchAndDevelopmentExpenseMember" xlink:title="us-gaap_ResearchAndDevelopmentExpenseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_ResearchAndDevelopmentExpenseMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_ResearchAndDevelopmentExpenseMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfSalesMember" xlink:label="us-gaap_CostOfSalesMember" xlink:title="us-gaap_CostOfSalesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_CostOfSalesMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_CostOfSalesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain_1" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain_1" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/LiquidityandCertainRisksAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="us-gaap_ConcentrationRiskLineItems" xlink:title="us-gaap_ConcentrationRiskLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:label="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:title="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="us-gaap_ConcentrationRiskPercentage1" xlink:title="us-gaap_ConcentrationRiskPercentage1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskPercentage1" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_ConcentrationRiskPercentage1" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_Numberoffacilities" xlink:label="ecor_Numberoffacilities" xlink:title="ecor_Numberoffacilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="ecor_Numberoffacilities" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to ecor_Numberoffacilities" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:label="us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:title="us-gaap_RevenueRemainingPerformanceObligationPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss" xlink:title="us-gaap_NetIncomeLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_NetIncomeLoss" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_NetIncomeLoss" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:title="us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:label="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="us-gaap_CashCashEquivalentsAndShortTermInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTable" xlink:label="us-gaap_ConcentrationRiskTable" xlink:title="us-gaap_ConcentrationRiskTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskTable" xlink:title="Definition : us-gaap_ConcentrationRiskLineItems to us-gaap_ConcentrationRiskTable" xlink:type="arc" order="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_SecuritiesPurchaseAgreementMember" xlink:label="ecor_SecuritiesPurchaseAgreementMember" xlink:title="ecor_SecuritiesPurchaseAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_SecuritiesPurchaseAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_SecuritiesPurchaseAgreementMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelOneMember" xlink:label="ecor_ChannelOneMember" xlink:title="ecor_ChannelOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_ChannelOneMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_ChannelOneMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelTwoMember" xlink:label="ecor_ChannelTwoMember" xlink:title="ecor_ChannelTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_ChannelTwoMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_ChannelTwoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="us-gaap_IncomeStatementLocationAxis" xlink:title="us-gaap_IncomeStatementLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_IncomeStatementLocationAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_IncomeStatementLocationAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SalesMember" xlink:label="us-gaap_SalesMember" xlink:title="us-gaap_SalesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_SalesMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_SalesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain_1" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain_1" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="us-gaap_ConcentrationRiskByBenchmarkAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SalesRevenueNetMember" xlink:label="us-gaap_SalesRevenueNetMember" xlink:title="us-gaap_SalesRevenueNetMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:to="us-gaap_SalesRevenueNetMember" xlink:title="Definition : us-gaap_ConcentrationRiskBenchmarkDomain to us-gaap_SalesRevenueNetMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="us-gaap_ConcentrationRiskBenchmarkDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain_1" xlink:title="Definition : us-gaap_ConcentrationRiskByBenchmarkAxis to us-gaap_ConcentrationRiskBenchmarkDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis" xlink:label="dei_LegalEntityAxis" xlink:title="dei_LegalEntityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="dei_LegalEntityAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to dei_LegalEntityAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LincolnParkCapitalFundLLCMember" xlink:label="ecor_LincolnParkCapitalFundLLCMember" xlink:title="ecor_LincolnParkCapitalFundLLCMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_EntityDomain" xlink:to="ecor_LincolnParkCapitalFundLLCMember" xlink:title="Definition : dei_EntityDomain to ecor_LincolnParkCapitalFundLLCMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain" xlink:label="dei_EntityDomain_1" xlink:title="dei_EntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="dei_LegalEntityAxis" xlink:to="dei_EntityDomain_1" xlink:title="Definition : dei_LegalEntityAxis to dei_EntityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="srt_RangeAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to srt_RangeAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis" xlink:label="us-gaap_DebtInstrumentAxis" xlink:title="us-gaap_DebtInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_DebtInstrumentAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_DebtInstrumentAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PromissoryNotesMember" xlink:label="ecor_PromissoryNotesMember" xlink:title="ecor_PromissoryNotesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="ecor_PromissoryNotesMember" xlink:title="Definition : us-gaap_DebtInstrumentNameDomain to ecor_PromissoryNotesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="us-gaap_DebtInstrumentNameDomain_1" xlink:title="us-gaap_DebtInstrumentNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain_1" xlink:title="Definition : us-gaap_DebtInstrumentAxis to us-gaap_DebtInstrumentNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="us-gaap_LineOfCreditFacilityAxis" xlink:title="us-gaap_LineOfCreditFacilityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_LineOfCreditFacilityAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_LineOfCreditFacilityAxis" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="us-gaap_LineOfCreditFacilityLenderDomain" xlink:title="us-gaap_LineOfCreditFacilityLenderDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LineOfCreditFacilityAxis" xlink:to="us-gaap_LineOfCreditFacilityLenderDomain" xlink:title="Definition : us-gaap_LineOfCreditFacilityAxis to us-gaap_LineOfCreditFacilityLenderDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CitibankNAMember" xlink:label="ecor_CitibankNAMember" xlink:title="ecor_CitibankNAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LineOfCreditFacilityLenderDomain" xlink:to="ecor_CitibankNAMember" xlink:title="Definition : us-gaap_LineOfCreditFacilityLenderDomain to ecor_CitibankNAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="us-gaap_LineOfCreditFacilityLenderDomain_1" xlink:title="us-gaap_LineOfCreditFacilityLenderDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LineOfCreditFacilityAxis" xlink:to="us-gaap_LineOfCreditFacilityLenderDomain_1" xlink:title="Definition : us-gaap_LineOfCreditFacilityAxis to us-gaap_LineOfCreditFacilityLenderDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_PaycheckProtectionProgramMember" xlink:label="ecor_PaycheckProtectionProgramMember" xlink:title="ecor_PaycheckProtectionProgramMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:to="ecor_PaycheckProtectionProgramMember" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain to ecor_PaycheckProtectionProgramMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:label="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_1" xlink:title="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis" xlink:to="us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain_1" xlink:title="Definition : us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis to us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:label="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:title="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NationalHealthServiceMember" xlink:label="ecor_NationalHealthServiceMember" xlink:title="ecor_NationalHealthServiceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_NationalHealthServiceMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_NationalHealthServiceMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:label="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:title="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_DepartmentOfVeteransAffairsAndDepartmentOfDefenseAndNationalHealthServiceMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain_1" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain_1" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_LovellMember" xlink:label="ecor_LovellMember" xlink:title="ecor_LovellMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ecor_LovellMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ecor_LovellMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_NorthLasVegasMember" xlink:label="ecor_NorthLasVegasMember" xlink:title="ecor_NorthLasVegasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ecor_NorthLasVegasMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ecor_NorthLasVegasMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="us-gaap_ConcentrationRiskByTypeAxis" xlink:title="us-gaap_ConcentrationRiskByTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByTypeAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_ConcentrationRiskByTypeAxis" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="us-gaap_ConcentrationRiskTypeDomain" xlink:title="us-gaap_ConcentrationRiskTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain" xlink:title="Definition : us-gaap_ConcentrationRiskByTypeAxis to us-gaap_ConcentrationRiskTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:label="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="us-gaap_RevenueFromRightsConcentrationRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:title="Definition : us-gaap_ConcentrationRiskTypeDomain to us-gaap_RevenueFromRightsConcentrationRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="us-gaap_CustomerConcentrationRiskMember" xlink:title="us-gaap_CustomerConcentrationRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_CustomerConcentrationRiskMember" xlink:title="Definition : us-gaap_ConcentrationRiskTypeDomain to us-gaap_CustomerConcentrationRiskMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GovernmentContractsConcentrationRiskMember" xlink:label="us-gaap_GovernmentContractsConcentrationRiskMember" xlink:title="us-gaap_GovernmentContractsConcentrationRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_GovernmentContractsConcentrationRiskMember" xlink:title="Definition : us-gaap_ConcentrationRiskTypeDomain to us-gaap_GovernmentContractsConcentrationRiskMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="us-gaap_ConcentrationRiskTypeDomain_1" xlink:title="us-gaap_ConcentrationRiskTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain_1" xlink:title="Definition : us-gaap_ConcentrationRiskByTypeAxis to us-gaap_ConcentrationRiskTypeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerSalesChannelAxis" xlink:label="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:title="us-gaap_ContractWithCustomerSalesChannelAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:title="Definition : us-gaap_ConcentrationRiskTable to us-gaap_ContractWithCustomerSalesChannelAxis" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:title="us-gaap_ContractWithCustomerSalesChannelDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:to="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelAxis to us-gaap_ContractWithCustomerSalesChannelDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FacilityOneMember" xlink:label="ecor_FacilityOneMember" xlink:title="ecor_FacilityOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_FacilityOneMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_FacilityOneMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_TwoFacilitiesMember" xlink:label="ecor_TwoFacilitiesMember" xlink:title="ecor_TwoFacilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_TwoFacilitiesMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_TwoFacilitiesMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ZeroFacilitiesMember" xlink:label="ecor_ZeroFacilitiesMember" xlink:title="ecor_ZeroFacilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ZeroFacilitiesMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ZeroFacilitiesMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ChannelFiveMember" xlink:label="ecor_ChannelFiveMember" xlink:title="ecor_ChannelFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractWithCustomerSalesChannelDomain" xlink:to="ecor_ChannelFiveMember" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelDomain to ecor_ChannelFiveMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerSalesChannelDomain" xlink:label="us-gaap_ContractWithCustomerSalesChannelDomain_1" xlink:title="us-gaap_ContractWithCustomerSalesChannelDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ContractWithCustomerSalesChannelAxis" xlink:to="us-gaap_ContractWithCustomerSalesChannelDomain_1" xlink:title="Definition : us-gaap_ContractWithCustomerSalesChannelAxis to us-gaap_ContractWithCustomerSalesChannelDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SeveranceandOtherRelatedChargesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:title="us-gaap_DefinedBenefitPlanDisclosureLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PostemploymentBenefitsPeriodExpense" xlink:label="us-gaap_PostemploymentBenefitsPeriodExpense" xlink:title="us-gaap_PostemploymentBenefitsPeriodExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:to="us-gaap_PostemploymentBenefitsPeriodExpense" xlink:title="Definition : us-gaap_DefinedBenefitPlanDisclosureLineItems to us-gaap_PostemploymentBenefitsPeriodExpense" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:label="us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:title="us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:to="us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:title="Definition : us-gaap_DefinedBenefitPlanDisclosureLineItems to us-gaap_PostemploymentBenefitsLiabilityCurrentAndNoncurrent" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PostemploymentBenefitsLiabilityCurrent" xlink:label="us-gaap_PostemploymentBenefitsLiabilityCurrent" xlink:title="us-gaap_PostemploymentBenefitsLiabilityCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:to="us-gaap_PostemploymentBenefitsLiabilityCurrent" xlink:title="Definition : us-gaap_DefinedBenefitPlanDisclosureLineItems to us-gaap_PostemploymentBenefitsLiabilityCurrent" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:to="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:title="Definition : us-gaap_DefinedBenefitPlanDisclosureLineItems to us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualAxis" xlink:label="srt_TitleOfIndividualAxis" xlink:title="srt_TitleOfIndividualAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="srt_TitleOfIndividualAxis" xlink:title="Definition : us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable to srt_TitleOfIndividualAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_FormerEmployeesMember" xlink:label="ecor_FormerEmployeesMember" xlink:title="ecor_FormerEmployeesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:to="ecor_FormerEmployeesMember" xlink:title="Definition : srt_TitleOfIndividualWithRelationshipToEntityDomain to ecor_FormerEmployeesMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="srt_TitleOfIndividualWithRelationshipToEntityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_TitleOfIndividualAxis" xlink:to="srt_TitleOfIndividualWithRelationshipToEntityDomain_1" xlink:title="Definition : srt_TitleOfIndividualAxis to srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="us-gaap_IncomeStatementLocationAxis" xlink:title="us-gaap_IncomeStatementLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="us-gaap_IncomeStatementLocationAxis" xlink:title="Definition : us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable to us-gaap_IncomeStatementLocationAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:title="us-gaap_SellingGeneralAndAdministrativeExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:title="Definition : us-gaap_IncomeStatementLocationDomain to us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="us-gaap_IncomeStatementLocationDomain_1" xlink:title="us-gaap_IncomeStatementLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain_1" xlink:title="Definition : us-gaap_IncomeStatementLocationAxis to us-gaap_IncomeStatementLocationDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="us-gaap_BalanceSheetLocationAxis" xlink:title="us-gaap_BalanceSheetLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:to="us-gaap_BalanceSheetLocationAxis" xlink:title="Definition : us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable to us-gaap_BalanceSheetLocationAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="us-gaap_BalanceSheetLocationDomain" xlink:title="us-gaap_BalanceSheetLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain" xlink:title="Definition : us-gaap_BalanceSheetLocationAxis to us-gaap_BalanceSheetLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesMember" xlink:label="us-gaap_AccountsPayableAndAccruedLiabilitiesMember" xlink:title="us-gaap_AccountsPayableAndAccruedLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_AccountsPayableAndAccruedLiabilitiesMember" xlink:title="Definition : us-gaap_BalanceSheetLocationDomain to us-gaap_AccountsPayableAndAccruedLiabilitiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="us-gaap_BalanceSheetLocationDomain_1" xlink:title="us-gaap_BalanceSheetLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain_1" xlink:title="Definition : us-gaap_BalanceSheetLocationAxis to us-gaap_BalanceSheetLocationDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/FairValueMeasurementsSummaryofAssetsandLiabilitiesCarriedatFairValueDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:title="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:title="us-gaap_CashAndCashEquivalentsFairValueDisclosure" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:label="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="us-gaap_CashCashEquivalentsAndShortTermInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:label="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:title="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to ecor_CashCashEquivalentsRestrictedCashRestrictedCashEquivalentsAndMarketableSecuritiesCurrent" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:title="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:to="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems to us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:title="us-gaap_FairValueByFairValueHierarchyLevelAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:to="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable to us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:title="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:title="Definition : us-gaap_FairValueByFairValueHierarchyLevelAxis to us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="us-gaap_FairValueInputsLevel1Member" xlink:title="us-gaap_FairValueInputsLevel1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel1Member" xlink:title="Definition : us-gaap_FairValueMeasurementsFairValueHierarchyDomain to us-gaap_FairValueInputsLevel1Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="us-gaap_FairValueInputsLevel2Member" xlink:title="us-gaap_FairValueInputsLevel2Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel2Member" xlink:title="Definition : us-gaap_FairValueMeasurementsFairValueHierarchyDomain to us-gaap_FairValueInputsLevel2Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="us-gaap_FairValueInputsLevel3Member" xlink:title="us-gaap_FairValueInputsLevel3Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel3Member" xlink:title="Definition : us-gaap_FairValueMeasurementsFairValueHierarchyDomain to us-gaap_FairValueInputsLevel3Member" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1" xlink:title="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1" xlink:title="Definition : us-gaap_FairValueByFairValueHierarchyLevelAxis to us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis" xlink:label="us-gaap_InvestmentTypeAxis" xlink:title="us-gaap_InvestmentTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:to="us-gaap_InvestmentTypeAxis" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable to us-gaap_InvestmentTypeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="us-gaap_InvestmentTypeCategorizationMember" xlink:title="us-gaap_InvestmentTypeCategorizationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" xlink:title="Definition : us-gaap_InvestmentTypeAxis to us-gaap_InvestmentTypeCategorizationMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPaperMember" xlink:label="us-gaap_CommercialPaperMember" xlink:title="us-gaap_CommercialPaperMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_CommercialPaperMember" xlink:title="Definition : us-gaap_InvestmentTypeCategorizationMember to us-gaap_CommercialPaperMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="us-gaap_InvestmentTypeCategorizationMember_1" xlink:title="us-gaap_InvestmentTypeCategorizationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember_1" xlink:title="Definition : us-gaap_InvestmentTypeAxis to us-gaap_InvestmentTypeCategorizationMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="us-gaap_FinancialInstrumentAxis" xlink:title="us-gaap_FinancialInstrumentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:to="us-gaap_FinancialInstrumentAxis" xlink:title="Definition : us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable to us-gaap_FinancialInstrumentAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:title="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FinancialInstrumentAxis" xlink:to="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:title="Definition : us-gaap_FinancialInstrumentAxis to us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="us-gaap_CorporateDebtSecuritiesMember" xlink:title="us-gaap_CorporateDebtSecuritiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="us-gaap_CorporateDebtSecuritiesMember" xlink:title="Definition : us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain to us-gaap_CorporateDebtSecuritiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USTreasuryBondSecuritiesMember" xlink:label="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="us-gaap_USTreasuryBondSecuritiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="us-gaap_USTreasuryBondSecuritiesMember" xlink:title="Definition : us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain to us-gaap_USTreasuryBondSecuritiesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1" xlink:title="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FinancialInstrumentAxis" xlink:to="us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1" xlink:title="Definition : us-gaap_FinancialInstrumentAxis to us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RelatedPartyTransactionsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="us-gaap_RelatedPartyTransactionLineItems" xlink:title="us-gaap_RelatedPartyTransactionLineItems" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerMonth" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerMonth" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerMonth" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerMonth" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerMonth" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ConsultingFeesPerHour" xlink:label="ecor_ConsultingFeesPerHour" xlink:title="ecor_ConsultingFeesPerHour" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="ecor_ConsultingFeesPerHour" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to ecor_ConsultingFeesPerHour" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ConsultingFeesPerDay" xlink:label="ecor_ConsultingFeesPerDay" xlink:title="ecor_ConsultingFeesPerDay" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="ecor_ConsultingFeesPerDay" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to ecor_ConsultingFeesPerDay" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerDay" xlink:label="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerDay" xlink:title="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerDay" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerDay" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to ecor_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriodPerDay" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardTermsOfAward" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardTermsOfAward" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardTermsOfAward" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardTermsOfAward" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardTermsOfAward" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:title="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingRights" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingRights" xlink:title="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingRights" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingRights" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingRights" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:title="us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_RelatedPartyTransactionLineItems" xlink:to="us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:title="Definition : us-gaap_RelatedPartyTransactionLineItems to us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:type="arc" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:title="us-gaap_StatementEquityComponentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:to="us-gaap_StatementEquityComponentsAxis" xlink:title="Definition : us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable to us-gaap_StatementEquityComponentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember" xlink:label="us-gaap_CommonStockMember" xlink:title="us-gaap_CommonStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" xlink:title="Definition : us-gaap_EquityComponentDomain to us-gaap_CommonStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain" xlink:label="us-gaap_EquityComponentDomain_1" xlink:title="us-gaap_EquityComponentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_1" xlink:title="Definition : us-gaap_StatementEquityComponentsAxis to us-gaap_EquityComponentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:to="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:title="Definition : us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable to us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_BrianMPosnerMember" xlink:label="ecor_BrianMPosnerMember" xlink:title="ecor_BrianMPosnerMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="ecor_BrianMPosnerMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to ecor_BrianMPosnerMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_BoardOfDirectorsChairmanMember" xlink:label="srt_BoardOfDirectorsChairmanMember" xlink:title="srt_BoardOfDirectorsChairmanMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="srt_BoardOfDirectorsChairmanMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to srt_BoardOfDirectorsChairmanMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_DirectorMember" xlink:label="srt_DirectorMember" xlink:title="srt_DirectorMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RelatedPartyDomain" xlink:to="srt_DirectorMember" xlink:title="Definition : us-gaap_RelatedPartyDomain to srt_DirectorMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain" xlink:label="us-gaap_RelatedPartyDomain_1" xlink:title="us-gaap_RelatedPartyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:to="us-gaap_RelatedPartyDomain_1" xlink:title="Definition : us-gaap_RelatedPartyTransactionsByRelatedPartyAxis to us-gaap_RelatedPartyDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="us-gaap_TypeOfArrangementAxis" xlink:title="us-gaap_TypeOfArrangementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:to="us-gaap_TypeOfArrangementAxis" xlink:title="Definition : us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable to us-gaap_TypeOfArrangementAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_ConsultingAgreementMember" xlink:label="ecor_ConsultingAgreementMember" xlink:title="ecor_ConsultingAgreementMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:to="ecor_ConsultingAgreementMember" xlink:title="Definition : us-gaap_ArrangementsAndNonarrangementTransactionsMember to ecor_ConsultingAgreementMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="us-gaap_ArrangementsAndNonarrangementTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TypeOfArrangementAxis" xlink:to="us-gaap_ArrangementsAndNonarrangementTransactionsMember_1" xlink:title="Definition : us-gaap_TypeOfArrangementAxis to us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SegmentReportingScheduleofoperatingfinancialresultsofsegmentDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="us-gaap_SegmentReportingInformationLineItems" xlink:title="us-gaap_SegmentReportingInformationLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:title="Definition : us-gaap_SegmentReportingInformationLineItems to us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="us-gaap_CostOfGoodsAndServicesSold" xlink:title="us-gaap_CostOfGoodsAndServicesSold" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_CostOfGoodsAndServicesSold" xlink:title="Definition : us-gaap_SegmentReportingInformationLineItems to us-gaap_CostOfGoodsAndServicesSold" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit" xlink:label="us-gaap_GrossProfit" xlink:title="us-gaap_GrossProfit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_GrossProfit" xlink:title="Definition : us-gaap_SegmentReportingInformationLineItems to us-gaap_GrossProfit" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="us-gaap_OperatingExpensesAbstract" xlink:title="us-gaap_OperatingExpensesAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_OperatingExpensesAbstract" xlink:title="Definition : us-gaap_SegmentReportingInformationLineItems to us-gaap_OperatingExpensesAbstract" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="us-gaap_ResearchAndDevelopmentExpense" xlink:title="us-gaap_ResearchAndDevelopmentExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_ResearchAndDevelopmentExpense" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_ResearchAndDevelopmentExpense" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingAndMarketingExpense" xlink:label="us-gaap_SellingAndMarketingExpense" xlink:title="us-gaap_SellingAndMarketingExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_SellingAndMarketingExpense" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_SellingAndMarketingExpense" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="us-gaap_GeneralAndAdministrativeExpense" xlink:title="us-gaap_GeneralAndAdministrativeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_GeneralAndAdministrativeExpense" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_GeneralAndAdministrativeExpense" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="us-gaap_SellingGeneralAndAdministrativeExpense" xlink:title="us-gaap_SellingGeneralAndAdministrativeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_SellingGeneralAndAdministrativeExpense" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_SellingGeneralAndAdministrativeExpense" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses" xlink:label="us-gaap_OperatingExpenses" xlink:title="us-gaap_OperatingExpenses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_OperatingExpenses" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_OperatingExpenses" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss" xlink:label="us-gaap_OperatingIncomeLoss" xlink:title="us-gaap_OperatingIncomeLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_OperatingIncomeLoss" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_OperatingIncomeLoss" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpenseAbstract" xlink:label="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:title="us-gaap_NonoperatingIncomeExpenseAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_NonoperatingIncomeExpenseAbstract" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestAndOtherIncome" xlink:label="us-gaap_InterestAndOtherIncome" xlink:title="us-gaap_InterestAndOtherIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_InterestAndOtherIncome" xlink:title="Definition : us-gaap_NonoperatingIncomeExpenseAbstract to us-gaap_InterestAndOtherIncome" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingExpense" xlink:label="us-gaap_OtherNonoperatingExpense" xlink:title="us-gaap_OtherNonoperatingExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_OtherNonoperatingExpense" xlink:title="Definition : us-gaap_NonoperatingIncomeExpenseAbstract to us-gaap_OtherNonoperatingExpense" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="us-gaap_NonoperatingIncomeExpense" xlink:title="us-gaap_NonoperatingIncomeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_NonoperatingIncomeExpense" xlink:title="Definition : us-gaap_NonoperatingIncomeExpenseAbstract to us-gaap_NonoperatingIncomeExpense" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:title="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit" xlink:title="us-gaap_IncomeTaxExpenseBenefit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_IncomeTaxExpenseBenefit" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_IncomeTaxExpenseBenefit" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss" xlink:title="us-gaap_NetIncomeLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_NetIncomeLoss" xlink:title="Definition : us-gaap_OperatingExpensesAbstract to us-gaap_NetIncomeLoss" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:title="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:title="Definition : us-gaap_SegmentReportingInformationLineItems to us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:type="arc" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="us-gaap_StatementBusinessSegmentsAxis" xlink:title="us-gaap_StatementBusinessSegmentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" xlink:title="Definition : us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable to us-gaap_StatementBusinessSegmentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain" xlink:label="us-gaap_SegmentDomain" xlink:title="us-gaap_SegmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" xlink:title="Definition : us-gaap_StatementBusinessSegmentsAxis to us-gaap_SegmentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_MedicalDevicesSegmentMember" xlink:label="ecor_MedicalDevicesSegmentMember" xlink:title="ecor_MedicalDevicesSegmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="ecor_MedicalDevicesSegmentMember" xlink:title="Definition : us-gaap_SegmentDomain to ecor_MedicalDevicesSegmentMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain" xlink:label="us-gaap_SegmentDomain_1" xlink:title="us-gaap_SegmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain_1" xlink:title="Definition : us-gaap_StatementBusinessSegmentsAxis to us-gaap_SegmentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AccountingPoliciesLineItems" xlink:label="ecor_AccountingPoliciesLineItems" xlink:title="ecor_AccountingPoliciesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityReverseStockSplit" xlink:label="us-gaap_StockholdersEquityReverseStockSplit" xlink:title="us-gaap_StockholdersEquityReverseStockSplit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_StockholdersEquityReverseStockSplit" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_StockholdersEquityReverseStockSplit" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1" xlink:label="us-gaap_DebtInstrumentConvertibleConversionPrice1" xlink:title="us-gaap_DebtInstrumentConvertibleConversionPrice1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_DebtInstrumentConvertibleConversionPrice1" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_DebtInstrumentConvertibleConversionPrice1" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:label="us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:title="us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryAdjustments" xlink:label="us-gaap_InventoryAdjustments" xlink:title="us-gaap_InventoryAdjustments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_InventoryAdjustments" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_InventoryAdjustments" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LessorOperatingLeaseTermOfContract" xlink:label="us-gaap_LessorOperatingLeaseTermOfContract" xlink:title="us-gaap_LessorOperatingLeaseTermOfContract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_LessorOperatingLeaseTermOfContract" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_LessorOperatingLeaseTermOfContract" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherInventoryCapitalizedCosts" xlink:label="us-gaap_OtherInventoryCapitalizedCosts" xlink:title="us-gaap_OtherInventoryCapitalizedCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_OtherInventoryCapitalizedCosts" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_OtherInventoryCapitalizedCosts" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:title="us-gaap_FiniteLivedIntangibleAssetsNet" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_FiniteLivedIntangibleAssetsNet" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAssetAtAmortizedValue" xlink:label="us-gaap_ServicingAssetAtAmortizedValue" xlink:title="us-gaap_ServicingAssetAtAmortizedValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_ServicingAssetAtAmortizedValue" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_ServicingAssetAtAmortizedValue" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntermediateLifePlantsUsefulLife" xlink:label="us-gaap_IntermediateLifePlantsUsefulLife" xlink:title="us-gaap_IntermediateLifePlantsUsefulLife" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_IntermediateLifePlantsUsefulLife" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_IntermediateLifePlantsUsefulLife" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedLicenseAgreementsGross" xlink:label="us-gaap_FiniteLivedLicenseAgreementsGross" xlink:title="us-gaap_FiniteLivedLicenseAgreementsGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_FiniteLivedLicenseAgreementsGross" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_FiniteLivedLicenseAgreementsGross" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenuePerformanceObligationDescriptionOfPaymentTerms" xlink:label="us-gaap_RevenuePerformanceObligationDescriptionOfPaymentTerms" xlink:title="us-gaap_RevenuePerformanceObligationDescriptionOfPaymentTerms" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_RevenuePerformanceObligationDescriptionOfPaymentTerms" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_RevenuePerformanceObligationDescriptionOfPaymentTerms" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NumberOfOperatingSegments" xlink:label="us-gaap_NumberOfOperatingSegments" xlink:title="us-gaap_NumberOfOperatingSegments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_NumberOfOperatingSegments" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_NumberOfOperatingSegments" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashFDICInsuredAmount" xlink:label="us-gaap_CashFDICInsuredAmount" xlink:title="us-gaap_CashFDICInsuredAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_CashFDICInsuredAmount" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_CashFDICInsuredAmount" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashEquivalentsAndMarketableSecuritiesRate" xlink:label="ecor_CashEquivalentsAndMarketableSecuritiesRate" xlink:title="ecor_CashEquivalentsAndMarketableSecuritiesRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="ecor_CashEquivalentsAndMarketableSecuritiesRate" xlink:title="Definition : ecor_AccountingPoliciesLineItems to ecor_CashEquivalentsAndMarketableSecuritiesRate" xlink:type="arc" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MoneyMarketFundsAtCarryingValue" xlink:label="us-gaap_MoneyMarketFundsAtCarryingValue" xlink:title="us-gaap_MoneyMarketFundsAtCarryingValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_MoneyMarketFundsAtCarryingValue" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_MoneyMarketFundsAtCarryingValue" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInFinancialInstrumentsUsedInOperatingActivities" xlink:label="us-gaap_IncreaseDecreaseInFinancialInstrumentsUsedInOperatingActivities" xlink:title="us-gaap_IncreaseDecreaseInFinancialInstrumentsUsedInOperatingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_IncreaseDecreaseInFinancialInstrumentsUsedInOperatingActivities" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_IncreaseDecreaseInFinancialInstrumentsUsedInOperatingActivities" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CostOfGoodsAndServiceSold" xlink:label="ecor_CostOfGoodsAndServiceSold" xlink:title="ecor_CostOfGoodsAndServiceSold" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="ecor_CostOfGoodsAndServiceSold" xlink:title="Definition : ecor_AccountingPoliciesLineItems to ecor_CostOfGoodsAndServiceSold" xlink:type="arc" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AmortizationOfCloudComputingArrangement" xlink:label="ecor_AmortizationOfCloudComputingArrangement" xlink:title="ecor_AmortizationOfCloudComputingArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="ecor_AmortizationOfCloudComputingArrangement" xlink:title="Definition : ecor_AccountingPoliciesLineItems to ecor_AmortizationOfCloudComputingArrangement" xlink:type="arc" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashEquivalentSecuritiesSIPCMaximumInsuredAmount" xlink:label="ecor_CashEquivalentSecuritiesSIPCMaximumInsuredAmount" xlink:title="ecor_CashEquivalentSecuritiesSIPCMaximumInsuredAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="ecor_CashEquivalentSecuritiesSIPCMaximumInsuredAmount" xlink:title="Definition : ecor_AccountingPoliciesLineItems to ecor_CashEquivalentSecuritiesSIPCMaximumInsuredAmount" xlink:type="arc" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MarketableSecuritiesCurrent" xlink:label="us-gaap_MarketableSecuritiesCurrent" xlink:title="us-gaap_MarketableSecuritiesCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="us-gaap_MarketableSecuritiesCurrent" xlink:title="Definition : ecor_AccountingPoliciesLineItems to us-gaap_MarketableSecuritiesCurrent" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_CashEquivalentSecuritiesSIPCMaximumCashLimitOfInsuredAmount" xlink:label="ecor_CashEquivalentSecuritiesSIPCMaximumCashLimitOfInsuredAmount" xlink:title="ecor_CashEquivalentSecuritiesSIPCMaximumCashLimitOfInsuredAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="ecor_CashEquivalentSecuritiesSIPCMaximumCashLimitOfInsuredAmount" xlink:title="Definition : ecor_AccountingPoliciesLineItems to ecor_CashEquivalentSecuritiesSIPCMaximumCashLimitOfInsuredAmount" xlink:type="arc" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ecor-20241231.xsd#ecor_AccountingPoliciesTable" xlink:label="ecor_AccountingPoliciesTable" xlink:title="ecor_AccountingPoliciesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ecor_AccountingPoliciesLineItems" xlink:to="ecor_AccountingPoliciesTable" xlink:title="Definition : ecor_AccountingPoliciesLineItems to ecor_AccountingPoliciesTable" xlink:type="arc" order="21" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:title="us-gaap_PropertyPlantAndEquipmentByTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_AccountingPoliciesTable" xlink:to="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:title="Definition : ecor_AccountingPoliciesTable to us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:title="us-gaap_PropertyPlantAndEquipmentTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentByTypeAxis to us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="us-gaap_LeaseholdImprovementsMember" xlink:title="us-gaap_LeaseholdImprovementsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_LeaseholdImprovementsMember" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentTypeDomain to us-gaap_LeaseholdImprovementsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain_1" xlink:title="us-gaap_PropertyPlantAndEquipmentTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain_1" xlink:title="Definition : us-gaap_PropertyPlantAndEquipmentByTypeAxis to us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis" xlink:label="srt_RangeAxis" xlink:title="srt_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_AccountingPoliciesTable" xlink:to="srt_RangeAxis" xlink:title="Definition : ecor_AccountingPoliciesTable to srt_RangeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember" xlink:label="srt_MinimumMember" xlink:title="srt_MinimumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" xlink:title="Definition : srt_RangeMember to srt_MinimumMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember" xlink:label="srt_MaximumMember" xlink:title="srt_MaximumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" xlink:title="Definition : srt_RangeMember to srt_MaximumMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember" xlink:label="srt_RangeMember_1" xlink:title="srt_RangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_1" xlink:title="Definition : srt_RangeAxis to srt_RangeMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:title="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_AccountingPoliciesTable" xlink:to="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:title="Definition : ecor_AccountingPoliciesTable to us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:title="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:title="Definition : us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis to us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LicensingAgreementsMember" xlink:label="us-gaap_LicensingAgreementsMember" xlink:title="us-gaap_LicensingAgreementsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_LicensingAgreementsMember" xlink:title="Definition : us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain to us-gaap_LicensingAgreementsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1" xlink:title="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1" xlink:title="Definition : us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis to us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_AccountingPoliciesTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : ecor_AccountingPoliciesTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_US" xlink:label="country_US" xlink:title="country_US" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_US" xlink:title="Definition : srt_SegmentGeographicalDomain to country_US" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_GB" xlink:label="country_GB" xlink:title="country_GB" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_GB" xlink:title="Definition : srt_SegmentGeographicalDomain to country_GB" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain_1" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_1" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductOrServiceAxis" xlink:label="srt_ProductOrServiceAxis" xlink:title="srt_ProductOrServiceAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ecor_AccountingPoliciesTable" xlink:to="srt_ProductOrServiceAxis" xlink:title="Definition : ecor_AccountingPoliciesTable to srt_ProductOrServiceAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain" xlink:label="srt_ProductsAndServicesDomain" xlink:title="srt_ProductsAndServicesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_ProductOrServiceAxis" xlink:to="srt_ProductsAndServicesDomain" xlink:title="Definition : srt_ProductOrServiceAxis to srt_ProductsAndServicesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LicenseMember" xlink:label="us-gaap_LicenseMember" xlink:title="us-gaap_LicenseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="us-gaap_LicenseMember" xlink:title="Definition : srt_ProductsAndServicesDomain to us-gaap_LicenseMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain" xlink:label="srt_ProductsAndServicesDomain_1" xlink:title="srt_ProductsAndServicesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_ProductOrServiceAxis" xlink:to="srt_ProductsAndServicesDomain_1" xlink:title="Definition : srt_ProductOrServiceAxis to srt_ProductsAndServicesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DocumentDocumentAndEntityInformation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementConsolidatedBalanceSheets" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementConsolidatedBalanceSheetsParenthetical" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementConsolidatedStatementsOfOperations" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementConsolidatedStatementsOfComprehensiveLoss" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_StatementConsolidatedStatementsOfCashFlows" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/TheCompany" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/LiquidityandCertainRisks" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Revenue" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CashCashEquivalentsRestrictedCashandMarketableSecurities" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureFairValueMeasurements" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureInventory" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosurePropertyAndEquipmentNet" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeases" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilities" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/ShareholdersEquity" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShare" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureVariableInterestEntity" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxes" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SegmentReporting" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingencies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RestructuringChargesandOtherRelatedCharges" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SeveranceandOtherRelatedCharges" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RelatedPartyTransactions" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SubsequentEvents" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesPolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/GoingConcernSignificantRisksandUncertaintiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RevenueTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/CashCashEquivalentsandMarketableSecuritiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureFairValueMeasurementsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureInventoryTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/AccruedExpensesandOtherCurrentLiabilitiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/ShareholdersEquityTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureNetLossPerShareTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensationTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SegmentReportingTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SummaryofSignificantAccountingPoliciesScheduleofCondensedCashFlowStatementDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/RevenueAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/FairValueMeasurementsAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/InventoryDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/InventoryDetailsCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureLeasesSupplementalBalanceSheetInformationForOperatingLeasesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/LeasesFutureminimumleasepaymentsundernoncancellableoperatingleasesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/AccruedExpensesandCurrentLiabilitiesScheduleofAccruedExpensesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesComponentsOfLossBeforeProvisionForIncomeTaxesDomesticAndForeignDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesScheduleOfIncomeTaxProvisionFromContinuingOperationsDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesComponentsOfDeferredIncomeTaxAssetsAndLiabilitiesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureIncomeTaxesReconciliationOfIncomeTaxProvisionComputedAtStatutoryRatesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensationSummaryofStockOptionsGrantedActivityDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/StockBasedCompensationSummaryofWeightedAverageAssumptionsUsedinValuingPlansDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/SegmentReportingAdditionalInformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://electrocore.com/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails" />
</link:linkbase>
