Search found 129 matches

by Kenjutsu
Thu Sep 21, 2017 6:26 am
Forum: Off topic
Topic: Breadboard wire
Replies: 5
Views: 119

Re: Breadboard wire

Thanks @Pito 8-) Just wished they had more color options ;)
by Kenjutsu
Sun Sep 17, 2017 2:34 pm
Forum: Off topic
Topic: Breadboard wire
Replies: 5
Views: 119

Breadboard wire

Hello everyone, I want to buy single/solid core wire to make my own custom length wires when wiring up a project on a breadboard. Searching on AliExpress gives mixed results, so I was wondering, will the following work: 8colors PCB P/N 30AWG Wrapping Wire 250meter Flying Jumper 820FT Multicolor Cabl...
by Kenjutsu
Mon Jul 03, 2017 12:08 pm
Forum: Off topic
Topic: Help with preprocessor macro/xmacro
Replies: 2
Views: 167

Help with preprocessor macro/xmacro

I find myself doing more stuff like the following. #define LED_DLY 200 int led1; int led2; int led3; int led4; void setup_a() { led1 = 10; led2 = 11; led3 = 12; led4 = 13; pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); pinMode(led3, OUTPUT); pinMode(led4, OUTPUT); } void loop() { digitalWrite(led1, H...
by Kenjutsu
Tue Jun 27, 2017 7:41 am
Forum: Cores
Topic: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips
Replies: 47
Views: 2083

Re: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips

Pb4 and pb5 are od pins and unable to source current. You can either sink current on those pins or move to a different pin. Using your initial release (version: v0.10) and IAR EMSTM8, everything compiles and the LED on PB5 is blinking. However, with the latest release and IAR EMSTM8, the LED on PB5...
by Kenjutsu
Mon Jun 26, 2017 12:57 pm
Forum: Cores
Topic: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips
Replies: 47
Views: 2083

Re: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips

Thank you for the feedback. Here is what I am using: SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.6.6 #9921 (Mac OS X i386) stm8s.h from STM8S Standard Peripheral Library Ported to SDCC for multiple STM8 targets which contain the required #idefs for ...
by Kenjutsu
Thu Jun 22, 2017 1:30 pm
Forum: Cores
Topic: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips
Replies: 47
Views: 2083

Re: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips

I took a look at the SDCC manual. The issue with interrupts() is its use of an IAR-specific call. You can recreate that via assembly instructions "rim" and "sim". To make it more seamless, you can change the stm8s.h file, especially in the beginning where it complains about unsupported compiler - s...
by Kenjutsu
Sun Jun 18, 2017 3:12 pm
Forum: Cores
Topic: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips
Replies: 47
Views: 2083

Re: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips

I cannot find anything of interest on line 249 / 250, or 899 and 935. Maybe you can copy those lines over, +/- 5 lines? Again, those mentions of Evelyn / Dog mean nothing to me. Looks to be very SDCC specific. I got rid of the " Evelyn / Dog" messages by removing inline from void pinMode(PIN_TypeDe...
by Kenjutsu
Sat Jun 17, 2017 1:46 pm
Forum: Cores
Topic: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips
Replies: 47
Views: 2083

Re: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips

The complaints around line 590 on tmp is because it was declared in the middle of that function. I have since moved it to the beginning of the function. Fixed that and see what else may pop up. stm8sduino.c:249: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG stm...
by Kenjutsu
Sat Jun 17, 2017 1:05 pm
Forum: Cores
Topic: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips
Replies: 47
Views: 2083

Re: ARMduino - a generic implementation of Arduino on ARM Cortex-M chips

RogerClark wrote:But, I have noticed a lot of cheap devices use the STM8, so having a way to repurpose those devices would be good.
Have a look here eForth for cheap STM8S gadgets