Import precompiled code into wipy 2.0
Posted: Tue May 02, 2017 3:16 pm
Hi everyone,
I'm currently trying to import precompiled code but it always fails.
I followed this topics but the repository seems to have changed a bit and I think the procedure isn't good anymore.
viewtopic.php?f=11&t=2326
viewtopic.php?f=3&t=2334&p=13322&hilit= ... led#p13322
What I did is first to clone the micropython-esp32 repository at https://github.com/micropython/micropython-esp32 to my computer.
Then I built mpy-cross and precompile my module.
As the line #define MICROPY_PERSISTENT_CODE_LOAD (1) already exists in micropython/cc3200/mpconfigport.h and py/emitglue.c doesn't contains 400 lines anymore (looks like it changed a lot) I suppose I don't need to rebuild the firmware anymore. Am I right?
Whatever when I try to load my precompiled module from flash it's never found by python.
I would like to know what I am dooing wrong. I have to admit that I feel a little lost with all the repos and different boards that exist.
So should I rebuild the firmware and flash it to my board or it's not necessary?
Am I using the good repository when I compile with mpy-cross?
I also tried to compile with the -mcache-lookup-bc option but I obtain the same result, is there more option I'm missing?
I will certainly have other questions as I'm a pure noob in micropython but I think I begin to understand how it works.
I hope someone will help me because I'm stuck with it for quite a long time ^^.
Thank you in advance and sorry if my english is not perfect
I'm currently trying to import precompiled code but it always fails.
I followed this topics but the repository seems to have changed a bit and I think the procedure isn't good anymore.
viewtopic.php?f=11&t=2326
viewtopic.php?f=3&t=2334&p=13322&hilit= ... led#p13322
What I did is first to clone the micropython-esp32 repository at https://github.com/micropython/micropython-esp32 to my computer.
Then I built mpy-cross and precompile my module.
As the line #define MICROPY_PERSISTENT_CODE_LOAD (1) already exists in micropython/cc3200/mpconfigport.h and py/emitglue.c doesn't contains 400 lines anymore (looks like it changed a lot) I suppose I don't need to rebuild the firmware anymore. Am I right?
Whatever when I try to load my precompiled module from flash it's never found by python.
I would like to know what I am dooing wrong. I have to admit that I feel a little lost with all the repos and different boards that exist.
So should I rebuild the firmware and flash it to my board or it's not necessary?
Am I using the good repository when I compile with mpy-cross?
I also tried to compile with the -mcache-lookup-bc option but I obtain the same result, is there more option I'm missing?
I will certainly have other questions as I'm a pure noob in micropython but I think I begin to understand how it works.
I hope someone will help me because I'm stuck with it for quite a long time ^^.
Thank you in advance and sorry if my english is not perfect