Skip to content

Commit

Permalink
Enable debugging user programs.
Browse files Browse the repository at this point in the history
  • Loading branch information
clydebarrow committed Apr 4, 2017
1 parent 462099f commit fde45e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bootload/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.6)
project(bgbootload)

set(GCC_PREFIX arm-none-eabi)
set(CMAKE_CXX_COMPILER ${GCC_PREFIX}/-gcc)
set(CMAKE_C_STANDARD 99)
add_definitions(-D__NO_SYSTEM_INIT)
add_definitions(-DEFR32BG1B232F256GM48)
Expand All @@ -17,6 +15,7 @@ include_directories(platform/CMSIS/Include)

# find the bgbuild command used to translate xml into C
find_program(BGBUILD_CMD bin/bgbuild
/Applications/Simplicity Studio.app/Contents/Eclipse/developer/sdks/gecko_sdk_suite/v1.0
/Applications/Simplicity Studio.app/Contents/Eclipse/developer/stacks/ble/v2.1.1.0
$ENV{HOME}/dev/tools/ble/v2.1.1.0/protocol/bluetooth_2.1
)
Expand Down
3 changes: 1 addition & 2 deletions bootload/src/boot_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ void main(void) {
}
#endif

// ************
// for debug purposes, never run the user program

#if defined(DEBUG)
#if defined(DFU_DEBUG)
enterDfu = true;
#endif
uint32_t cause = RMU_ResetCauseGet();
Expand Down

0 comments on commit fde45e5

Please sign in to comment.