2010-11-23 01:37 AM
using threads under uclinux
#stm32 #arm-thumb-stm32-cortex-m3 #stm-32 #stm32f103-uclinux2011-05-17 05:15 AM
Attached is a patch that enables uClibc-0.9.31(http://www.uclibc.org/) build for cortex-m3 (with the new version of pthread library only). Due to the lack of SWP instruction on cortex-m3, spin & mutex implementation was changed, in this patch we are using LDREX/STREX instructions. We lost the atomicity of SWP instruction.
config: example of configuration file.To build the uClibc you will need to install the uClinux headers somewhere on you host machine (e.g /uClinux_headers/include)cd uClinux-dist/linux-2.6.xmake headers_install ARCH=arm INSTALL_HDR_PATH=/uClinux_headers/includeAny comments/remarks are welcome.2011-05-17 05:15 AM
HI, I can compile the uClibc according to your suggestion.
The libc.a .libpthread.a can be builded out.
but when I did a test linked with libpthread.a.in the uClinux on the target board,
the test program crash at once.
although the uClinux can run on the target borad. but I cant do the muti-threads application on it.
would you please tell me how to use the libpthread.a, and run the muti-threads program
2011-08-17 06:18 AM
How to download the attached patch? I couldn't :(
2011-08-17 07:32 AM
How to download the attached patch? I couldn't :(
The forum crashed in May 2011, taking with it all the attachments, and some of the users. In this case the ones from November 2010. Suggest you track down the participants, off board, and see if you can get it from them.