Blinking LEDs using hwdef file

Hi, I am new to Ardupilot and i want to blink leds on stm32f412 microcontroller using hwdef file. I have cloned the git repository using wsl ubuntu and written the hwdef file, taking reference already existing CUAV_GPS hwdef file and I compiled the code in wsl and flashed the ap_periph.bin file using jlink in windows. But there is no led blinking. Can anyone please help in identifying what possibly going wrong here ?
here is the hwdef file
New Text Document.txt (1.7 KB)

First update to ArduCopter 4.3.6

The version you are using is ancient

Hi, thank you for replying. I used ./waf AP_Periph in wsl ubuntu and tried to flash the bin file generated in windows with jlink to flash it to the microcontroller not copter. Can you please check whether hwdef file is correct or is there anything missing to flash leds.