Problem in executing the code from RENESAS FLASH PROGRAMMER V3.06

I had a  project up and running on DKs7g2 board, but when i tried flashing the code from RENESAS FLASH PROGRAMMER V3.06 with Micro USB cable, the status tab showed an error that code size big for the flash ROM memory. Apparently my code size was just around 820kb(19% of the total 4Mb) . After a lot of surfing, I got a solution in this regard from one of the discussion threads here at forum, which suggested marking SPP Vector table as NOLOAD in the .ld file. Changing it to NO LOAD did work and i could flash the code successfully. However, now the problem is that the code seems to be not executing on DKS7g2 board. I checked gain with debugging in e2studio and it worked just fine, whitout any changes.

Can some one help me what might be the cause??

** PS I have removed all Printf and commented intialise_monitor_handles() from the code, but the code is still not working.

** The display just shows white light for a second and goes off

I am attaching an image regarding  the only setting i changed in the .ld file below here.

  • Hi heman,

    >However, now the problem is that the code seems to be not executing on DKS7g2 board. I checked gain with debugging in e2studio and it worked just fine, whitout any changes.
    If you disconnect e2studio after debugging and power supply is re-turned on, do your code work?
  • In reply to tenballs:

    The problem is solved, there was one printf remaining in one of the source files. Apparently can you brief me a bit why standalone execution is not possible with printf() in the code.
  • In reply to heman:

    infocenter.arm.com/.../index.jsp

    The semihosted printf() causes an exception that is handled by the debugger, if the debugger isn't attached, the program crashes.