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