Hi @yousefdessouki123
According to the information provided, the pin assignments for the RGB_LED are correct.
However, I am confused about the section of code where you toggle the pin state. The Dio_WriteChannel() function requires two parameters: the channel ID and the desired logic level. For reference, the channel ID for PTD15 is 0x006F and for PTD16 is 0x0070, which you have correctly identified.
That said, in your code, the variable "i" is used to iterate from trial (0x0000) to 0x009E, and its value is passed as the channel ID to Dio_WriteChannel(). Could you clarify if this is the intended behavior? It seems that each LED color is being toggled only once during this loop. If your goal is to toggle specific LEDs, I would recommend passing the known channel IDs (e.g., 0x006F, 0x0070) directly to the function, rather than using "i" as the channel ID, since you already know the exact values you want to control.
Additionally, I am not sure which version of the RTD you are using, but since you are working with S32DS, please ensure that the pins are properly configured in both the Pin Tool and the Peripheral Tool.
BR, VaneB