Skip to content

Commit

Permalink
fixed noTZ with Core
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstendb-ARM committed Oct 5, 2023
1 parent 8e69128 commit 38ab0d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/stm32CubeMX/stm32CubeMX.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ func FilterFile(file string) bool {
}

func FindMxProject(subsystem *cbuild.SubsystemType, mxprojectAll MxprojectAllType) (MxprojectType, error) {
if len(mxprojectAll.Mxproject) == 0 {
return MxprojectType{}, errors.New("no .mxproject read")
} else if len(mxprojectAll.Mxproject) == 1 {
mxproject := mxprojectAll.Mxproject[0]
return mxproject, nil
}

coreName := subsystem.CoreName
trustzone := subsystem.TrustZone
if trustzone == "off" {
Expand Down

0 comments on commit 38ab0d4

Please sign in to comment.