Preface
I wanted to make a low-power composite macro keyboard and mouse, and I set my eyes on the CH571 chip. I quickly got a development board to work with.
According to the datasheet, the Data area is divided into 16K+2K, which can be powered off at low voltage. Since the RV32 stack grows downward, the original linker script directly placed the stack bottom at the end of RAM, which couldn't meet the requirements.
8/24/23About 4 min