added warning for when firmware gets to big thus overwriting bootloader.

This commit is contained in:
Martin Preuss
2026-03-28 17:43:08 +01:00
parent 6ea1e97835
commit 59d1ef7666
15 changed files with 79 additions and 2 deletions

View File

@@ -319,6 +319,12 @@ test:
.equ netInterfaceData = com2w_iface .equ netInterfaceData = com2w_iface
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif
.dseg .dseg

View File

@@ -611,6 +611,13 @@ GUI2_MODULE_END:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif
.dseg .dseg

View File

@@ -244,3 +244,8 @@ onMessageReceived:
.equ netInterfaceData2 = com2w_iface .equ netInterfaceData2 = com2w_iface
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -244,3 +244,8 @@ onMessageReceived:
.equ netInterfaceData2 = com2w_iface .equ netInterfaceData2 = com2w_iface
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -204,3 +204,8 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -61,7 +61,7 @@
#define APPS_NETWORK #define APPS_NETWORK
#define APPS_REPORTSENSORS #define APPS_REPORTSENSORS
#define APPS_STATS ;#define APPS_STATS
#define APPS_MA_LIGHT #define APPS_MA_LIGHT
@@ -214,5 +214,9 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -209,4 +209,8 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -219,3 +219,8 @@ onEveryLoop:
.equ netInterfaceData = com2w_iface .equ netInterfaceData = com2w_iface
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -224,3 +224,8 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -62,7 +62,7 @@
#define APPS_NETWORK #define APPS_NETWORK
#define APPS_REPORTSENSORS #define APPS_REPORTSENSORS
#define APPS_STATS ;#define APPS_STATS
#define APPS_MA_LIGHT #define APPS_MA_LIGHT
@@ -219,4 +219,9 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -212,3 +212,8 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -224,3 +224,9 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -219,3 +219,8 @@ onEveryLoop:
.equ netInterfaceData = com2w_iface .equ netInterfaceData = com2w_iface
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -219,3 +219,8 @@ onEveryLoop:
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif

View File

@@ -244,3 +244,8 @@ onMessageReceived:
.equ netInterfaceData2 = com2w_iface .equ netInterfaceData2 = com2w_iface
deviceCodeEnd:
.if deviceCodeEnd >= BOOTLOADER_ADDR
.warning "Code reaches into boot loader!"
.endif