There exists a tutorial how to use the RePhone http://wiki.seeed.cc/RePhone/ with Mac OS X, but its lacking some comfort, lets push this a little further, but not to the end
Existing tutorial: https://github.com/Seeed-Studio/CodeLite_for_RePhone/wiki/building-RePho...
What is it missing?
- IDE
- Firmwareupdater
- Pushtool for binary file to RePhone
It's Arduino based, RePhone is 'similar' to Mediatek Linkit board - so if you find Mac OS X stuff for the Linkit board, it's the closest you could find.
-
IDE
Get the Arduino.app - there is a 1.6.0 version and the recent one while I was developing was 1.6.13 version - main difference is the handling of different board configurations.
1.6.0: you can just copy the file tree of a new board configuration inside the app, app gets it
1.6.13: you need a defined file with some checksums to get it listed and this is usually provided via download - the closest one I found is: http://download.labs.mediatek.com/package_mtk_linkit_index.json - but not working out of the box for RePhone - I will not describe how to get this doneFor the ease of my development I used 1.6.0 version: www.arduino.cc/en/Main/OldSoftwareReleases on Mac OS X El Capitan 10.11.6
Download: https://www.arduino.cc/download_handler.php?f=/arduino-1.6.0-macosx-java...
-
IDE board definitions + compiler
Get the https://github.com/Seeed-Studio/Arduino_IDE_for_RePhone for Windows - don't worry, we just take the java IDE files from it
Download: https://github.com/Seeed-Studio/Arduino_IDE_for_RePhone/archive/master.zip
Copy files from master.zip archive to IDE:
cp -r hardware/arduino/mtk/ Arduino.app/Contents/Java/hardware/
-
Firmwareupdater
- is not essential to start working, but good to know it is possible
Is available, but needs some tweaking
Get: http://labs.mediatek.com/site/global/developer_tools/mediatek_linkit/get...Download USB drivers: https://labs.mediatek.com/en/download/I2cGRHeR
Download: http://download.labs.mediatek.com/mediatek_linkit_sdk_tool_osx-1.1.23.ta...Rename the folder inside the SDK:
mv tools/mtk/firmware/LinkIt_ONE tools/mtk/firmware/LinkIt_ONE_disabled
Move the firmware folder from the windows version in step 2) (from the master.zip) to the SDK:
cp -r hardware/tools/mtk/firmware/LinkIt_Device/RePhone tools/mtk/firmware/LinkIt_ONE
Now tools/mtk/FirmwareUpdater.app is able to flash the firmware to the RePhone
And you can also put it to the Arduino.app
cp -r tools/mtk Arduino.app/Contents/Java/hardware/tools
-
Pushtool
- not jet solved...
somehow it works with the simple 'blink' example, but fails with a more sophisticated one - no idea why - debugged on commandline....no clue
Alternatives to compare to / try:- take the commands from the logfile and rerun them one by one in terminal: ~/Documents/Push_Tool_Logs
- https://github.com/robarago/ArduinoGNULinux4RePhone - python uploader/firmware tool
- original firmware updater/uploader, linux tools, montor: https://github.com/mandl/LinkIt_Assist_2502
- Documentation, AT commands: https://github.com/loboris/RePhone_on_Linux/tree/master/Documents/Hardware
- default RePhone software: https://github.com/WayenWeng/RePhone_Create_Kit_VXP/blob/master/RePhone%...
as long as it is not solved, use the workaround:
-
Get binary onto RePhone
Just use the verify button to build your code for the RePhone target - you need to find the binary .vxp - which is in your temp folder - the IDE output gives you a hint - you can also just use 'find' to get it:
find /var/folders/ -name *.vxp
Put the RePhone in file mode, copy the file, e.g.:
cp /var/folders/lx/hhfx0mgp21vm/T/build66115160777.tmp/RINGRING.cpp.vxp /Volumes/NO\ NAME/MRE/
You might need to change the autostart file: /Volumes/NO\ NAME/autostart.txt
[autostart]
App=C:\MRE\RINGRING.cpp.vxpRestart rephone...by pushing 'the button'
Neueste Kommentare