How to increase RX66T boot loader size from 32Kbytes to 64Kbytes?

Hi, I'm using R5F566TAAGFF mcu for the project. The Renesas example bootloader with xmodem flash meory area size is less than 30Kbyte which is working fine.

I've updated code from xmodem to ymodem protocol, program is flash into flash memory and jumping to user application (with optimization level as 0 and code size is 36Kbytes). But if i reset or power cycle the MCU then the MCU is hanged in " flash_softwareUnlock() " function.  

r_main_userinit() -> flash_write_init() -> R_FLASH_Open() -> flash_softwareUnlock() ;

 

I've changed the optimization level as 1 and the boot loader program size is reduced from 36Kbytes to 26Kbytes. After that the reset or power cycle issue is resolved.

Then i've implemented I2C EEPROM read and write code, the code size is increased to 28Kbytes, but the I2C related code is not working.

All the issues are related to flash program size, then cross verified with " Renesas Starter Kit for RX66T Boot Loader Application Note " and the document shows the flash memory area Address from 0xFFF80000 to 0xFFF8FFFF which is 64Kbytes. Attached all the neccessary screeshots for your reference.

The flash program memory size for different test condition is listed below:

Protocol                             Flash Size                       optimiation level                 Boot Loader status                I2C Status

Xmodem-128byte                 30Kbyte                                 0                                  working fine                         Not Implemented 

Ymodem-1024byte               36Kbyte                                 0                                  Not working                         Working

Ymodem-1024byte               26Kbyte                                 1                                   working fine                         Not Implemented   

Ymodem-1024byte               28Kbyte                                 1                                   working fine                        Implemented but Not Working   

Requesting your support to increase the flash memory area from 32Kbytes to 64Kbytes. Please share the flash memory size increase related screenshots or working sample code for 64Kbytes. 

 

“Thank You in Advance”

Murali