fatal error: Adc.h: No such file or directory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

fatal error: Adc.h: No such file or directory

1,044 次查看
simon98
Contributor III

Hi NXP Team,

I've encoutered this error while compiling the model iand i don't know how to solve it.

I've only modified a block in the can transmission and it seems it doesn't find the "Adc.h" file... But it is in the correct folder.

 

How could i solve this?

 

I Attach the Log

 
标记 (5)
0 项奖励
回复
2 回复数

949 次查看
Irina_Costachescu
NXP Employee
NXP Employee

Hello @simon98 

If your application is targeting S32K358, please note that the default configuration project that our toolboxes delivers for this MCU does not contain an enabled ADC configuration. However, you could edit that configuration in an unlimited mode - modify/add/remove all of the parameters necessary for your application. A short guide on ADC configuration can be found here. Please let us know if this helps.

https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Controlling-LED-intensity-with-ADC-and-PWM...

Thanks,

Irina

0 项奖励
回复

943 次查看
simon98
Contributor III

Hi @Irina_Costachescu 

I've modified the the default configuration of my project and worked fine until i've put inside the CAN_DBG subsystem the DGT_DIAG subsystem...

If i commet it the error chage like this:

 

### Invoking Target Language Compiler on CED1200S_can_uart_adc_pwm_gpio_spi_i2c.rtw
### Using System Target File: C:\Program Files\MATLAB\R2022b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Generating TLC interface API for custom data
### Initial pass through model to cache user defined code
Error: File: C:\walvoil\CED1200S_Project\prove_hw\local copy\05_can_uart_adc_pwm_gpio_spi_i2c_currupted\slprj\_sfprj\CED1200S_can_uart_adc_pwm_gpio_spi_i2c\_self\rtw\ert\src\CED1200S_can_uart_adc_pwm_gpio_spi_i2c_rtw.tlc Line: 44 Column: 49
Unable to open block template file hdlsllib_rtw.tlc from GENERATE or GENERATE_TYPE
Main program:
==> [00] C:\walvoil\CED1200S_Project\prove_hw\local copy\05_can_uart_adc_pwm_gpio_spi_i2c_currupted\slprj\_sfprj\CED1200S_can_uart_adc_pwm_gpio_spi_i2c\_self\rtw\ert\src\CED1200S_can_uart_adc_pwm_gpio_spi_i2c_rtw.tlc:GlobalMachineTerminator(44)
[01] C:\Program Files\MATLAB\R2022b\toolbox\stateflow\src\tlc\stateflow.tlc:BlockTypeSetup(90)
[02] C:\Program Files\MATLAB\R2022b\rtw\c\tlc\blocks\gensfun.tlc:BlockTypeSetup(590)
[03] C:\Program Files\MATLAB\R2022b\rtw\c\tlc\private_api\blocksetuplib.tlc:BlockSetupAndCompatibilityCheck(113)
[04] C:\Program Files\MATLAB\R2022b\rtw\c\tlc\mw\commonpass.tlc:<NONE>(53)
### Caching model source code
### Writing header file CED1200S_can_uart_adc_pwm_gpio_spi_i2c_types.h
### Writing source file Adc_Params.c
### Writing header file CED1200S_can_uart_adc_pwm_gpio_spi_i2c.h
### Writing source file CED1200S_can_uart_adc_pwm_gpio_spi_i2c.c
### Writing header file CED1200S_can_uart_adc_pwm_gpio_spi_i2c_private.h
### Writing header file rtwtypes.h
### Writing source file CED1200S_can_uart_adc_pwm_gpio_spi_i2c_data.c
### Writing header file rtmodel.h
### TLC code generation complete (took 5.328s).
### Build procedure for CED1200S_can_uart_adc_pwm_gpio_spi_i2c aborted due to an error.
Warning:Converting 'Reusable function' setting of subsystem 'CED1200S_can_uart_adc_pwm_gpio_spi_i2c/CAN_10ms' to 'Nonreused function' because a child system has either been explicitly marked as nonreused, or is used in a configuration that must be nonreused. Please generate the HTML report during code generation and see the "Subsystems" section for more information
Warning:Converting 'Reusable function' setting of subsystem 'CED1200S_can_uart_adc_pwm_gpio_spi_i2c/PWM_1000ms' to 'Nonreused function' because a child system has either been explicitly marked as nonreused, or is used in a configuration that must be nonreused. Please generate the HTML report during code generation and see the "Subsystems" section for more information
Warning:Converting 'Reusable function' setting of subsystem 'CED1200S_can_uart_adc_pwm_gpio_spi_i2c/UART_100ms' to 'Nonreused function' because a child system has either been explicitly marked as nonreused, or is used in a configuration that must be nonreused. Please generate the HTML report during code generation and see the "Subsystems" section for more information
Top model targets built:

Model Action Rebuild Reason
==================================================================================================
CED1200S_can_uart_adc_pwm_gpio_spi_i2c Failed Code generation information file does not exist.

0 of 1 models built (0 models already up to date)
Build duration: 0h 1m 35.437s
Error:Error: Errors occurred - aborting

 

I've attached the model and mex file, hoping could be useful to understand my problem.

 

Tell me if you need somthing else.

 

Thanks,

Simon

标记 (5)
0 项奖励
回复