Error using Real-Time Workshop. Name is nonexistent or not a directory.

1 visualización (últimos 30 días)
hello! I'm trying to generate source code for board stm32 vl discovery I use the block library rapidstm32.
After completion of code generation
*********************************************************************
RapidSTM32: Target built directory is: target_rapidstm32
RapidSTM32: Build completed at: 03-Sep-2011 18:02:40
*********************************************************************
I get an error
### Successful completion of Real-Time Workshop build procedure for model: target
Warning: During the 'exit' hook call to 'rapidstm32_make_rtw_hook', pwd was changed
to:
'D:\stm32\mdls'
Changing folders is not allowed. The pwd will be reset to:
'D:\stm32\mdls\target_rapidstm32'
### Real-Time Workshop build procedure for model: 'target' aborted due to an error.
Error message: Cannot CD to D:\stm32\mdls\target_rapidstm32 (Name is nonexistent or not a directory)
But this folder is created near the model file, and when I type in the command line
cd ('D:\stm32\mdls\target_rapidstm32')
everything is fine.
What am I doing wrong? I do everything like in the video tutorial here: http://www.aimagin.com/learn/index.php/Generate_and_use_the_generated_C_code_with_Non-FiO_Boards
Thank you in advance for help!

Respuesta aceptada

Alexander Slovak
Alexander Slovak el 11 de Sept. de 2011
Problem solved! You need to replace the existing file rapidstm32_exit_hook.p

Más respuestas (1)

Fangjun Jiang
Fangjun Jiang el 5 de Sept. de 2011
'rapidstm32_make_rtw_hook.m' is a .m file provided by the board supplier to do whatever processing they want through the standard RTW hook file. From the message, it seems that it tries to change the current folder, which is not allowed. However, this is a warning. I suspect the current folder is still changed. Maybe later, when it tries to change the folder back using relative path, it encountered an error.
But this is just my guess. You can open 'rapidstm32_make_rtw_hook.m', go to its 'exit' hook call to see where and why it needs to change directory. You can try modifying the file to see if it makes a difference. Be sure to make a copy first as this file is not meant to be modified by end user. My recommendation would be contact the board supplier technical support to report the problem.
One more thing is to make sure your current working folder is the folder that contains your model. Some scripts use relative path to change folder and it will cause problem.
  1 comentario
Alexander Slovak
Alexander Slovak el 5 de Sept. de 2011
Thank you for your reply!
Yes, I tried to register on his support forum, but I have not received confirmation by e-mail.

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by