AnsweredAssumed Answered

ColdFire m5329evb bsp re-build Post-build linking problem - CodeWarrior v10.2

Question asked by Sandip Sitapara on Mar 30, 2012
Latest reply on Mar 30, 2012 by Martin Kojtal



I have been working on nandflash "nandflash_m5329evb" example. 


"#error This application requires BSPCFG_ENABLE_NANDFLASH defined non-zero in user_config.h. Please recompile BSP with this option."


From the above error derctive we have to set the BSPCFG_ENABLE_NANDFLASH = 1 in user_config.h and recompile the bsp_m5329evb to build the nandflash_m5329evb. But I got the follwing error while re-building the bsp_m5329evb.





'Building target: C:/Program Files/Freescale/Freescale MQX 3.8/lib/m5329evb.cw10/bsp/bsp_m5329evb_d.a'
'Executing target #89 C:/Program Files/Freescale/Freescale MQX 3.8/lib/m5329evb.cw10/bsp/bsp_m5329evb_d.a'
'Invoking: ColdFire Linker'
"C:/Freescale/CW MCU v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" @@"bsp_m5329evb_d.args" -o "C:/Program Files/Freescale/Freescale MQX 3.8/lib/m5329evb.cw10/bsp/bsp_m5329evb_d.a"   
'Finished building target: C:/Program Files/Freescale/Freescale MQX 3.8/lib/m5329evb.cw10/bsp/bsp_m5329evb_d.a'
' '
C:/Freescale/CW MCU v10.2/gnu/bin/mingw32-make --no-print-directory post-build
"C:/Documents and Settings/limestone/workspace/bsp_m5329evb\..\..\bat\bsp_m5329evb.bat" "C:\Program Files\Freescale\Freescale MQX 3.8\lib\m5329evb.cw10\bsp"
' '
The system cannot find the path specified.
mingw32-make[1]: [post-build] Error 1 (ignored)





It couldn't be able to find the following file

"C:/Documents and Settings/limestone/workspace/bsp_m5329evb\..\..\bat\bsp_m5329evb.bat"


I have found the "bat" directory under the $MQX_ROOT_DIR\mqx\build\bat but nothing inside there. How can we change the post-link path directives?


MQX_ROOT_DIR=C:/ProgramFiles/Freescale/Freescale MQX 3.2/


I have been trying to set the Linker path but couldn't be able to find the same. So anybody has any idea to resolve the above error?


Also I have one more question that when I import any existing projects, code warrior could not set the $MQX_ROOT_DIR path automatically, it is always $MQX_ROOT_DIR = C:\ So anyone has any idea about same?