This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UCD3138064 40 PIN QFN Flash Memory (Program) Size

Other Parts Discussed in Thread: UCD3138064

Hi All,

I'm working with UCD3138064 40 PIN QFN Device.

Referring to the Datasheet SLUSB72B (UCD3138064.pdf), I've noticed that there are two different Tables in Chapter 3, with conflicting values: I'm talking about Flash Memory (Program).

Referring to the Table 3.1 - Device Comparison Table, i can see a value of 64KB for this MCU.

Referring to the Table 3.2 - Product Selection Matrix, this value changes along with the number of PIN, in my case the values is 32KB. (As you can see below)

I would like to know if the MCU has 32KB or 64KB as Flash Memory (Program) size. Is it possible that the second Program Bank (Bank2) is unavailable for this MCU with 40PIN?

Thank you for you reply.

Best Regards,

Massimo

  • All the UCD3138064s have 64K of program flash regardless of package size.
  • First of all, thank you for your fast reply, I have some other questions and I hope that you can help me:

    1_ Is it possible that the second Program Bank (Bank 2) is unavailable for this MCU?

    2_ Does exist a firmware that lock the access at the second bank? I'm asking that because I'm not able to access it, even if it seems to be programmed with 0xAA values.

    I would like to understand how does it work this "Bank Switch", assuming that the bank size is 32KB.

    Thank you so much for your kind support,

    Massimo Carolo
  • Massimo, sorry to respond so slowly.  Somehow I missed your follow up questions.

    1.  To erase Bank2, just send the same erase block or erase page command as you would use to erase data or program flash on the 30xx or the 3138, but where you would put a 0 for data flash, or a 1 for program flash, put a 2 for block 2. 

    2. To write to it, use the same write commands, just to addresses from 0x8000 to 0xffff. 

    You can find out about the bank switch in the UCD3138064 programmer's manual.  Basically it is possible to change the addressing of the two banks on the fly while the program is running.  You can switch so that Bank 1 is located at 0x8000 and Bank 0 is located at 0xffff.  This works fine when the program is running, but is not recommended while you are programming the flash.