Hi,
When I include xparameters.h in the C-Code and build the software I get following message:
Test_1_sw.c:14:25: xparameters.h: No such file or directory
I tried to copy xparameters.h into folder driver and software. If anyone can tell me how can use xparameters.h I would be very thankful.
Regards,
Ramona
error when #include "xparameters.h"
Started by ramonal, Sep 11 2009 01:15 PM
1 reply to this topic
#1
Posted 11 September 2009 - 01:15 PM
#2
Posted 21 September 2009 - 06:43 AM
QUOTE (ramonal @ Sep 11 2009, 02:15 PM) <{POST_SNAPBACK}>
When I include xparameters.h in the C-Code and build the software I get following message:
Test_1_sw.c:14:25: xparameters.h: No such file or directory
Test_1_sw.c:14:25: xparameters.h: No such file or directory
Hello Ramona,
Was your question answered via email? To summarize, the xparameters.h file should only be used/compiled when targeting the embedded Xilinx processor (PowerPC or MicroBlaze), so if you are having this error during compile for desktop simulation, there is most likely a missing #ifdef or other error resulting in the missing file. In our examples for MicroBlaze you will see the use of:
CODE
#if defined(IMPULSE_C_TARGET)
#include "xparameters.h"
#else
#include "cosim_log.h"
#endif
#include "xparameters.h"
#else
#include "cosim_log.h"
#endif
This differentiates between code used in simulation, and code used in the embedded processor.
--
-- Impulse Support (support@ImpulseC.com)
--
-- Impulse Support (support@ImpulseC.com)
--
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












