Miskatino / miskatino-basic

BASIC interpreter for Arduino and STM32
21 stars 6 forks source link

Non flash running program issue and fix #11

Open JiriBilek opened 4 years ago

JiriBilek commented 4 years ago

Hi, thanks for an interesting project. I am experimenting with your code and maybe I found an issue. When I turned off the flash memory (edited the code in hwutil.c) and wanted to run the program from RAM only, it didn't work. I believe there is a missing line before https://github.com/Miskatino/miskatino-basic/blob/757b76107205dd161376ea51f15cb962eed0f150/core/main.c#L126 After adding the following lines before the line 126, everything works fine:

nextLineNum = 1;
mainState |= STATE_STEPS;
RodionGork commented 4 years ago

Hi Friend!

Now, what platform do you mean, AVR/Arduino or STM32?

JiriBilek commented 4 years ago

I thought it's a general issue. I am playing with it on my custom hardware with STM32F072, so I used the core folder and some code from your stm32f103.