Problem with avr-debugger on Arduino Mega2560

Good morning,
I fired all the Serials. of my project but I still get this error message when compiling:

*  Executing task in folder VS_Aurore_V34: C:\Users\utilisateur\.platformio\penv\Scripts\platformio.exe run 

Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)
------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html
PLATFORM: Atmel AVR (5.0.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES:
 - framework-arduino-avr @ 5.2.0
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 13 compatible libraries
Scanning dependencies...
Dependency Graph
|-- avr-debugger @ 1.5.0
|-- EEPROM @ 2.0
|-- LiquidCrystal_I2C
|-- OneWire @ 2.3.8
|-- RTC @ 2.4.3
|-- SD @ 1.2.4
|-- SPI @ 1.0
|-- Wire @ 1.0
Building in release mode
Linking .pio\build\megaatmega2560\firmware.elf
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_25'
avr8-stub.c.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\megaatmega2560\firmware.elf] Error 1
===================================== [FAILED] Took 6.93 seconds =====================================
 *  The terminal process "C:\Users\utilisateur\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
 * "

Can you help me ! Thanks

It’s still referencing the Serial object somewhere.

Do you have the code?

Also note that, since the ATMega2560 has multiple hardware serials, you can actually chose to run the avr debugger on a different hardware serial – if you do though, you will have to connect an external USB-to-UART probe there to reach it.

Thanks for your message.
I’ll check again, but I had eliminated the Serial objects from my program.
They were also useless.