Skip to content

Commit

Permalink
fixup: [exmaple/stm32f469_discovery] Remove fault handler
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed Apr 5, 2021
1 parent 721773f commit aa4de05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
23 changes: 0 additions & 23 deletions examples/stm32f469_discovery/lvgl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ using namespace modm::glcd;
using namespace Board::ft6;
using namespace modm::literals;

static modm::Abandonment
test_assertion_handler(const modm::AssertionInfo &info)
{
MODM_LOG_ERROR << "AssertionInfo.name: " << info.name << "\n";
MODM_LOG_ERROR << "AssertionInfo.context: " << info.context << "\n";
MODM_LOG_ERROR << "AssertionInfo.behavior: " << info.behavior << "\n";
MODM_LOG_ERROR << modm::endl;
return modm::Abandonment::DontCare;
}
MODM_ASSERTION_HANDLER(test_assertion_handler);

static uint16_t* displayBuffer;
static lv_disp_buf_t disp_buf;
Expand Down Expand Up @@ -80,19 +70,6 @@ main()

MODM_LOG_INFO << "modm LVGL example on STM32F469-Discovery board!\n\n";

if (FaultReporter::hasReport())
{
MODM_LOG_ERROR << "\n\nHardFault! Copy the data into a 'coredump.txt' file, ";
MODM_LOG_ERROR << "then execute\n\n\tscons postmortem firmware=" << modm::hex;
for (const auto data : FaultReporter::buildId()) MODM_LOG_ERROR << data;
MODM_LOG_ERROR << "\n\n";
for (const auto data : FaultReporter())
MODM_LOG_ERROR << modm::hex << data << modm::flush;
MODM_LOG_ERROR << "\n\n\n" << modm::flush;
FaultReporter::clear();
while (1) ;
}

RF_CALL_BLOCKING(touch.configure(Touch::InterruptMode::Trigger, 60, 60));

lv_init();
Expand Down
1 change: 0 additions & 1 deletion examples/stm32f469_discovery/lvgl/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

</options>
<modules>
<module>modm:platform:fault</module>
<module>modm:build:scons</module>
<module>modm:lvgl</module>
</modules>
Expand Down

0 comments on commit aa4de05

Please sign in to comment.