-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uvision export doesn't include rtos & rtx source files #1177
Comments
Did you make a build.py ... -r before? |
As @ohagendorf pointed out above. The script does not build required libraries, you have to do it prior exporting. Does that help ? |
Maybe I'm confused. I thought the exporter (project.py) exported source code for the mbed and other libraries unless the -b option was used. If the source code is getting exported by default, why would I have to build first? I've done the following: python workspace_tools/build.py -m NUCLEO_F411RE -t GCC_ARM -c -j 0 --rtos
python workspace_tools/project.py -m NUCLEO_F411RE -i uvision -c -n RTOS_1
cp /home/mfiore/work/mbed_devel/mbed/build/export/RTOS_1_uvision_NUCLEO_F411RE.zip . find RTOS_1/rtos/ All of the rtos & rtx headers got pulled in, but not the source files... |
The libraries (rtos, dsp, ethernet, ...) are included only in binary form by project.py. Somewhere in the Python code you would find a comment, that there is some work to do to include also libraries in source code. But this part is not yet done. |
Ah, I see. If that's the case, then I should be finding librtos.a or something similar in the export directory, yes? I can't seem to find anything that looks like a binary version of the rtos library. |
ARM Internal Ref: IOTMORF-257 |
@mfiore02 Is this still relevant? |
@0xc0170 I will retest against the latest 5.x revision and get back to you. |
@0xc0170 Export seemed OK. The build failed miserably, however. mbed-os-5.1.0-164-gf3d652b *** Using Compiler 'V5.05 update 2 (build 169)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' |
I suspect thats because of old armcc version. The newer one (not certain now the exact version) does compile ok |
Ok, I'll close the issue then. |
The exporter doesn't include the rtos source files when exporting a program using rtos to uvision. I tested this with the RTOS_1 program and NUCLEO_F411RE. The export succeeded, but the build in uvision4 failed:
linking...
.\build\RTOS_1.axf: Error: L6218E: Undefined symbol rtos::Thread::wait(unsigned) (referred from main.o).
.\build\RTOS_1.axf: Error: L6218E: Undefined symbol rtos::Thread::Thread(void()(const void), void_, osPriority, unsigned, unsigned char_) (referred from main.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 2 error messages.
".\build\RTOS_1.axf" - 2 Error(s), 2 Warning(s).
Target not created
The rtos and rtx source files were nowhere to be found.
The text was updated successfully, but these errors were encountered: