<?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のトピックdifferences in battery charge current if booting from battery or 5V</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/differences-in-battery-charge-current-if-booting-from-battery-or/m-p/242877#M20557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out that recharging the battery through the iMX283 PMU takes much more than expected, so I put a current meter in series with my LiPo battery and now I'm trying to measure the charge current in different situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discharge current is around 280mA - 320mA when no 5V power source is active.&lt;/P&gt;&lt;P&gt;I modified the kernel driver for our custom board to use a charge current limit of 300mA and I can see debug messages when 5V is connected, that show the current actually ramp up to 300mA:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Battery charger: setting max chargecurrent to: 300mA&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I boot from battery power, then attach the 5V source, the charge current is around 210mA&lt;/P&gt;&lt;P&gt;When I boot from 5V power, I can see the charge current riseup to around 310mA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the 5V source and then putting it back on does not change the above figures. So I think something happens during the "boot_prep" stage that influences how the kernel driver handles the charge current.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went on and tried to do a register dump in the above two cases, but I don't get any significative difference, or at least I can't see it. Here are the two dumps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Boot from battery, then connected 5V (charge current stops at 210mA)&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;root@pwm-term ~$ ./memtool&amp;nbsp; 80044000 60&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Reading 0x60 count starting at address 0x80044000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044000:&amp;nbsp; 00278548 00278548 00278548 00278548&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044010:&amp;nbsp; 00024513 00024513 00024513 00024513&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044020:&amp;nbsp; 00000040 00000040 00000040 00000040&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044030:&amp;nbsp; 00000318 00000318 00000318 00000318&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044040:&amp;nbsp; 0002041E 0002041E 0002041E 0002041E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044050:&amp;nbsp; 0000270C 0000270C 0000270C 0000270C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044060:&amp;nbsp; 00002608 00002608 00002608 00002608&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044070:&amp;nbsp; 00000230 00000230 00000230 00000230&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044080:&amp;nbsp; A0C00001 A0C00001 A0C00001 A0C00001&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044090:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440A0:&amp;nbsp; 0000305F 0000305F 0000305F 0000305F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440B0:&amp;nbsp; 00167021 00167021 00167021 00167021&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440C0:&amp;nbsp; 03078A2E 03078A2E 03078A2E 03078A2E&lt;/SPAN&gt;&lt;/P&gt;


&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440D0:&amp;nbsp; 00000700 00000700 00000700 00000700&lt;/SPAN&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440E0:&amp;nbsp; 01F90E0F 01F90E0F 01F90E0F 01F90E0F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440F0:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044100:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044110:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044120:&amp;nbsp; 00000080 00000080 00000080 00000080&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044130:&amp;nbsp; 0000000E 0000000E 0000000E 0000000E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044140:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044150:&amp;nbsp; 04000000 04000000 04000000 04000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044160:&amp;nbsp; 84000400 84000400 84000400 84000400&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044170:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;


&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;Boot from 5V (charge current reaches 310mA):&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;root@pwm-term ~$ ./memtool&amp;nbsp; 80044000 60&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Reading 0x60 count starting at address 0x80044000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044000:&amp;nbsp; 00278548 00278548 00278548 00278548&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044010:&amp;nbsp; 04024513 04024513 04024513 04024513&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044020:&amp;nbsp; 00000040 00000040 00000040 00000040&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044030:&amp;nbsp; 00000318 00000318 00000318 00000318&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044040:&amp;nbsp; 0002041E 0002041E 0002041E 0002041E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044050:&amp;nbsp; 0000270C 0000270C 0000270C 0000270C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044060:&amp;nbsp; 00002608 00002608 00002608 00002608&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044070:&amp;nbsp; 00000230 00000230 00000230 00000230&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044080:&amp;nbsp; A0C00001 A0C00001 A0C00001 A0C00001&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044090:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440A0:&amp;nbsp; 0000305F 0000305F 0000305F 0000305F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440B0:&amp;nbsp; 00167021 00167021 00167021 00167021&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440C0:&amp;nbsp; 20078A2E 20078A2E 20078A2E 20078A2E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440D0:&amp;nbsp; 00000600 00000600 00000600 00000600&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440E0:&amp;nbsp; 02050E0F 02050E0F 02050E0F 02050E0F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440F0:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044100:&amp;nbsp; 3E770000 3E770000 3E770000 3E770000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044110:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044120:&amp;nbsp; 00000080 00000080 00000080 00000080&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044130:&amp;nbsp; 0000000E 0000000E 0000000E 0000000E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044140:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044150:&amp;nbsp; 04000000 04000000 04000000 04000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044160:&amp;nbsp; 84000400 84000400 84000400 84000400&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044170:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;


