Hi, @paul_ephraim_13
I downloaded the model you gave me and tested it on the board. I notice that it was configured to toggle RGBLED0_BLUE, as it appears from the generated code.
After that, I modified the DIO block to toggle the RED color, on the RGBLED0_RED channel. Everything worked correctly, the led being red this time.
As a note, if sometimes the application is not in sync with the latest changes, try to view the generated C code, it is possible that sometimes, even if you change settings in blocks, the code remains from the previous version. I think this happened in your case.
You can view the generated code directly in Simulink, by accessing the Apps section, followed by the Embedded Coder section.

The C Code tab will open and you can access the generated code by pressing the View Code button. By clicking on a block in Simulink, you can see the generated code related to that block and thus you can see if the parameters are updated or not.
1. RGBLED0_BLUE

2. RGBLED0_RED

Additionally, you can open the generated code in text format, from the following location: model_name_ert_rtw folder -> model_name.c. In this case would be temp_2_ert_rtw -> temp_2.c
If you notice discrepancies between the model and the generated code, you can do a cleanup and delete the ert_rtw folder, where the generated code is located, and building the model again, the new code will be generated and thus make sure that it is in sync with the latest version.
Hope this helps,
Dragos