Espruino Build issues using README_BuildProcess.md and Extending+Espruino+1 within Windows10 environment #6192
Replies: 1 comment
-
Posted at 2019-09-30 by AkosLukacs Looks like you don't have
You can try that, but bash scripts failed for me if I didn't clone to a WSL-only path. Posted at 2019-10-02 by Robin Tue 2019.10.01 BINGO! @AkosLukacs, that appears to be what was missed! While in the vain attempt to not make the 'Rookie' mistake, I introduced and now own today's 'Knucklehead' award. As I installed Python as I have always done, I was convinced scripts were running within VSCode. Never could get passed the following line though:
Was wondering what the 'Linux' reference was. Then today, . . . Aaahhhhh, now the following line makes sense now: The page I grabbed was the first one below. Note the subtle page name difference!
The link from #2 above
Although I haven't followed through, a task for this weekend, I'm sure that will get me back on track. > 'but bash scripts failed for me if I didn't clone to a WSL-only path' Are you able to suggest a 'WSL-only' path, and where Windows then places the repository in the Windows file space then? I believe the intent is still to create a folder using the Terminal window inside VSCode, and then install Python there? Posted at 2019-10-02 by AkosLukacs
Yes, so WSL is a separate linux running in your windows, so you have to install things like python separately. Open a remote WSL in code. Attachments: Posted at 2019-10-06 by Robin Sun 2019.10.06 At it again, but still struggling. Followed the step-by-step VSCode WSL terminal window entry using the lines beneath the 'for Espruino' heading, starting with:
Am able to edit a .c file and observe that it changes the local file at:
and, Python installed correctly this time along with git and pip but, running the make command line, isn't providing a .hex file in:
Confirming the above is the folder where the .hex and .bin files will end up?
Is this terminal window output what is observed during the 'Rookie' mistake? *That is, the install is still in the wrong location?* EDIT: Just tried BOARD=PICO_R1_3 make
Attachments: Posted at 2019-10-06 by Robin Okay, getting warmer now, Under 'Problems' tab
Web search turned up: I opened the \gen folder and only a 'README' file exists. Searching for instructions as to whether I need to create that file or if it is (failed) as a result of not all extensions in the correct place yet. EDIT: *(hour later)* From post #14 link to [GitHub output](https://gist.github.com/Fxlr8/990b6d74f6575cb59bf20502411d3744) shows file is auto gen'd
Verified that file 'build_platform_config.py' is within the tree both inside VSCode and within the local file system. Re-ran
and still have error under 'Problems' tab:
Posted at 2019-10-06 by AkosLukacs Did you ran Just ran Posted at 2019-10-06 by Robin
I did at one time but had 'PICO' instead of 'PICO_R1_3' Incidentally, I read in one of the online files, (can't find link) that 'PICO' was an acceptable argument. Maybe not? Running the 'Just ran' command an now get:
And then on to 'RELEASE'
So, we are close. I thought I understood where the output would reside, but the files within the structure on the local drive are not updating. Running a search for \gen locates the platform_config.h file beneath:
and I am able to see the .bin file at that location, the parent of \gen
But, unfortunately, the .hex file isn't being built. Attachments: Posted at 2019-10-07 by AkosLukacs My bad, it's the Posted at 2019-10-07 by Robin Mon 2019.10.07 Not being picky, but wanted to validate what I thought I saw for d/l options, as my belief was a .bin and a .hex for all builds.
But, looking at Puck, an nRF52 for instance, actually is d/l as a .zip, containing a .bin and .dat but no .hex, so is there still a qualifier needed in your #9 sentence? I'm still way too new to have enough of an understanding to even make a feeble suggestion here. Thank you @AkosLukacs for hanging in there to guide me to a solution. Still tons to learn, but at least I have the basics to dig through the 'C' source and make improvement suggestions. I have now successfully created my own Espruino Build! I'll post some install tips for Win10 later this week. Posted at 2019-10-07 by AkosLukacs Ok, I was wrong: The zip is the DFU package to be used when updating the Puck / Pixl / MDBT40Q breakout. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-09-30 by Robin
Sun 2019.09.29
Spin off from suggestions in a completely separate thread topic started at:
From that link,
A special Thank You @wilberforce #6, @gfwilliams #17, and @AkosLukacs #8 for the step-by-step detail.
Had a bit of down time to make my first pass attempt, and quite frankly a bit overwhelmed, mostly from new terms and new language obstacles not having experience with WSL, Linux, Python and VSCode. Made tremendous progress thanks to @AkosLukacs, but still stuck at a possible basic setup issue.
Should I execute from the terminal window within VSCode:
Terminal >> Run Active File
So, first guess is that VSCode is allowing WSL to function.
Then on to executing a Python file in the same manner.
Should I execute from the terminal window
BOARD=PICO_R1_3 make
Terminal >> Run Build Task
But, the Python script ran, so the Python Extension for VSCode should be functioning. (only uninstall visible) and the file
build_board_json.py
is present from the clone process.So, it appears I'm stuck at the same ['Rookie' mistake](http://forum.espruino.com/comments/14873740/), @AkosLukacs warns about perhaps?
To keep things tidy in Windows10, I attempted
cd ~
as in step 3 from AkosLukacs #8But that placed the contents in the 'Users' folder, and code isn't easily backed up as compared to when within the 'Documents' folder
I changed that to
cd Documents
then ran thegit clone
instructionSo from the Windows point of view, the cloned files are now at
C:\Users\robin\Documents\Espruino\
and from WSL are at
/mnt/c/Users/robin/Documents/Espruino
Also looked over @jumjum 's 'C' extension tutorials for hints ideas etc > http://forum.espruino.com/conversations/291695/#comment13174227
The obvious stand out to anyone?
Beta Was this translation helpful? Give feedback.
All reactions