<?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 Re: M68EVB912B32 FLASH EEPROM and internal EEPROM in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130588#M1412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;(1) I have good success with the BC32 (same as yours but with CAN). I'm thinking that your first problem may be if you have used PC-relative instructions, but relocating your code without changing the relativity. Know what I mean?&lt;BR /&gt;&lt;BR /&gt;(2) Do you mean you applied 5V as the programming voltage (VFP)? That wouldn't work, but it's close. The VFP for programming should be 12V (regulated). And allow about 300mA. I have a series resistor 30R and a 12V zener diode (shunt) to establish my 12V. Apply that to VFP while keeping 5V on VDD, and it shouldn't complain anymore.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2006 23:07:18 GMT</pubDate>
    <dc:creator>imajeff</dc:creator>
    <dc:date>2006-03-30T23:07:18Z</dc:date>
    <item>
      <title>M68EVB912B32 FLASH EEPROM and internal EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130587#M1411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have two questions about the above mentioned board and its FLASH EEPROM and internal EEPROM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I ran out of RAM on this board (only 512 bytes) and wanted to move my code the internal EEPROM (starts at $0D00) while keeping my variables in the RAM (at $800). However, I have encounted the following problem: Whenever I relocate code to the internal EEPROM my programs do not execute D-BUG12 utility subroutines anymore (such as putchar(), getchar(), setuservector() etc.) Why is that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I tried to program the external 32K FLASH EEPROM today without success. I put the board into Bootloader mode and selected "Program". Whenever I select it the board tells me that it could not find Vpf. I follow the instructions in the manual and put header W7 in position 1-2 (move from Vdd to Vpp) and supply 5V and GND to header pin W8, while still keeping 5 V on VDD. However, the boot loader still tells me that Vpf cannot be found. I tested this with 2 boards. The manual says to make sure that you are supplying power according to specifications, and the specifications state that Vpf should be at least Vdd-0.35 V or greater. Hence, since I supply the same to Vdd and Vpp I should be fine. I tried a variable power supply on Vpp and varied between 4.5-5.5 V and still got no results. What else could be wrong on BOTH boards???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all and any help on both 1) and 2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Christian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 11:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130587#M1411</guid>
      <dc:creator>cjw</dc:creator>
      <dc:date>2006-03-30T11:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: M68EVB912B32 FLASH EEPROM and internal EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130588#M1412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;(1) I have good success with the BC32 (same as yours but with CAN). I'm thinking that your first problem may be if you have used PC-relative instructions, but relocating your code without changing the relativity. Know what I mean?&lt;BR /&gt;&lt;BR /&gt;(2) Do you mean you applied 5V as the programming voltage (VFP)? That wouldn't work, but it's close. The VFP for programming should be 12V (regulated). And allow about 300mA. I have a series resistor 30R and a 12V zener diode (shunt) to establish my 12V. Apply that to VFP while keeping 5V on VDD, and it shouldn't complain anymore.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 23:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130588#M1412</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2006-03-30T23:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: M68EVB912B32 FLASH EEPROM and internal EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130589#M1413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;imajeff wrote:&lt;BR /&gt;(1) I have good success with the BC32 (same as yours but with CAN). I'm thinking that your first problem may be if you have used PC-relative instructions, but relocating your code without changing the relativity. Know what I mean?&lt;BR /&gt;&lt;BR /&gt;(2) Do you mean you applied 5V as the programming voltage (VFP)? That wouldn't work, but it's close. The VFP for programming should be 12V (regulated). And allow about 300mA. I have a series resistor 30R and a 12V zener diode (shunt) to establish my 12V. Apply that to VFP while keeping 5V on VDD, and it shouldn't complain anymore.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(1) I am not 100% sure what you mean. The D-BUG12 Subroutines resides in the external 32K Flash Memory Chip. I always do a jump to an address there (i.e. $F684 is putchar()) and it works. If I relocate my code to internal EEPROM I cannot explain why it suddenly wouldn't work anymore, as I did not change anything on the external Flash EEPROM.&lt;BR /&gt;&lt;BR /&gt;(2) I have seen conflicting info on this. The document on Freescale's website states that Vdd and Vpp should be nearly equal. I didn't want to apply 12 V to the W8 header and blow the board. The document also says that it should work with Vdd = Vpp. I will see what happens if I put 12V to it, but I am not sure if I will get 300mA out of the power supply.&lt;BR /&gt;&lt;BR /&gt;Again, thanks for your continued help, this forum has been a blessing in trying to work with this microcontroller project.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 23:18:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130589#M1413</guid>
      <dc:creator>cjw</dc:creator>
      <dc:date>2006-03-30T23:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: M68EVB912B32 FLASH EEPROM and internal EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130590#M1414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;(1) So can I assume you use EXT mode and do not use the "PC relative"?&lt;BR /&gt;&lt;PRE&gt;
EXT mode:  JSR  $F684        ; absolute is absolute
PCREL:     JSR  $F684,PC     ; would not work if code is relocated&lt;/PRE&gt;&lt;BR /&gt;Note that by relocated I mean code moved without re-assembling at new location. So which way are you relocating it? If not the problem, I can't think of anything else yet. Check for other errors... trace it.&lt;BR /&gt;&lt;BR /&gt;(2) It seems conflicting only when missing something:&lt;BR /&gt;&lt;BR /&gt;Vdd and Vpp should be nearly equal __for normal operation__.&lt;BR /&gt;&lt;BR /&gt;Vpp must be within tolerance of 12V __for programming Flash__.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 00:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130590#M1414</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2006-03-31T00:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: M68EVB912B32 FLASH EEPROM and internal EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130591#M1415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;imajeff wrote:&lt;BR /&gt;(1) So can I assume you use EXT mode and do not use the "PC relative"?&lt;BR /&gt;&lt;PRE&gt;
EXT mode:  JSR  $F684        ; absolute is absolute
PCREL:     JSR  $F684,PC     ; would not work if code is relocated&lt;/PRE&gt;&lt;BR /&gt;Note that by relocated I mean code moved without re-assembling at new location. So which way are you relocating it? If not the problem, I can't think of anything else yet. Check for other errors... trace it.&lt;BR /&gt;&lt;BR /&gt;(2) It seems conflicting only when missing something:&lt;BR /&gt;&lt;BR /&gt;Vdd and Vpp should be nearly equal __for normal operation__.&lt;BR /&gt;&lt;BR /&gt;Vpp must be within tolerance of 12V __for programming Flash__.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(1) I am doing an absolute jump:&lt;BR /&gt;LDAB #'F'&lt;BR /&gt;LDX $F684&lt;BR /&gt;JSR 0,X&lt;BR /&gt;Should output F to the D-BUG screen. It does it when it is in RAM but not when in EEPROM.&lt;BR /&gt;&lt;BR /&gt;To relocate to EEPROM, I change my ORG statements in the .asm file and reassmble and upload the .s19 file using the EVB bootloader to internal EEPROM. I keep my variables at ORG $800 and all code goes to ORG $0D00. Code always runs there but never when I use D-Bug subroutines as described above.&lt;BR /&gt;&lt;BR /&gt;(2) Thanks, I will surely try this out. The manual, to me, was not clear on that at all.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 00:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/M68EVB912B32-FLASH-EEPROM-and-internal-EEPROM/m-p/130591#M1415</guid>
      <dc:creator>cjw</dc:creator>
      <dc:date>2006-03-31T00:20:29Z</dc:date>
    </item>
  </channel>
</rss>

