Internal oscillator using uart program with arduino nano

hi ,
here i am trying program to use uart to internal oscillator with arduino nano i am able to do with arduino as isp arduino nano as a program another arduino nano as a target board how to do with uart with internal oscillator.

Welcome to the forum

You started a topic in the Uncategorised category of the forum when its description explicitly tells you not to

Your topic has been moved to a relevant category. Please be careful in future when deciding where to start new topics

It's not 100% clear to me what you want to achieve? A Nano runs on an 16MHz external crystal. Do you want to switch to the internal oscillator for the target Nano?

If yes

  1. Why?
  2. You will need to set the fuses correctly. And if you keep on compiling for a Nano, you will need to adjust all timings.

For (2), your best bet is to install MiniCore and use that.

If no
Please provide more details

  1. for pcb no space for external oscillator so thats why we going with internal oscillator.
  2. i done burn bootloader to nano.
  3. i added new board definition for nano board.txt file
  4. i tried in internal 8mhz oscilllator arduino as isp its working but uart i getting error
    i tried in minicore getting error there is no atmega328p

Is that for 8MHz internal or 8MHz external? Can you post your new boards.txt? I'm not a fuse specialist but can try to check if you did set the fuses correctly.

I can't help you with the error.

If you look under variant in your screenshot, the 328P/328PA is selected.

here this is the new board definition i added in board.txt

nano.menu.cpu.internal8MHz=ATmega328P (Internal 8 MHz)
nano.menu.cpu.internal8MHz.upload.maximum_size=30720
nano.menu.cpu.internal8MHz.upload.maximum_data_size=2048
nano.menu.cpu.internal8MHz.upload.speed=57600
nano.menu.cpu.internal8MHz.bootloader.low_fuses=0xE2
nano.menu.cpu.internal8MHz.bootloader.high_fuses=0xDA
nano.menu.cpu.internal8MHz.bootloader.extended_fuses=0x05
nano.menu.cpu.internal8MHz.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex
nano.menu.cpu.internal8MHz.build.mcu=atmega328p
nano.menu.cpu.internal8MHz.build.f_cpu=8000000L
nano.menu.cpu.internal8MHz.build.board=AVR_NANO
nano.menu.cpu.internal8MHz.build.core=arduino
nano.menu.cpu.internal8MHz.build.variant=eightanaloginputs

see the error in the image

can you please send the procedure for step by step internal oscillator uart programming

You don't need a new board definition.
Connect your ICSP programmer(the other nano) to your microcontroller (target nano).
Select MiniCore

Select the following:
Board: ATMega328
Clock: Internal 8MHz
Variant: 328P/328PA
Bootloader: Yes (UART0)

Programmer: Select Arduino as ISP

Click on Burn Bootloader
When done, disconnect the ICSP.
Connect your board USB port to the computer.
Compile and upload the Blink example.

1 Like

exec: "cmd": executable file not found in %PATH%
Error compiling for board ATmega328.
i getting this error how to solve this?

If you do a search on the forum (Search results for 'exec: "cmd": executable file not found ' - Arduino Forum), you will get at least one solution (SOLVED: exec: "cmd": executable file not found in %PATH% - #2 by ptillisch) that helped somebody.