the only difference is the space before generic… how to deal this problem ?
I’m guessing you wrote
[env: genericSTM32F103C8] board = genericSTM32F103C8 ..
then you have an environment with also a space in it, aka
" genericSTM32F103C8". Remove any spaces in the environment name.