Skip to content

Commit c33ce1d

Browse files
Added STM32F072CB varant for the Elektor LoRa Node (stm32duino#1054)
* Added STM32F072CB varant for the Elektor LoRa Node As the STM32F072C8 ( 64kB ) does not provide enough space for user applications when the LoRaWAN Stack is present, the first production run will include a STM32F072CB (128kB) with the same pinout but a bit more flash. The variant has been renamed to reflect this change, also a new Board has been added to the menu so you can choose what you have populated. Signed-off-by: Mathias Claussen | Elektor Labs <[email protected]> Co-authored-by: Frederic Pillon <[email protected]>
1 parent c4dd3c0 commit c33ce1d

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

boards.txt

+15-3
Original file line numberDiff line numberDiff line change
@@ -1736,17 +1736,29 @@ LoRa.menu.pnum.RHF76_052.build.cmsis_lib_gcc=arm_cortexM0l_math
17361736
LoRa.menu.pnum.RHF76_052.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -D__CORTEX_SC=0
17371737

17381738
# ELEKTOR_F072C8
1739-
LoRa.menu.pnum.ELEKTOR_F072C8=Elektor LoRa Node Core F072
1739+
LoRa.menu.pnum.ELEKTOR_F072C8=Elektor LoRa Node Core F072C8 (64kB)
17401740
LoRa.menu.pnum.ELEKTOR_F072C8.upload.maximum_data_size=16384
1741-
LoRa.menu.pnum.ELEKTOR_F072C8.upload.maximum_size=131072
1741+
LoRa.menu.pnum.ELEKTOR_F072C8.upload.maximum_size=65536
17421742
LoRa.menu.pnum.ELEKTOR_F072C8.build.mcu=cortex-m0
17431743
LoRa.menu.pnum.ELEKTOR_F072C8.build.board=ELEKTOR_F072C8
17441744
LoRa.menu.pnum.ELEKTOR_F072C8.build.series=STM32F0xx
17451745
LoRa.menu.pnum.ELEKTOR_F072C8.build.product_line=STM32F072xB
1746-
LoRa.menu.pnum.ELEKTOR_F072C8.build.variant=ELEKTOR_F072C8
1746+
LoRa.menu.pnum.ELEKTOR_F072C8.build.variant=ELEKTOR_F072Cx
17471747
LoRa.menu.pnum.ELEKTOR_F072C8.build.cmsis_lib_gcc=arm_cortexM0l_math
17481748
LoRa.menu.pnum.ELEKTOR_F072C8.build.extra_flags=-D{build.product_line} {build.xSerial}
17491749

1750+
# ELEKTOR_F072CB
1751+
LoRa.menu.pnum.ELEKTOR_F072CB=Elektor LoRa Node Core F072CB (128kB)
1752+
LoRa.menu.pnum.ELEKTOR_F072CB.upload.maximum_data_size=16384
1753+
LoRa.menu.pnum.ELEKTOR_F072CB.upload.maximum_size=131072
1754+
LoRa.menu.pnum.ELEKTOR_F072CB.build.mcu=cortex-m0
1755+
LoRa.menu.pnum.ELEKTOR_F072CB.build.board=ELEKTOR_F072CB
1756+
LoRa.menu.pnum.ELEKTOR_F072CB.build.series=STM32F0xx
1757+
LoRa.menu.pnum.ELEKTOR_F072CB.build.product_line=STM32F072xB
1758+
LoRa.menu.pnum.ELEKTOR_F072CB.build.variant=ELEKTOR_F072Cx
1759+
LoRa.menu.pnum.ELEKTOR_F072CB.build.cmsis_lib_gcc=arm_cortexM0l_math
1760+
LoRa.menu.pnum.ELEKTOR_F072CB.build.extra_flags=-D{build.product_line} {build.xSerial}
1761+
17501762
# Upload menu
17511763
LoRa.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
17521764
LoRa.menu.upload_method.swdMethod.upload.protocol=0

variants/ELEKTOR_F072C8/ldscript.ld renamed to variants/ELEKTOR_F072Cx/ldscript.ld

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
5353
ENTRY(Reset_Handler)
5454

5555
/* Highest address of the user mode stack */
56-
_estack = 0x20004000; /* end of "RAM" Ram type memory */
56+
_estack = 0x20000000 + LD_MAX_DATA_SIZE; /* end of "RAM" Ram type memory */
5757

5858
_Min_Heap_Size = 0x200 ; /* required amount of heap */
5959
_Min_Stack_Size = 0x400 ; /* required amount of stack */
6060

6161
/* Memories definition */
6262
MEMORY
6363
{
64-
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
65-
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 64K
64+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
65+
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
6666
}
6767

6868
/* Sections */
File renamed without changes.

0 commit comments

Comments
 (0)