Dear All,
I use LPC1778 and try to divide internal flash memory for my handmade bootloader and firmware. And when i set another IROM1 start address for my firmware (for example 0x1000) i see SWD Communication Failure message in window "Building Output". After that i can't debug or update my mcu. Can use only ISP. Why changing IROM1 start address is stopping MCU? What i have to do to run my code from any address? P.S. When i use LPC2367 there is no these problems. P.P.S. My version 4.53
I trying apply RAM_MODE, REMAP commands for my startup file. But doesn't work. With best regards, Vladimir.
How do you suppose that the processor would know:
1. that you have code at "another address", and
2. what that address is?
Ok, if processor don't know his start address. How it's possible to let him know?
With best regards, Vladimir.
see my two posts.
a) bootloader b) via .ini file that sets the Registers.
I add .ini file as initialization file in debug/simulator. //--------------------------------------------------------------------------------------------- FUNC void Setup (void) { SP = _RDWORD(0x10000000); // Setup Stack Pointer PC = _RDWORD(0x10000004); // Setup Program Counter _WDWORD(0xE000ED08, 0x10000000); // Setup Vector Table Offset Register - VTOR }
LOAD %L INCREMENTAL // load the application
Setup(); // Setup for Running
g, main
//---------------------------------------------------------------------------------------------
And try to run my programm in simulator. But it doesn't work even in simulator... It's stoped in 1st instruction :
0x00000000 0000 MOVS r0,r0
Where is my mistake??? Does anyone knows?
With best regards, Vladimir
Is that really what your .ini file looks like?
Of course it isn't. No doubt you are in awe of my superior intellect and know you will never attain similar heights, but you must at least be able to clamber up the fist step and post code so others can read it.
I'am sorry if i reviled you. But specialists on this site recomend me to find and add .ini file in project. And i just don't know how to correctly post code.