Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I found out that using the 2132 target in the Keil project let my board start up. So the startup code for the 2148 target doesn't work on all boards. Now the supervisor mode becomes user mode after start up.
If I do like:
while(1)
{
int i;
for(i=0; i < 2000; i++){};
}
or
while(1)
{
int i=0;
if(i < 2000){i++};
}
And I place a breakpoint either to the for or if loop, it passes one time at the breakpoint and then it keep branching to same instruction(0x8C4). At the same address??
I'm using the KEIL IDE and toolchain to compile and run code on my LPC2148. The toolchain is the realvision / armcc. I debug the code with a segger J-link and run it at 100kHz.
When I run the code on the device it get stuck in a branch instruction to itself (it's own instruction address). Why...
And then I flashed it with this demo software, A freeRTOS framework included all peripheral drivers. When I run it, the device resetted itself and tried to enumerat it as a mass storage device. Indeed I compiled all the drivers for that.
It's maybe even possible I overwrite the serial...
CPU is normally halted by the GDB server. So the application in Flash can't start running. But I can't understand why Flash sectors are not programmable anymore?
---------- Post added at 22:40 ---------- Previous post was at 22:07 ----------
I see my error now.
GDB server message:
ERROR: TCK...
Guys... I'm realy desperate to get my LPC2148 back online. After I blow in the freeRTOS code (see makefile), the LPC have memory problems. From what I presume from the gdb messages?
I also don't see any startup file there, that I normally use for my not RTOS applications.
I tried to flash it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.