Programming custom application using Wio Lora-e5 dev board example code overwritten problem

Hi everyone, I am a total newbie of stm32 programming so please bear me if my question is stupid.

I was using a Wio Lora-e5 dev board and example: GitHub - Seeed-Studio/LoRaWan-E5-Node: Applications on LoRa-E5 mini/ LoRa-E5 Development Kit with v1.1.0 STM32Cube MCU Package for STM32WL series(SDK). I have successfully run the example application and want to add some features (reading sensor data from A3 pin).

So I used stm32CubeIDE to edit the ioc file provided, and only added PB3 pin to ADC_IN2 and remained other settings unchanged. Then I regenerated the code and found that there are significant changes in the code base.

For the ioc file, some lorawan bsp settings and mcu pin settings changed, also I noticed that the board setting is board=NUCLEO-WL55JC1 which might potentially cause the change in the generated platform.h include file from stm32wlxx_LoRa_E5_mini.h to NUCLEO-WL55JC1.

I will appreciate if anyone can answer my questions:

  1. do I need to manually revert the other changes like bsp, mcu settings and only keep the new added adc setting?

  2. do I need to change the board back to LoRa_E5_mini in ioc file or remained the same?

  3. Has anyone successfully developed new features upon the example repo: GitHub - Seeed-Studio/LoRaWan-E5-Node: Applications on LoRa-E5 mini/ LoRa-E5 Development Kit with v1.1.0 STM32Cube MCU Package for STM32WL series(SDK) and give some hints about the ioc updates?

Thanks,
Qianliang