The easyest way would be to take out this ECU and put it in a good car(dont be affraid it can't mess nothing up... of course disconnect battery before the swap) ... if the two light will show themselves on the other car too then a new(or known good ECU) is needed.
IF u dont have the possibility to do that then u have to work a bit:
1. The easyest first check... disconnect an ABS sensor and go for a ride... the TC and HDC must come on this way... if they doesnt it means the ECU is faulty.
2. u have to reach the Slabs ECU and disconnect first C0504(u find the disposal in RAVE Brakes description and operation)
3. if the brake and ABS light will go off both, put it back and go further disconnecting one by one the multiplugs(except C0655) .. for all the other plugs disconnected the TC and HDC must come on.
4. If just the ABS light goes off then u have 2 different fault and one might be with the handbrake switch.
5. if both light will stay on with C0504 disconnected it means there is a short circuit somewhere
I think it's enough for now