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.

controlSUITE-examples bugs (.cmd and flash-programming)

Other Parts Discussed in Thread: CONTROLSUITE

Hi all,


Just wanted to let you know about two issues/bugs discovered while integrating the example "flash_programming_c28" into my own code:

1) The size of the test buffer, see line 57 of the file flash_programming_c28.c, is one word too small, should be:

#define  WORDS_IN_FLASH_BUFFER    0x100  // Programming data buffer, words

If not lines 271-274 will corrupt the .ebss and write 0xFF to a "random" location.

2) Not directly related to the example, but discovered when making a "link-to-ram" config of it. The example command file "28M35H52C1_RAM_lnk_c28.cmd" (within folder "controlSUITE\device_support\f28m35x\v203\F28M35x_common\cmd") does not have the correct portion of M0 reserved for boot-rom. That is, line 64 should be, see page 578 of TRM:

 BOOT_RSVD   : origin = 0x000002, length = 0x00009F     /* Part of M0, BOOT rom will use this for stack */

and line 50, accordingly:

RAMM0       : origin = 0x0000A1, length = 0x00035F     /* on-chip RAM block M0 */

(This issue caused an error when using the the boot to sci to load my link-to-ram program)

Would be nice if someone could independently confirm this .


Thank you,

Christian

  • Christian,

    1) You are correct on the buffer size.  We will fix it.  Thank you for notifying us.

    2) I will ask our BootROM expert to take a look at this.

    Thanks and regards,
    Vamsi

  • Christian L said:

     BOOT_RSVD   : origin = 0x000002, length = 0x00009F     /* Part of M0, BOOT rom will use this for stack */

    and line 50, accordingly:

    RAMM0       : origin = 0x0000A1, length = 0x00035F     /* on-chip RAM block M0 */

    Vamsi/Christian,

    TRM is correct, I will submit a bugzilla for the controlsuite files correction. Thanks a lot for bringing this to our attention.

    Best Regards

    Santosh