TG9541/stm8ef

CREATE fails in STM8S

Peffrey opened this issue · 3 comments

Hi,

I am really enjoying using this toolchain for my project. However, I'm a bit stuck at the moment:

I'm trying to CREATE a byte-oriented data table for an audio DSP in a STM8S105 running STM8EF2.2.29.pre1 and using e4thcom-0.84, it ends up choking at a certain point and the loading/compilation ends. I have tried loading in both buffered and non-buffered modes in e4thcom, same effect. I didn't see any similar reports as I searched past issues.

Here's what I'm seeing in the terminal:
create dsp_table ok
$1 c, $00 c, $6C c, ok
$1 c, $01 c, $04 c, ok

[ ... lots more table data ]

$00 c, $00 c, $00 c, $00 c, $00 c, $00 c, ok
$00 c, $00 c, $00 c, $00 c, $00 c, $0?
at Line 354 in File ./target/dsp_basic.fth

I've tried loading this after a reset, and also #include in my Forth code, it fails at random lines, usually +/- a few from what is reported above. I've also tried breaking the table up into smaller chunks, still the same result. Is the STM8S running out of RAM? After a cold and reset I can get the STM8S responsive again.

My main code is a much larger file and always loads fine, so I'm wondering why I only get this trying to CREATE the data table? Before flagging this as a "bug" I'm open to being corrected on use of the toolchain or directives/memory control words I may not understand correctly. I can also successfully include this in gforth, so the data table seems OK.

Thanks and let me know what more info you need from me, if any.

Cheers,

Peff

VK6TT commented

@VK6TT thanks for spotting this!

@Peffrey porting code from gForth to STM8 eForth can be challenging - if you have questions feel free to file an issue!

I'm curious about your project and the DSP functions you're designing. If you'd find the time to write a Gist or put it in a GitHub repo it might be a good candidate for the example code page in the Wiki!