Go to advanced search

by but
Sat Jun 07, 2014 4:35 pm
Forum: Bare metal, Assembly language
Topic: exception vector handling problem
Replies: 13
Views: 3394

Re: exception vector handling problem

you mentioned uboot I think, it may be doing something undesireable. You could try simply putting your program as kernel.img and modifying config.txt to load at zero, and eliminate uboot as a problem or not. well, svc #0 works fine, don't know how he swallowed 0xffffffff instruction.. kind of stran...
by but
Wed Jun 04, 2014 7:52 pm
Forum: Bare metal, Assembly language
Topic: exception vector handling problem
Replies: 13
Views: 3394

Re: exception vector handling problem

well, i try what you advised to me (asm volatile("ldr pc, =0xfffffff1"); ) but instead of getting to undefined instruction its jump to reset again and again... strange Hmm, I was thinking asm volatile(".word 0xFFFFFFFF"); sorry, i might have not understood you right. you're mean...
by but
Tue Jun 03, 2014 8:02 pm
Forum: Bare metal, Assembly language
Topic: exception vector handling problem
Replies: 13
Views: 3394

Re: exception vector handling problem

Hello, you're welcome... Assuming uboot is doing what you/we think it is doing then yes that should have worked. And your branching should hop it to the handler. Perhaps you are not really getting or causing an exception. I think with the armv6 the alignment is allowed by default, maybe not, but yo...
by but
Mon Jun 02, 2014 9:08 pm
Forum: Bare metal, Assembly language
Topic: exception vector handling problem
Replies: 13
Views: 3394

Re: exception vector handling problem

thanks, i'll try. actually my real goal is to try TrustZone possibilities, but i could not get to monitor mode, so try to generate plain exception first. by the way, have You ever try TrustZone? it should be maintained on RPI...
by but
Mon Jun 02, 2014 8:42 pm
Forum: Bare metal, Assembly language
Topic: exception vector handling problem
Replies: 13
Views: 3394

Re: exception vector handling problem

thank you for your responses. i fixed my linker script to re-base vectors table to 0, but it doesn't help either :( . here is my linker script: ENTRY(vectors) /* OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-little", "elf32-big", "srec", &q...
by but
Sat May 31, 2014 9:11 am
Forum: Bare metal, Assembly language
Topic: exception vector handling problem
Replies: 13
Views: 3394

exception vector handling problem

hello, i've been trying to handle an exception on my raspberry, and can't figure out what the problem is. instead of jump to my blink() function (which is just simple led blinking) execution just hangs somewhere. here is my code: vector.S #include "exception.h" .global reset .global _undef...

Go to advanced search