diff --git a/config/miosix_settings.h b/config/miosix_settings.h index 09c32719b45a94a36a0ce53ffbe62cb84dc708f1..0bebe9aca1212dc2c41d4f6651f7c1f3c88cc32b 100644 --- a/config/miosix_settings.h +++ b/config/miosix_settings.h @@ -135,7 +135,7 @@ const unsigned char MAX_OPEN_FILES=8; /// \def WITH_ERRLOG /// Uncomment for debug information on stdout. /// By default it is defined (error information is printed) -//#define WITH_ERRLOG +#define WITH_ERRLOG diff --git a/sbs.conf b/sbs.conf index db4938d4d2253e703f06de4c793d630178ee3214..efcc119d5177d196899b3eb0a89bfd031234c7a6 100644 --- a/sbs.conf +++ b/sbs.conf @@ -172,3 +172,11 @@ BinName: dma-lowlevel-test Include: %shared %i2c %math %anakin-data Defines: Main: dma-lowlevel-test + +[test-busfault] +Type: board +BoardId: stm32f429zi_skyward_anakin +BinName: test-busfault +Include: %shared %i2c %math %anakin-data +Defines: +Main: test-busfault diff --git a/src/entrypoints/test-busfault.cpp b/src/entrypoints/test-busfault.cpp new file mode 100644 index 0000000000000000000000000000000000000000..132f19721e6b64433e5745fc6657175708218f1a --- /dev/null +++ b/src/entrypoints/test-busfault.cpp @@ -0,0 +1,16 @@ +#include <Common.h> + +using namespace miosix; + +void busfault(void *useless) +{ + printf("Hello, i'm a bus fault!\n"); +} + +int main() +{ + Thread::create(busfault, 1024, miosix::MAIN_PRIORITY, NULL); + while(1) + Thread::sleep(10); + return 0; +}