<?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>topic PDM_eReadDataFromRecord results in a Bus Error in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1295645#M11277</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I implemented&amp;nbsp;PDM_eReadDataFromRecord in my&amp;nbsp;JN-AN-1218-Zigbee-3-0-Light-Bulb based project. As an example i used&amp;nbsp;app_power_on_counter.c.&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;typedef struct {
	uint8 u8MinDim;
	uint8 u8MaxDim;
}tsMinMaxDim;
PRIVATE tsMinMaxDim sMinMaxDim;

    	PDM_teStatus eStatus;
		uint16 u16ByteRead;
		eStatus = PDM_eReadDataFromRecord(PDM_ID_APP_MIN_MAX_DIM,
										  &amp;amp;sMinMaxDim,
										  sizeof(tsMinMaxDim),
										  &amp;amp;u16ByteRead);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it results in a bus error.&lt;/P&gt;&lt;P&gt;What am i doing wrong?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 20:50:05 GMT</pubDate>
    <dc:creator>jacco_bezemer</dc:creator>
    <dc:date>2021-06-21T20:50:05Z</dc:date>
    <item>
      <title>PDM_eReadDataFromRecord results in a Bus Error</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1295645#M11277</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I implemented&amp;nbsp;PDM_eReadDataFromRecord in my&amp;nbsp;JN-AN-1218-Zigbee-3-0-Light-Bulb based project. As an example i used&amp;nbsp;app_power_on_counter.c.&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;typedef struct {
	uint8 u8MinDim;
	uint8 u8MaxDim;
}tsMinMaxDim;
PRIVATE tsMinMaxDim sMinMaxDim;

    	PDM_teStatus eStatus;
		uint16 u16ByteRead;
		eStatus = PDM_eReadDataFromRecord(PDM_ID_APP_MIN_MAX_DIM,
										  &amp;amp;sMinMaxDim,
										  sizeof(tsMinMaxDim),
										  &amp;amp;u16ByteRead);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it results in a bus error.&lt;/P&gt;&lt;P&gt;What am i doing wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 20:50:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1295645#M11277</guid>
      <dc:creator>jacco_bezemer</dc:creator>
      <dc:date>2021-06-21T20:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: PDM_eReadDataFromRecord results in a Bus Error</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1296269#M11278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/78273"&gt;@jacco_bezemer&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Are you sure that your identifier exists?&lt;/P&gt;
&lt;P&gt;Please call the&amp;nbsp;PDM_bDoesDataExist() in order&lt;BR /&gt;to determine whether a record with the specified identifier exists in the EEPROM.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1296269#M11278</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2021-06-22T15:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: PDM_eReadDataFromRecord results in a Bus Error</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1296274#M11279</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;Yes, the identifier exists, this is how my PDM_IDs.h looks like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/*  application ids start from 0Xa100 */
#define PDM_ID_APP_TL_ROUTER                (0xA100)
#define PDM_ID_APP_SCENES_DATA              (0xA101)
#define PDM_ID_OTA_DATA                     (0xA102)
#define PDM_ID_APP_CLD_GP_TRANS_TABLE       (0xA103)
#define PDM_ID_APP_CLD_GP_SINK_PROXY_TABLE  (0xA104)
#define PDM_ID_APP_REPORTS                   0xA105
#define PDM_ID_POWER_ON_COUNTER              0xA106
#define PDM_ID_ZCL_ATTRIB                    0xA107
#define PDM_ID_APP_NTAG_NWK                  0xA108
#define PDM_ID_APP_CONVERT                   0xA109
#define PDM_ID_APP_NFC_NWK_NCI               0x30
#define PDM_ID_APP_NFC_ICODE                 0x31
#define PDM_ID_APP_MIN_MAX_DIM               (0xA10A)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i tried&amp;nbsp;&lt;SPAN&gt;PDM_bDoesDataExist(), but it also results in a bus error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PDM_teStatus eStatus;
    	eStatus = PDM_eSaveRecordData(PDM_ID_APP_MIN_MAX_DIM,
    	                        &amp;amp;sMinMaxDim,
    	                        sizeof(tsMinMaxDim));
    	DBG_vPrintf(TRACE_DRIVER, "\nDimmer: PDM_eSaveRecordData Status = %d", eStatus);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;results in&amp;nbsp;PDM_E_STATUS_OK.&lt;/P&gt;&lt;P&gt;So the record exists (i think).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1296274#M11279</guid>
      <dc:creator>jacco_bezemer</dc:creator>
      <dc:date>2021-06-22T16:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: PDM_eReadDataFromRecord results in a Bus Error</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1296362#M11282</link>
      <description>&lt;P&gt;I called&amp;nbsp;PDM_eReadDataFromRecord from within&amp;nbsp;DriverBulb_vInit() which is before&amp;nbsp;PDM_eInitialise(63) is called and that caused the Bus Error.&lt;/P&gt;&lt;P&gt;Now find a way to read settings from EEPROM in DriverBulb_vInit (or prior) &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 21:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/PDM-eReadDataFromRecord-results-in-a-Bus-Error/m-p/1296362#M11282</guid>
      <dc:creator>jacco_bezemer</dc:creator>
      <dc:date>2021-06-22T21:11:03Z</dc:date>
    </item>
  </channel>
</rss>