&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first difference is 0x80044010:&amp;nbsp; 00024513 &amp;lt;&amp;gt; 04024513 which is a different VBUSDROOP_TRSH settings (4.3V against 4.5V)&lt;/P&gt;&lt;P&gt;Then 0x800440C0:&amp;nbsp; 03078A2E &amp;lt;&amp;gt; 20078A2E which is simply the power up source (PSWITCH for battery boot, VDD5V for 5V boot)&lt;/P&gt;&lt;P&gt;0x800440E0 is the battery voltage, which of course is different&lt;/P&gt;&lt;P&gt;0x80044100:&amp;nbsp; 3E770000 means that the reset unlock key has been written&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0x800440D0 is somewhat mysterious, as no documentation is provided to decode the DC/DC internal status.&lt;/P&gt;&lt;P&gt;I found this to be 00000600 or 00000400 or 00000700, but without any relation to the boot source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is:&lt;/P&gt;&lt;P&gt;Why do I get a different charge current, lower than expected, if I boot from the battery?&lt;/P&gt;&lt;P&gt;What other registers, other than the HW_POWER group, should I check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the 2.6.35.3_1.1.0 release, with some patches to support our custom board.&lt;/P&gt;&lt;P&gt;I am providing 5V power through the USB connection.&lt;/P&gt;&lt;P&gt;The battery charge level and voltage is around the same when I perform these tests and is not related to the problem.&lt;/P&gt;&lt;P&gt;I always get around 100mA less charge current then I expected, when booting off the battery and applying 5V later on, after kernel initializes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 14:34:10 GMT</pubDate>
    <dc:creator>RoboTech</dc:creator>
    <dc:date>2013-10-28T14:34:10Z</dc:date>
    <item>
      <title>differences in battery charge current if booting from battery or 5V</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/differences-in-battery-charge-current-if-booting-from-battery-or/m-p/242877#M20557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out that recharging the battery through the iMX283 PMU takes much more than expected, so I put a current meter in series with my LiPo battery and now I'm trying to measure the charge current in different situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discharge current is around 280mA - 320mA when no 5V power source is active.&lt;/P&gt;&lt;P&gt;I modified the kernel driver for our custom board to use a charge current limit of 300mA and I can see debug messages when 5V is connected, that show the current actually ramp up to 300mA:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Battery charger: setting max chargecurrent to: 300mA&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I boot from battery power, then attach the 5V source, the charge current is around 210mA&lt;/P&gt;&lt;P&gt;When I boot from 5V power, I can see the charge current riseup to around 310mA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the 5V source and then putting it back on does not change the above figures. So I think something happens during the "boot_prep" stage that influences how the kernel driver handles the charge current.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went on and tried to do a register dump in the above two cases, but I don't get any significative difference, or at least I can't see it. Here are the two dumps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Boot from battery, then connected 5V (charge current stops at 210mA)&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;root@pwm-term ~$ ./memtool&amp;nbsp; 80044000 60&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Reading 0x60 count starting at address 0x80044000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044000:&amp;nbsp; 00278548 00278548 00278548 00278548&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044010:&amp;nbsp; 00024513 00024513 00024513 00024513&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044020:&amp;nbsp; 00000040 00000040 00000040 00000040&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044030:&amp;nbsp; 00000318 00000318 00000318 00000318&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044040:&amp;nbsp; 0002041E 0002041E 0002041E 0002041E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044050:&amp;nbsp; 0000270C 0000270C 0000270C 0000270C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044060:&amp;nbsp; 00002608 00002608 00002608 00002608&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044070:&amp;nbsp; 00000230 00000230 00000230 00000230&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044080:&amp;nbsp; A0C00001 A0C00001 A0C00001 A0C00001&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044090:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440A0:&amp;nbsp; 0000305F 0000305F 0000305F 0000305F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440B0:&amp;nbsp; 00167021 00167021 00167021 00167021&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440C0:&amp;nbsp; 03078A2E 03078A2E 03078A2E 03078A2E&lt;/SPAN&gt;&lt;/P&gt;


&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440D0:&amp;nbsp; 00000700 00000700 00000700 00000700&lt;/SPAN&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440E0:&amp;nbsp; 01F90E0F 01F90E0F 01F90E0F 01F90E0F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440F0:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044100:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044110:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044120:&amp;nbsp; 00000080 00000080 00000080 00000080&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044130:&amp;nbsp; 0000000E 0000000E 0000000E 0000000E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044140:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044150:&amp;nbsp; 04000000 04000000 04000000 04000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044160:&amp;nbsp; 84000400 84000400 84000400 84000400&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044170:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;


