Skip to content

Commit 6588dee

Browse files
authored
Merge pull request #1683 from ABOSTM/VARIANT_UPDATE_6_0_50
Variant update 6.0.50
2 parents e156c32 + b274eb1 commit 6588dee

File tree

1,676 files changed

+6447
-13365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,676 files changed

+6447
-13365
lines changed

CI/build/arduino-cli.py

+12-8
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
# error or fatal error
9292
fork_pattern = re.compile(r"^Error during build: fork/exec")
93-
error_pattern = re.compile(r":\d+:\d*:?\s.*error:\s|^Error:")
93+
error_pattern = re.compile(r":\d+:\d*:?\s.*error:\s|^Error:|fatal error:")
9494
ld_pattern = re.compile("arm-none-eabi/bin/ld:")
9595
overflow_pattern = re.compile(
9696
r"(will not fit in |section .+ is not within )?region( .+ overflowed by [\d]+ bytes)?"
@@ -584,6 +584,7 @@ def check_status(status, build_conf, boardKo, nb_build_conf):
584584
# Check if failed due to a region overflowed
585585
logFile = build_conf[idx_log] / f"{sketch_name}.log"
586586
error_found = False
587+
overflow_found = False
587588
for i, line in enumerate(open(logFile)):
588589
if error_pattern.search(line):
589590
error_found = True
@@ -593,17 +594,20 @@ def check_status(status, build_conf, boardKo, nb_build_conf):
593594
# If one ld line is not for region overflowed --> failed
594595
if overflow_pattern.search(line) is None:
595596
error_found = True
597+
else:
598+
overflow_found = True
596599
if error_found:
597-
result = ffail
598-
boardKo.append(build_conf[idx_b_name])
599-
if args.ci:
600-
cat(logFile)
601-
nb_build_failed += 1
602600
break
603-
else:
604-
# else consider it succeeded
601+
# Succeeded if overflow is found and no other error found
602+
if overflow_found and not error_found:
605603
result = "\033[32msucceeded*\033[0m"
606604
nb_build_passed += 1
605+
else:
606+
result = ffail
607+
boardKo.append(build_conf[idx_b_name])
608+
if args.ci:
609+
cat(logFile)
610+
nb_build_failed += 1
607611
else:
608612
result = "\033[31merror\033[0m"
609613
boardKo.append(build_conf[idx_b_name])

CI/update/stm32variant.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,6 @@ def print_peripheral():
10371037

10381038
periph_c_file.write(
10391039
periph_c_template.render(
1040-
year=datetime.datetime.now().year,
10411040
mcu_file=mcu_file.name,
10421041
db_release=db_release,
10431042
peripherals_list=(
@@ -1360,7 +1359,6 @@ def print_variant(generic_list, alt_syswkup_list):
13601359

13611360
variant_h_file.write(
13621361
variant_h_template.render(
1363-
year=datetime.datetime.now().year,
13641362
pins_number_list=pins_number_list,
13651363
alt_pins_list=alt_pins_list,
13661364
alt_syswkup_list=alt_syswkup_list,
@@ -1379,7 +1377,6 @@ def print_variant(generic_list, alt_syswkup_list):
13791377

13801378
variant_cpp_file.write(
13811379
variant_cpp_template.render(
1382-
year=datetime.datetime.now().year,
13831380
generic_list=generic_list,
13841381
pinnames_list=pinnames_list,
13851382
analog_pins_list=analog_pins_list,
@@ -1515,7 +1512,6 @@ def print_general_clock(generic_list):
15151512
generic_clock_template = j2_env.get_template(generic_clock_filename)
15161513
generic_clock_file.write(
15171514
generic_clock_template.render(
1518-
year=datetime.datetime.now().year,
15191515
generic_list=generic_list,
15201516
)
15211517
)
@@ -1845,7 +1841,7 @@ def group_by_flash(group_base_list, glist, index_mcu_base):
18451841
# Assert
18461842
if sub.group(2) != "x":
18471843
print(
1848-
"Package of {base_name} info contains {sub.group(2)} instead of 'x'"
1844+
f"Package of {base_name}, ppe {ppe} info contains {sub.group(2)} instead of 'x'"
18491845
)
18501846
exit(1)
18511847
if sub.group(3):
@@ -2427,7 +2423,7 @@ def manage_repo():
24272423
update_regex = re.compile(r"defined\(ARDUINO_GENERIC_.+\)")
24282424
board_entry_regex = re.compile(r"(Gen.+\..+variant=STM32.+xx/)\S+")
24292425
# P T E
2430-
mcu_PE_regex = re.compile(r"([\w])([\w])([ANPQX])?$")
2426+
mcu_PE_regex = re.compile(r"([\w])([\w])([ANPQSX])?$")
24312427
aggregate_dir()
24322428

24332429
# Clean temporary dir

CI/update/templates/PeripheralPins.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020-{{year}}, STMicroelectronics
3+
* Copyright (c) 2020, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

CI/update/templates/generic_clock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020-{{year}}, STMicroelectronics
3+
* Copyright (c) 2020, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

CI/update/templates/variant_generic.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020-{{year}}, STMicroelectronics
3+
* Copyright (c) 2020, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

CI/update/templates/variant_generic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020-{{year}}, STMicroelectronics
3+
* Copyright (c) 2020, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
438438
| Status | Device(s) | Name | Release | Notes |
439439
| :----: | :-------: | ---- | :-----: | :---- |
440440
| :green_heart: | STM32U575AGIxQ<br>STM32U575AIIxQ<br>STM32U585AIIxQ | Generic Board | *2.1.0* | |
441-
| :green_heart: | STM32U575ZGTxQ<br>STM32U575ZITxQ<br>STM32U585ZETxQ | Generic Board | *2.1.0* | |
441+
| :green_heart: | STM32U575ZGTxQ<br>STM32U575ZITxQ<br>STM32U585ZITxQ | Generic Board | *2.1.0* | |
442442

443443
### Generic STM32WB boards
444444

0 commit comments

Comments
 (0)