I am trying to build bsp and psp for my project but I frequently get the following error:
Description | Resource | Path | Location | Type |
macro 'feof' redefined macro 'feof' redefined macro 'feof' redefined macro 'feof' redefined | bsp | C/C++ Problem |
Description | Resource | Path | Location | Type |
macro 'feof' redefined | fio.h | /psp/PSP Generic/include | line 59 | C/C++ Problem |
is there any way to turn off the redefine error? or is it possible to fix this error? do I have to add anything to my user_config.h file? I am basically using the flat given user_config file.
Mine is MK60 on a custom board. Do I need both bsp and psp to get mqx work?
What do I need exactly?
Hi Mehdi,
The MQX v4.1 is supporting 3 MK60 board which are:
TWRK60D100M
TWRK60F120M
TWRK60N512
All MQX libs are desinged for this specific boards.
If you're using a custom board you must adapt the MQX libs to be compliant to your board.
We deliver lot of examples for each board or you can create a new project including the lib you want to use.
Back to your problem.
If I'm right you can build the MQX lib without problem but you've an issue when you used them in your application.
Do you use the project wizard to create your project ?
According to the message, it seems the macro 'feof' was redefined.
I recommend you to check the console windows to have more details about the error.
Have a great day,
Pascal Irrle
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
our chip is MK60DN512VLL10 and yes we have our own board that this chip is on. So I guess I need to give some modifications to the BSP maybe? I tried your clone engine for making new bsp and psp by cloning from TWRK60D100M, but when doing so and following the instruction, I face those errors that I mentioned.
Hi Mehdi,
By default the feof is defined in the fio.h file line 53:
#define feof | _io_feof |
I don't know if a config could generate a macro redefinition for feof.
The Problems or Console window should provide you more information regarding this issue.
We've a dedicated team and specific support rules for MQX.
Attached the MQX_Support_User_Guide.pdf doc.
May be you must contact them directly for this issue.
Have a great day,
Pascal Irrle
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------