Let me thank you once again for your great help!
I've started once again from beginning on STM demo.
I've triple checked everything.
The only diff i've made to the project is:
Code: Select all
kokete@piotr ~/workspace_arm/_SMT32F4/3rd_party/chibios_2.4.2/demos/ARMCM4-STM32F407-DISCOVERY $ svn diff
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US.UTF-8
svn: warning: please check that your locale name is correct
Index: chconf.h
===================================================================
--- chconf.h (revision 4625)
+++ chconf.h (working copy)
@@ -368,7 +368,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_SYSTEM_STATE_CHECK) || defined(__DOXYGEN__)
-#define CH_DBG_SYSTEM_STATE_CHECK FALSE
+#define CH_DBG_SYSTEM_STATE_CHECK TRUE
#endif
/**
@@ -379,7 +379,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_CHECKS) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_CHECKS FALSE
+#define CH_DBG_ENABLE_CHECKS TRUE
#endif
/**
@@ -391,7 +391,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_ASSERTS) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_ASSERTS FALSE
+#define CH_DBG_ENABLE_ASSERTS TRUE
#endif
/**
@@ -402,7 +402,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_TRACE) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_TRACE FALSE
+#define CH_DBG_ENABLE_TRACE TRUE
#endif
/**
@@ -416,7 +416,7 @@
* @p panic_msg variable set to @p NULL.
*/
#if !defined(CH_DBG_ENABLE_STACK_CHECK) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_STACK_CHECK FALSE
+#define CH_DBG_ENABLE_STACK_CHECK TRUE
#endif
/**
@@ -428,7 +428,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_FILL_THREADS) || defined(__DOXYGEN__)
-#define CH_DBG_FILL_THREADS FALSE
+#define CH_DBG_FILL_THREADS TRUE
#endif
/**
And I am still getting "SV#3".
I have changed nothing else.
Before i have started using Chibios OS, i have successfully implemented nRF24l01+ communication on pure ST libs using same GCC.
I have started to use Chibios because i wanted to make a software FIFO running in separated thread. So i need the multi- thread functionality. Everything else was already working.
My gcc:
Code: Select all
$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/opt/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/../libexec/gcc/arm-none-eabi/4.6.3/lto-wrapper
Target: arm-none-eabi
Configured with: /scratch/nsidwell/arm/eabi/src/gcc-4.6-2012.03/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-eabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --with-specs='%{save-temps: -fverbose-asm} -D__CS_SOURCERYGXX_MAJ__=2012 -D__CS_SOURCERYGXX_MIN__=3 -D__CS_SOURCERYGXX_REV__=56 %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --disable-shared --enable-lto --with-newlib --with-pkgversion='Sourcery CodeBench Lite 2012.03-56' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-headers=yes --with-sysroot=/opt/codesourcery/arm-none-eabi --with-build-sysroot=/scratch/nsidwell/arm/eabi/install/arm-none-eabi --with-gmp=/scratch/nsidwell/arm/eabi/obj/host-libs-2012.03-56-arm-none-eabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/nsidwell/arm/eabi/obj/host-libs-2012.03-56-arm-none-eabi-i686-pc-linux-gnu/usr --with-mpc=/scratch/nsidwell/arm/eabi/obj/host-libs-2012.03-56-arm-none-eabi-i686-pc-linux-gnu/usr --with-ppl=/scratch/nsidwell/arm/eabi/obj/host-libs-2012.03-56-arm-none-eabi-i686-pc-linux-gnu/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-cloog=/scratch/nsidwell/arm/eabi/obj/host-libs-2012.03-56-arm-none-eabi-i686-pc-linux-gnu/usr --with-libelf=/scratch/nsidwell/arm/eabi/obj/host-libs-2012.03-56-arm-none-eabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/nsidwell/arm/eabi/install/arm-none-eabi/bin --with-build-time-tools=/scratch/nsidwell/arm/eabi/install/arm-none-eabi/bin
Thread model: single
gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-56)
WDYT?