summaryrefslogtreecommitdiff
path: root/bootloader
diff options
context:
space:
mode:
authorAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-06 17:47:11 +0000
committerAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-06 17:47:11 +0000
commit7852372b15f850a46a02d1aa991215619096ad50 (patch)
treef82a2b81b92e20f332bffb584075338c220d157b /bootloader
parent2ecdaa538fc7a9b9613b01357fbd2cdb293735a8 (diff)
downloadplinky-7852372b15f850a46a02d1aa991215619096ad50.tar.gz
add oled feedback for flashing process
Diffstat (limited to 'bootloader')
-rwxr-xr-xbootloader/Core/Src/main.c3
-rwxr-xr-xbootloader/plinkybl debug.launch4
2 files changed, 4 insertions, 3 deletions
diff --git a/bootloader/Core/Src/main.c b/bootloader/Core/Src/main.c
index 2f45dc4..a16aade 100755
--- a/bootloader/Core/Src/main.c
+++ b/bootloader/Core/Src/main.c
@@ -341,8 +341,9 @@ int main(void)
/* USER CODE BEGIN 3 */
if (encstate==1)
startreset=true;
- if (encstate==0x80 && startreset) {
+ if (encstate==0x0 && startreset) {
// released the encoder
+ HAL_Delay(100);
scb_reset_system();
}
if (encheld>10000)
diff --git a/bootloader/plinkybl debug.launch b/bootloader/plinkybl debug.launch
index 6908cb2..1c6fef8 100755
--- a/bootloader/plinkybl debug.launch
+++ b/bootloader/plinkybl debug.launch
@@ -5,7 +5,7 @@
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.launch.debug_auth_certif_path" value=""/>
<booleanAttribute key="com.st.stm32cube.ide.mcu.debug.launch.debug_auth_check_enable" value="false"/>
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.launch.debug_auth_key_path" value=""/>
- <stringAttribute key="com.st.stm32cube.ide.mcu.debug.launch.debug_auth_permission" value="debug_non_secure_L3"/>
+ <stringAttribute key="com.st.stm32cube.ide.mcu.debug.launch.debug_auth_permission" value=""/>
<booleanAttribute key="com.st.stm32cube.ide.mcu.debug.launch.enable_live_expr" value="true"/>
<booleanAttribute key="com.st.stm32cube.ide.mcu.debug.launch.enable_swv" value="false"/>
<intAttribute key="com.st.stm32cube.ide.mcu.debug.launch.formatVersion" value="2"/>
@@ -73,7 +73,7 @@
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/plinkybl.elf"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="plinkybl"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
- <stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>
+ <stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.384220978"/>
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/plinkybl"/>