the only difference is the space before generic… how to deal this problem ?
Error: Unknown environment names 'genericSTM32F103C8'. Valid names are ' genericSTM32F103C8'
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.