Arduino Uno using 12Mhz crystal

Dear All Have a nice day

I need to run Arduino Uno at 12Mhz speed ( I change the 16Mhz crystal to 12Mhz crystal )
Then

Program can be uploaded using ISP port

But it can't be uploaded program using USB port ......I think due to baudd rate issue
Edited - In am using Arduino Uno R3 version
Please advise possible solution

Thanks in advanced

"Baud rate"?

For the IDE you need a board definition with the correct CPU clock speed.

For the Uno R3, you might also need to change the 16U2 USB-serial interface to reflect the altered CPU clock rate as well, as the two chips talk to each other via UART serial.

Please advice where I can change this parameters

You can install another bootloader

No, surely not. USB/serial interface works at its own speed. This is not affected by main MCU's clock. Plus, we do not know if he have genuine UNO with ATmega16U2 there. It does not matter anyway.

All you need is to replace the bootloader. It have to be built for 12MHz. Currently there is no bootloader because you programmed the board using ISP port. This process erases the whole flash memory.
You can use the bootlader from the link posted by @MaximoEsfuerzo and it should be just fine.

I am Using Arduino Uno R3 version ( TQFP )

Yes I replaced the bootloader again before programed via USB port

You can use the bootlader from the link posted by @MaximoEsfuerzo and it should be just fine.
[/quote]

As I wrote, USB/serial converter has nothing with the main MCU's clock but the bootloader does.

Thanks for advise
Now I am studding about it

It is not a quite correct.
You are right, saying that all what he need for successful upload is correct bootloader.
But in order for the user sketch to be executed taking into account the changed frequency, so that millis and micros correspond to millis and microseconds, and the Serial will able to work, you need to set the F_CPU variable before compilation.

I do not understand what you mean. If the bootloader was built for 12MHz so the F_CPU was set the same way. Of course, the board settings must be correct.

This is a correct but useless remark.

As far I know, standard Arduino IDe doesn't contain a setting for Arduino Uno 12 MHz. That is, the user must set these settings himself in the arduino IDE config files. what you didn't tell him.
You only write about the need for another bootloader.

Ok. I supposed it is done, since he wrote that he already programmed the board via ISP.
The link posted by @MaximoEsfuerzo, the MiniCore, everything is there.
Anyhow, if any problem he will probably ask. :nerd_face:

For now, make sure that both the bootloader and the board definition have the correct F_CPU value, and report back.