Go Down

Topic: Use TXLED, RXLED and HWB pins as GPIO (Read 4663 times) previous topic - next topic

I have a prototype board based on Leonardo and have burnt the bootloader onto the ATmega32U4 IC. I need to use TXLED, RXLED and HWB as general purpose I/O.

What is the best way to do so without replacing the bootloader with something customised?

What do I need to modify in the bootloader to make TXLED, RXLED and HWB pins function as GPIO?

CrossRoads

Likely need to change pins_arduino.h for that board.
"HWB allows to execute the bootloader section after reset when tied to ground during external
reset pulse. The HWB mode of this pin is active only when the HWBE fuse is enable. During normal
operation (excluded Reset), this pin acts as a general purpose I/O."
So a fuse setting change might be needed in boards.txt as well.
The 32U4 is a little different in that is has USB functionality built in as well, so you'll want to investigate further before changing that fuse.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy