This paper presents the design, test and validation process of the maximum power point tracking (MPPT) based on the Perturb and Observe backstepping controller. The design of this robust controller follows a sequence of two tests of the validated model-based design (MBD) approach. Our contribution is to give a roadmap for designing, testing and validating embedded software for MPPT algorithms. Perturb and observe algorithm is used to generate the reference voltage which is used by the backstepping controller to generate the maximum power. Then, after simulation of all these techniques, generated optimized C code for the STM32F4 microcontroller is necessary to test the controller on embedded platform. Therefore, the algorithm of MPPT is simulated by Model in the Loop (MIL) and Processor in the Loop (PIL) techniques. The results show that the proposed system has full control over reference power, for different atmospheric changes, by backstepping and integrating into a 32-bit ARM microcontroller. In all of the various tests, the embedded software developed demonstrates high compliance and high performance with MPPT requirements.