Hi! I am currently working on porting micropython to a new board. I came to the stage where my firmware compilation was ok, safely uploaded and having logs printed, but just couldn't see REPL (three ">") running.
I am new to project of this magnitude and complexity, so any information or direction is truly appreciated!
What is minimal requirement to have REPL running?
Re: What is minimal requirement to have REPL running?
I think that the minimal requirements are to have the heap initialized, and have the mp_hal functions related to the uart implemented.
This is essentially what the minimal port does: https://github.com/micropython/micropyt ... ts/minimal
This is essentially what the minimal port does: https://github.com/micropython/micropyt ... ts/minimal
Re: What is minimal requirement to have REPL running?
Thanks ! !dhylands wrote: ↑Fri Jul 24, 2020 4:45 pmI think that the minimal requirements are to have the heap initialized, and have the mp_hal functions related to the uart implemented.
This is essentially what the minimal port does: https://github.com/micropython/micropyt ... ts/minimal
Just as I suspected, I got heap and uart implemented, but haven't touched mp_hal... speaking of which, can you be a little more specific about the mp_hal function? I checked the "mphalport.h" file in the minimal folder, there is basically nothing there...
Re: What is minimal requirement to have REPL running?
Thanks!!dhylands wrote: ↑Fri Jul 24, 2020 4:45 pmI think that the minimal requirements are to have the heap initialized, and have the mp_hal functions related to the uart implemented.
This is essentially what the minimal port does: https://github.com/micropython/micropyt ... ts/minimal
Just as I suspected, I got heap and uart done, but not mp_hal function.. speaking of which, can you be a little more specific about the mp_hal functions? I looked into the minimal port folder and the "mphalport.h" contains barely anything..
Re: What is minimal requirement to have REPL running?
Look at uart_core.c in the minimal port.