&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;Boot from 5V (charge current reaches 310mA):&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;root@pwm-term ~$ ./memtool&amp;nbsp; 80044000 60&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Reading 0x60 count starting at address 0x80044000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044000:&amp;nbsp; 00278548 00278548 00278548 00278548&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044010:&amp;nbsp; 04024513 04024513 04024513 04024513&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044020:&amp;nbsp; 00000040 00000040 00000040 00000040&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044030:&amp;nbsp; 00000318 00000318 00000318 00000318&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044040:&amp;nbsp; 0002041E 0002041E 0002041E 0002041E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044050:&amp;nbsp; 0000270C 0000270C 0000270C 0000270C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044060:&amp;nbsp; 00002608 00002608 00002608 00002608&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044070:&amp;nbsp; 00000230 00000230 00000230 00000230&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044080:&amp;nbsp; A0C00001 A0C00001 A0C00001 A0C00001&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044090:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440A0:&amp;nbsp; 0000305F 0000305F 0000305F 0000305F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440B0:&amp;nbsp; 00167021 00167021 00167021 00167021&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440C0:&amp;nbsp; 20078A2E 20078A2E 20078A2E 20078A2E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440D0:&amp;nbsp; 00000600 00000600 00000600 00000600&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440E0:&amp;nbsp; 02050E0F 02050E0F 02050E0F 02050E0F&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x800440F0:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044100:&amp;nbsp; 3E770000 3E770000 3E770000 3E770000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044110:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044120:&amp;nbsp; 00000080 00000080 00000080 00000080&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044130:&amp;nbsp; 0000000E 0000000E 0000000E 0000000E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044140:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044150:&amp;nbsp; 04000000 04000000 04000000 04000000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044160:&amp;nbsp; 84000400 84000400 84000400 84000400&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0x80044170:&amp;nbsp; 00000000 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;


&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first difference is 0x80044010:&amp;nbsp; 00024513 &amp;lt;&amp;gt; 04024513 which is a different VBUSDROOP_TRSH settings (4.3V against 4.5V)&lt;/P&gt;&lt;P&gt;Then 0x800440C0:&amp;nbsp; 03078A2E &amp;lt;&amp;gt; 20078A2E which is simply the power up source (PSWITCH for battery boot, VDD5V for 5V boot)&lt;/P&gt;&lt;P&gt;0x800440E0 is the battery voltage, which of course is different&lt;/P&gt;&lt;P&gt;0x80044100:&amp;nbsp; 3E770000 means that the reset unlock key has been written&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0x800440D0 is somewhat mysterious, as no documentation is provided to decode the DC/DC internal status.&lt;/P&gt;&lt;P&gt;I found this to be 00000600 or 00000400 or 00000700, but without any relation to the boot source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is:&lt;/P&gt;&lt;P&gt;Why do I get a different charge current, lower than expected, if I boot from the battery?&lt;/P&gt;&lt;P&gt;What other registers, other than the HW_POWER group, should I check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the 2.6.35.3_1.1.0 release, with some patches to support our custom board.&lt;/P&gt;&lt;P&gt;I am providing 5V power through the USB connection.&lt;/P&gt;&lt;P&gt;The battery charge level and voltage is around the same when I perform these tests and is not related to the problem.&lt;/P&gt;&lt;P&gt;I always get around 100mA less charge current then I expected, when booting off the battery and applying 5V later on, after kernel initializes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:34:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/differences-in-battery-charge-current-if-booting-from-battery-or/m-p/242877#M20557</guid>
      <dc:creator>RoboTech</dc:creator>
      <dc:date>2013-10-28T14:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: differences in battery charge current if booting from battery or 5V</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/differences-in-battery-charge-current-if-booting-from-battery-or/m-p/242878#M20558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Please use the patch in the post&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2004" data-containertype="14" data-objectid="98034" data-objecttype="102" href="https://community.freescale.com/docs/DOC-98034"&gt;https://community.freescale.com/docs/DOC-98034&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 09:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/differences-in-battery-charge-current-if-booting-from-battery-or/m-p/242878#M20558</guid>
      <dc:creator>GraceH</dc:creator>
      <dc:date>2013-10-31T09:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: differences in battery charge current if booting from battery or 5V</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/differences-in-battery-charge-current-if-booting-from-battery-or/m-p/242879#M20559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Grace, that worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't see that page when I searched the community. I guess I must learn how the search works. I thought all relevant pages were reported, maybe they were only "discussions", but not "documents". I must have inadvertently enabled some filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I had mis-interpreted the first difference in my register dumps. That could have helped me if I got it right:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;The first difference is 0x80044010:&amp;nbsp; 00024513 &amp;lt;&amp;gt; 04024513 which is a different VBUSDROOP_TRSH settings (4.3V against 4.5V)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;I was wrong. The difference is in the HEADROOM_ADJ field, I missed the initial 0. By the way the reference manual is a bit mysterious about the actual contents of this field:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Adjustment to optimize the performance of the battery charge and 4.2V regulation circuit at low 5v voltages.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;That doesn't seem too much explicative. It may look almost unrelated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I'm glad it works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 17:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/differences-in-battery-charge-current-if-booting-from-battery-or/m-p/242879#M20559</guid>
      <dc:creator>RoboTech</dc:creator>
      <dc:date>2013-10-31T17:13:05Z</dc:date>
    </item>
  </channel>
</rss>

