Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Message on check against sau num regions = 0 #1582

Merged
merged 7 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/svdconv/SVDConv/src/SVDConv_Msgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const MsgTable SvdConv::msgTable = {
{ "M384", { MsgLevel::LEVEL_ERROR, CRLF_B, "Number of PMU Event Counters (found val: '%NUM%') not set or outside range [2..31]. Ignoring PMU entry."} }, // 14.02.2020
{ "M385", { MsgLevel::LEVEL_ERROR, CRLF_B, "PMU not supported for CPU '%NAME%'" } }, // 14.02.2020
{ "M386", { MsgLevel::LEVEL_ERROR, CRLF_B, "Name not C compliant: '%NAME%' : Brackets [] found" } },
{ "M387", { MsgLevel::LEVEL_ERROR, CRLF_B, "" } },
{ "M387", { MsgLevel::LEVEL_ERROR, CRLF_B, "CPU: <sauNumRegions> set to null but regions are configured." } },
thorstendb-ARM marked this conversation as resolved.
Show resolved Hide resolved
{ "M388", { MsgLevel::LEVEL_ERROR, CRLF_B, "MVE Floating-Point support is set but MVE is not set" } },
{ "M389", { MsgLevel::LEVEL_ERROR, CRLF_B, "Specified <deviceNumInterrupts>: '%NUM%' greater or equal '%NAME%': '%NUM2%'."} }, // 05.05.2020
{ "M390", { MsgLevel::LEVEL_WARNING3, CRLF_B, "Checking IRQ '%NAME%': CPU unknown (see <cpu>). Assuming a maximum of %NUM% external Interrupts."} }, // 13.05.2020
Expand Down
6 changes: 5 additions & 1 deletion tools/svdconv/SVDModel/src/SvdCpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,14 @@ bool SvdCpu::CheckItem()
LogMsg("M363", lineNo);
m_sauRegionsConfig->Invalidate();
}
else if(m_sauNumRegions == 0) {
LogMsg("M387", lineNo);
m_sauRegionsConfig->Invalidate();
}
}

if(m_sauNumRegions != SvdItem::VALUE32_NOT_INIT) {
if(m_sauNumRegions == 0 || m_sauNumRegions > MAXNUM_SAU_REGIONS) {
if(m_sauNumRegions > MAXNUM_SAU_REGIONS) {
LogMsg("M364", NUM(m_sauNumRegions), NUM2(MAXNUM_SAU_REGIONS), lineNo);
m_sauNumRegions = SvdItem::VALUE32_NOT_INIT;
if(m_sauRegionsConfig) {
Expand Down
Loading