From f9c19eaa9ab11e4409679fc6d2862c89410493a7 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Fri, 7 May 2021 16:08:14 +0100 Subject: MLECO-1860: Support for Arm GNU Embedded Toolchain This patch enables compilation of ML use cases bare-metal applications using Arm GNU Embedded Toolchain. The GNU toolchain can be used instead of the Arm Compiler that was already supported. The GNU toolchain is also set as the default toolchain when building applications for the MPS3 target. Note: The version of GNU toolchain must be 10.2.1 or higher. Change-Id: I5fff242f0f52d2db6c75d292f9fa990df1aec978 Signed-off-by: Kshitij Sisodia --- source/use_case/kws/src/UseCaseHandler.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source/use_case/kws') diff --git a/source/use_case/kws/src/UseCaseHandler.cc b/source/use_case/kws/src/UseCaseHandler.cc index d61985d..eaf53c1 100644 --- a/source/use_case/kws/src/UseCaseHandler.cc +++ b/source/use_case/kws/src/UseCaseHandler.cc @@ -187,7 +187,7 @@ namespace app { platform.data_psn->present_data_text( str_inf.c_str(), str_inf.size(), dataPsnTxtInfStartX, dataPsnTxtInfStartY, 0); - info("Running inference on audio clip %u => %s\n", currentIndex, + info("Running inference on audio clip %" PRIu32 " => %s\n", currentIndex, get_filename(currentIndex)); /* Start sliding through audio clip. */ @@ -270,7 +270,7 @@ namespace app { static bool SetAppCtxClipIdx(ApplicationContext& ctx, uint32_t idx) { if (idx >= NUMBER_OF_FILES) { - printf_err("Invalid idx %u (expected less than %u)\n", + printf_err("Invalid idx %" PRIu32 " (expected less than %u)\n", idx, NUMBER_OF_FILES); return false; } @@ -313,13 +313,15 @@ namespace app { rowIdx1 += dataPsnTxtYIncr; if (results[i].m_resultVec.empty()) { - info("For timestamp: %f (inference #: %u); label: %s; threshold: %f\n", + info("For timestamp: %f (inference #: %" PRIu32 + "); label: %s; threshold: %f\n", results[i].m_timeStamp, results[i].m_inferenceNumber, topKeyword.c_str(), results[i].m_threshold); } else { for (uint32_t j = 0; j < results[i].m_resultVec.size(); ++j) { - info("For timestamp: %f (inference #: %u); label: %s, score: %f; threshold: %f\n", + info("For timestamp: %f (inference #: %" PRIu32 + "); label: %s, score: %f; threshold: %f\n", results[i].m_timeStamp, results[i].m_inferenceNumber, results[i].m_resultVec[j].m_label.c_str(), -- cgit v1.2.1