[Jan 06] Arch Linux (20171225-1) PINE A64(+) Pinebook A64-LTS/SOPINE | [Jan 04] Linux (0.5.15-136) ROCK64 | [Jan 04] Android (20171204) ROCK64 | [Dec 22] Stretch Mate (0.5.15-136-20171222) ROCK64 | [Dec 21] openHAB 2 (v1.4) PINE A64(+) | [Dec 11] Volumio (2.315) PINE A64(+) A64-LTS/SOPINE | [Dec 11] Armbian (5.35) PINE A64(+) Pinebook A64-LTS/SOPINE | [Dec 8] OpenMediaVault (0.5.15-136) ROCK64

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


Programming PADI with Arduino IDE
#11
In the "Tools" menu of the Arduino IDE, I have
Board: "PADIIoTStamp"
OpenOCD: "JLink"
Port is greyed out.  The orange bar in the IDE has a message that, " the selected serial port does not exist or your board is not connected".  The notification at lower right says that I am using "PADIIoTStamp, JLink on COM9".  COM9 does not show up in the Device Manager.

I thought that the idea was that OpenOCD will take control of the JLink Mini EDU and program the PADI via the SWD lines, and that there was no need of a serial port.  Is this not so?
Reply
#12
are you sure you followed the guide in the 1st post? like running in portable mode? and " update the platform.txt file of "padiiotstamp" package to point to the correct OpenOCD installation, on Windows it is also necessary to hardcode the path to the output binary (ram_all.bin) in this same file."? "add the line " transport select swd" to the
/Path_to_OpenOCD/scripts/interface/jlink.cfg file to automatically switch to SWD instead of JTAG ? just checking here. is your padi on the breakout board from pine64? it seems to me that if you have swd plugged into usb port that should be seen in device manager. do you have the proper driver installed on windows for the swd?
Reply
#13
(06-13-2017, 12:26 PM)thomash Wrote: If necessary update the platform.txt file of "padiiotstamp" package to point to the correct OpenOCD installation

Well I'm getting this message:

Code:
Sketch uses 64820 bytes (2%) of program storage space. Maximum is 2499639 bytes.
java.io.IOException: Cannot run program "/usr/local/bin/openocd": error=2, No such file or directory

But where can I find this platform.txt file after I added the PADI board using the "Boards Manager" including the .json files etc. in the adruino propperties menu?

The Eclipse installer has put some openocd stuff in " /Applications/GNU ARM Eclipse/OpenOCD/0.9.0-201505191004" I have no clue what the root directory is to point to in case I can edit some platform.txt file.

Another route could be to move some openocd stuff into "/usr/local/bin/openocd"? Will that work? What folder should I move?

I'm working on OSX High Sierra, Arduino 1.8.5 IDE and I have been trying with both the "JLINK-OB-V1.2" form PINE64 and the ST-LINK 2V to get some code working on the PADI. Any advice? Thx!
Reply
#14
Anyone? Please?
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  PADI IoT Stamp CAD file collection thomash 2 532 09-05-2017, 08:07 PM
Last Post: machinehum

Forum Jump:


Users browsing this thread: 1 Guest(s)