Medbg Firmware Upgrade And Manual Bootloader Entry - Microchip Technology ATmega328P Xplained Mini Manual

Table of Contents

Advertisement

3.2.3
Super User Fantastic Feature Enable Register
Name: 
SUFFER
Offset: 
0x0120
Reset: 
0xFF
Property: 
N/A
The Super User Fantastic Feature Enable Register allows the user to modify the behavior of the mEDBG.
Bit
7
Access
Reset
Bit 2 – EOF Extended Off
Writing the EOF bit to '1' sets default operation. Writing the EOF bit to '0' enables the extended off power mode. If no
USB enumeration is successful within five seconds of power-up, the mEDBG enters deep sleep.
Bit 1 – LOWP Low Power
Writing the LOWP bit to '1' sets the system clock to its default value. Writing the LOWP bit to '0' enables low-power
mode. The mEDBG is set to run at 1 MHz, which decreases the power usage.
Bit 0 – FUSE FUSE Protection
Writing the FUSE bit to '1' enables fuse protection when using Atmel Studio. The fuse protection prevents
modification of specific fuses in the ATmega328P target device that could make the mEDBG on the ATmega328P
Xplained Mini not usable. Writing the FUSE bit to '0' removes all protection of fuses in the ATmega328P target
device.
Writing the FUSE bit to '0' enables modification of all fuses in the ATmega328P. Setting wrong fuse
WARNING
settings may render the mEDBG not usable on the ATmega328P Xplained Mini. As an example, if an
invalid clock setting is set, recovery may require an external debugger.
3.3

mEDBG Firmware Upgrade and Manual Bootloader Entry

The mEDBG firmware is updated through the programming dialog in Atmel Studio.
If you are unable to upgrade the mEDBG firmware on your ATmega328P Xplained Mini, you can try the command
line utility atfw.exe provided with the Atmel Studio. atfw.exe is located in the atbackend folder in your Atmel Studio
install location.
To manually upgrade the firmware, run the following command:
atfw.exe -t medbg -a ..\tools\ mEDBG\medbg_fw.zip
If atfw.exe is unable to find the mEDBG, it may be required to force the ATmega32U4 (mEDBG) to enter its
bootloader. To force the bootloader entry, short-circuit the BOOT pads (J102) and toggle power to the ATmega328P
Xplained Mini board. Run the atfw command above. When the firmware is upgraded, remove the power from the kit
and remove the short-circuit of J102.
Figure 3-2. Force Boot Jumper
©
2020 Microchip Technology Inc.
6
5
ATmega328P Xplained Mini
4
3
User Guide
Xplained Mini
2
1
EOF
LOWP
R/W
R/W
1
1
DS50002659B-page 13
0
FUSE
R/W
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATmega328P Xplained Mini and is the answer not in the manual?

Questions and answers

Table of Contents