Re: [Sdcc-user] RAM program

2020-11-24 Thread Philipp Klaus Krause
Am 24.11.20 um 19:01 schrieb Georg Icking-Konert: > hello again again, > > sorry for flooding you with this issue but I have good news! > > As I don't know where SDCC / STM8 store stack, heap etc. in RAM, I > thought I'd better stay away from the borders. Seemingly that was a bad > idea, because

Re: [Sdcc-user] RAM program

2020-11-24 Thread Georg Icking-Konert
hello again, I did a few more tests and it seems like ROM bootloader and stm8gal function properly. Here is what I did:   1) program a "fast blink" program to 0x8000 (checked in map and ihx file)   2) compile/link a "slow blink" for 0x9000 (checked in map and ihx file)   3) manually removed

Re: [Sdcc-user] RAM program

2020-11-24 Thread Georg Icking-Konert
hello again again, sorry for flooding you with this issue but I have good news! As I don't know where SDCC / STM8 store stack, heap etc. in RAM, I thought I'd better stay away from the borders. Seemingly that was a bad idea, because if I replace 0xa0 in Makefile by 0x00 (start of RAM), it wor

Re: [Sdcc-user] RAM program

2020-11-24 Thread Georg Icking-Konert
Hi Basil, attached please find the project with output. Maybe you find something. File "main_RAM.ihx" was manually created by removing all lines in "main.ihx" with address in flash. I tested this with a Sduino Uno board (https://github.com/roybaer/sduino_uno) and used stm8gal for uploading