A method for automated generating of a plurality of codes, suited for execution on a heterogeneous hardware system, comprising at least one software programmable unit and at least one hardware programmable unit and specific resources to support data transfers related to debug and/or test, said codes including executable debug and/or test instructions, said method comprising: i) loading of initial code, including one or more code descriptions, ii) providing user debug and/or test instructions, specifying those variables in the code descriptions to be considered as calibration parameters and/or those variables in the code descriptions to be considered as to be monitored values, on said initial code, and adding those instructions to the initial code; iii) a step of automatically generating, by a combination of a software compiler and a programmable unit mapping tool, said plurality of codes, at least one per available unit, based on said loaded initial code provided with debug and/or test instructions suitable for execution on the heterogeneous hardware system, wherein said software programmable unit is a microprocessor core and its corresponding code is software language code, and said hardware programmable unit is a programmable logic matrix and its corresponding code is hardware description language, HDL, code; wherein step iii) includes the steps of - automated gathering of a list of signals from said loaded initial code, provided with user debug and/or test instructions, resulting in a list of variables or signals corresponding to calibration parameters or monitored values, - automated generating of software code, to be compiled and linked with user defined application software to include debug and trace capabilities, providing the signals memory mapping information; - automated generating of an HDL module code able to execute calibration data transfer from/-to on -chip memory, being part of the specific resources, wherein said automatically generating provides, besides respective standard codes it would generate from the loaded initial code without the calibration and/or debug and/or test instructions, extra codes, which permit to override and/or to sample a value of a variable in the respective original codes. i) loading of initial code, including one or more code descriptions, ii) providing user debug and/or test instructions, specifying those variables in the code descriptions to be considered as calibration parameters and/or those variables in the code descriptions to be considered as to be monitored values, on said initial code, and adding those instructions to the initial code; iii) a step of automatically generating, by a combination of a software compiler and a programmable unit mapping tool, said plurality of codes, at least one per available unit, based on said loaded initial code provided with debug and/or test instructions suitable for execution on the heterogeneous hardware system, wherein said software programmable unit is a microprocessor core and its corresponding code is software language code, and said hardware programmable unit is a programmable logic matrix and its corresponding code is hardware description language, HDL, code; wherein step iii) includes the steps of - automated gathering of a list of signals from said loaded initial code, provided with user debug and/or test instructions, resulting in a list of variables or signals corresponding to calibration parameters or monitored values, - automated generating of software code, to be compiled and linked with user defined application software to include debug and trace capabilities, providing the signals memory mapping information; - automated generating of an HDL module code able to execute calibration data transfer from/-to on -chip memory, being part of the specific resources, wherein said automatically generating provides, besides respective standard codes it would generate from the loaded initial code without the calibration and/or debug and/or test instructions, extra codes, which permit to override and/or to sample a value of a variable in the respective original codes. - automated gathering of a list of signals from said loaded initial code, provided with user debug and/or test instructions, resulting in a list of variables or signals corresponding to calibration parameters or monitored values, - automated generating of software code, to be compiled and linked with user defined application software to include debug and trace capabilities, providing the signals memory mapping information; - automated generating of an HDL module code able to execute calibration data transfer from/-to on -chip memory, being part of the specific resources, wherein said automatically generating provides, besides respective standard codes it would generate from the loaded initial code without the calibration and/or debug and/or test instructions, extra codes, which permit to override and/or to sample a value of a variable in the respective original codes.