Uploading with stk500v2 not working with Atmega328p and macos Sonoma

I have a project with atmega328p on 16MHz.
Trying to upload the code on Sonoma did not work with upload_flags

-C
avrdude.conf

as in my previous post:
Uploading with stk55v2 not working with attiny84 in dec 2023
Error: Verifying error

Changing the path for C in the upload_flags to

 User/<myname>/.platformio/packages/tool-avrdude/bin/avrdude.conf

as mentioned by maxgerhardt did the upload.
New upload_flags:

upload_flags =
-C
/User/<myname>/.platformio/packages/tool-avrdude/bin/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-b
$UPLOAD_SPEED
-c
stk500v2
-vv

Perhaps this could be helpful for other users. Or is there another workarround?