Search found 15 matches

by Jimmus
Mon Jan 15, 2018 10:50 pm
Forum: STM8
Topic: Same C code, different assembly
Replies: 4
Views: 75

Re: Same C code, different assembly

Thanks, you two, for your help. You answered both my questions, and that's exactly what I needed. I tried the iar compiler, but as far as I could find it's a Windows compiler, and although it works with Wine -- kinda, it's more than I'm willing to deal with today. So I'm left with either ignoring th...
by Jimmus
Mon Jan 15, 2018 6:59 am
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 258

Re: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]

So I have a question about this, Ray. It wasn't just in my .ino file that I had to make the declaration. I had already tried that. I actually had to go find the stm8_it.h file and modify that. I don't have a major problem with that, because it's my system and I can do it any way I want as long as it...
by Jimmus
Mon Jan 15, 2018 6:27 am
Forum: STM8
Topic: Same C code, different assembly
Replies: 4
Views: 75

Same C code, different assembly

I really like the AutoWakeUp feature of the STM8. So I want to use it as a delay() substitute, and it's working quite well. Basically I set the timeout in the AWU registers and enable the interrupt, and every time I do a halt() instruction it does a sleeping delay(). Which is pretty slick. But I'm s...
by Jimmus
Thu Jan 11, 2018 8:57 pm
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 258

Re: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]

Yeah, it is a pretty strange requirement. Not at all intuitive. @zmemw16 well, that's what the manual said -- "a prototype of the isr MUST be present in the file that contains the function 'main'." Main.c included <Arduino.h>, which included "stm8s_it.h", which is where I ultimately uncommented the ...
by Jimmus
Thu Jan 11, 2018 5:40 pm
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 258

Re: How do I get my AWU ISR into the interrupt vector table?

Well, RTFM! If you have multiple source files in your project, interrupt service routines can be present in any of them, but a prototype of the isr MUST be present in the file that contains the function 'main'. From main.c: #include <Arduino.h> // make sure to define prototypes for all used interrup...
by Jimmus
Thu Jan 11, 2018 5:26 pm
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 258

Re: How do I get my AWU ISR into the interrupt vector table?

@edogaldo Yes I'm saying the sketch doesn't run the neverending empty loop. Or any of the code right after the halt() instruction. Notice that code is supposed to turn the LED *OFF* and then enter the forever loop. Behavior is that the LED turns ON after 0.5 seconds. I'm pretty sure it isn't running...
by Jimmus
Thu Jan 11, 2018 5:28 am
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 258

Re: How do I get my AWU ISR into the interrupt vector table?

Oh. Sorry. I thought posting in the STM8 sub-forum would indicate which hardware I'm using.

It's a STM8S003F3P6 minimum system development board. I'm using the sduino core, STM8S103F3 breakout board option in the IDE. The sdcc compiler.
by Jimmus
Thu Jan 11, 2018 1:04 am
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 258

Re: How do I get my AWU ISR into the interrupt vector table?

@Pito I'm not sure we're using the same hardware platform. I don't seem to have memory at those addresses. I can't find any mention of SCB anything or VTOR either. Grep doesn't show any matches in the entire package.
by Jimmus
Wed Jan 10, 2018 8:03 pm
Forum: STM8
Topic: How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]
Replies: 17
Views: 258

How do I get my AWU ISR into the interrupt vector table? [SOLVED -- RTFM!]

Trying to get Auto Wake Up to work. I have tried everything I could find, and I eventually got it to work but not in a way that I should have to. Long story short, I ended up pretty much talking to the controller registers directly. // Tests AutoWakeup so we can use it for power saving mode. #define...
by Jimmus
Sat Jan 06, 2018 5:47 am
Forum: STM8
Topic: Introducing Sduino for the STM8
Replies: 26
Views: 1752

Re: Introducing Sduino for the STM8

Tenbaht, I don't remember exactly the steps I had to go through, but I think I can remember the couple of things I had problems with... First, when I plugged my STLink device in, somehow Linux didn't recognize it. I don't know why, because I was messing with it and watching dmesg, and it started wor...