<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Can't Compile SCFW Debug Monitor</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-Compile-SCFW-Debug-Monitor/m-p/1056497#M155392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We were able to solve the issue ourselves, it was a missing thing in Makefile that we didn't port over:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;diff --git a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile
index 0f8901e..b04746f 100644
--- a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile
+++ b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile
@@ -48,3 +48,6 @@ CTRL_MD += $(SRC)/board/mx8qx_$(B)/control.txt
DIRS += $(OUT)/board/mx8qx_$(B)
+ifeq ($(M),1)
+ OBJS += $(OUT)/board/pmic.o
+endif
diff --git a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom
index f129642..68d9ada 100755
--- a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom
+++ b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom
@@ -34,3 +34,6 @@ DRV2 += \
pmic \
pmic/pf8100
+ifeq ($(M),1)
+ DRV2 += pmic/pf100
+endif‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2020 13:51:46 GMT</pubDate>
    <dc:creator>philippe_schenk</dc:creator>
    <dc:date>2020-04-06T13:51:46Z</dc:date>
    <item>
      <title>Can't Compile SCFW Debug Monitor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-Compile-SCFW-Debug-Monitor/m-p/1056496#M155391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;I tried to compile SCFW with debug monitor enabled. This works fine if I do it for the MEK board:&lt;PRE class="language-none"&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$ make clean; make SOC=MX8QX B=mek R=b0 M=1 qx
Compiling platform/drivers/pmic/fsl_pmic.c
Compiling platform/drivers/pmic/pf8100/fsl_pf8100.c
Compiling platform/drivers/pmic/pf100/fsl_pf100.c
Compiling platform/board/mx8qx_mek/board.c
Compiling platform/board/board_common.c
Assembling platform/board/board.S
Compiling platform/board/pmic.c
Linking build_mx8qx_b0/scfw_tcm.elf ....
Objcopy build_mx8qx_b0/scfw_tcm.bin ....
done.&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;
&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I cannot reproduce this for our board:&lt;/P&gt;&lt;PRE class="language-none"&gt;&lt;CODE&gt;$ make clean; make SOC=MX8QX B=apalis R=b0 M=1 qx
Compiling platform/drivers/pmic/fsl_pmic.c
Compiling platform/drivers/pmic/pf8100/fsl_pf8100.c
Compiling platform/board/mx8qx_apalis/board.c
Compiling platform/board/board_common.c
Assembling platform/board/board.S
Linking build_mx8qx_b0/scfw_tcm.elf ....
/opt/toolchains/gcc-arm-none-eabi-8-2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: build_mx8qx_b0/main/monitor.o: in function `cmd_pmic':
/home/bamboo/automation/sumo-4.14.98-2.3.0/bsp_pkg_mx8/temp_build_dir/build-imx8qmmek/tmp/work/imx8qmmek-poky-linux/imx-scfw-porting-kit/1.3.1+gitAUTOINC+b929edfe9e-r0/git/firmware/platform/main/monitor.c:2554: undefined reference to `dynamic_pmic_register_access'
/opt/toolchains/gcc-arm-none-eabi-8-2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /home/bamboo/automation/sumo-4.14.98-2.3.0/bsp_pkg_mx8/temp_build_dir/build-imx8qmmek/tmp/work/imx8qmmek-poky-linux/imx-scfw-porting-kit/1.3.1+gitAUTOINC+b929edfe9e-r0/git/firmware/platform/main/monitor.c:2578: undefined reference to `dynamic_pmic_register_access'
/opt/toolchains/gcc-arm-none-eabi-8-2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: build_mx8qx_b0/main/monitor.o: in function `cmd_pmic_list_8100':
/home/bamboo/automation/sumo-4.14.98-2.3.0/bsp_pkg_mx8/temp_build_dir/build-imx8qmmek/tmp/work/imx8qmmek-poky-linux/imx-scfw-porting-kit/1.3.1+gitAUTOINC+b929edfe9e-r0/git/firmware/platform/main/monitor.c:2640: undefined reference to `dynamic_pmic_get_voltage'
/opt/toolchains/gcc-arm-none-eabi-8-2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /home/bamboo/automation/sumo-4.14.98-2.3.0/bsp_pkg_mx8/temp_build_dir/build-imx8qmmek/tmp/work/imx8qmmek-poky-linux/imx-scfw-porting-kit/1.3.1+gitAUTOINC+b929edfe9e-r0/git/firmware/platform/main/monitor.c:2649: undefined reference to `dynamic_pmic_get_voltage'
collect2: error: ld returned 1 exit status
make: *** [Makefile:555: build_mx8qx_b0/scfw_tcm.elf] Error 1‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I compared the MEK board file and ours, but can't spot any difference regarding this linker errors. Could you please help me getting that compiled and the bug fixed so we are able to use the debug monitor too in the future?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards&lt;BR /&gt;Philippe&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="326386" data-objecttype="3" href="https://community.nxp.com/people/nxa06357" rel="nofollow noopener noreferrer" target="_blank"&gt;Raluca Popa&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2020 16:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-Compile-SCFW-Debug-Monitor/m-p/1056496#M155391</guid>
      <dc:creator>philippe_schenk</dc:creator>
      <dc:date>2020-04-03T16:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Compile SCFW Debug Monitor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-Compile-SCFW-Debug-Monitor/m-p/1056497#M155392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We were able to solve the issue ourselves, it was a missing thing in Makefile that we didn't port over:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;diff --git a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile
index 0f8901e..b04746f 100644
--- a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile
+++ b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/Makefile
@@ -48,3 +48,6 @@ CTRL_MD += $(SRC)/board/mx8qx_$(B)/control.txt
DIRS += $(OUT)/board/mx8qx_$(B)
+ifeq ($(M),1)
+ OBJS += $(OUT)/board/pmic.o
+endif
diff --git a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom
index f129642..68d9ada 100755
--- a/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom
+++ b/src/scfw_export_mx8qx_b0/platform/board/mx8qx_apalis/board.bom
@@ -34,3 +34,6 @@ DRV2 += \
pmic \
pmic/pf8100
+ifeq ($(M),1)
+ DRV2 += pmic/pf100
+endif‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2020 13:51:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-Compile-SCFW-Debug-Monitor/m-p/1056497#M155392</guid>
      <dc:creator>philippe_schenk</dc:creator>
      <dc:date>2020-04-06T13:51:46Z</dc:date>
    </item>
  </channel>
</rss>

