p3p / pio-nxplpc-arduino-lpc176x Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
A fresh (no cache in platformio) Build of marlin for LPC1768 gives the following warning:
Processing LPC1768 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; board: nxp_lpc1768; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Tool Manager: Installing toolchain-gccarmnoneeabi @ >=1.90000
Tool Manager: Warning! More than one package has been found by toolchain-gccarmnoneeabi @ >=1.90000 requirements:
- platformio/toolchain-gccarmnoneeabi @ 1.50401.210106
- maxgerhardt/toolchain-gccarmnoneeabi @ 1.40903.0
Tool Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-gccarmnoneeabi @ 1.90301.200702 has been installed!
Hi. Have troubles in Marlin with Wire.h
Wire.requestFrom (addr,len); if (Wire.available()>=0) { SERIAL_ECHOLN("available");
I never see "available". This code work perfect on mega2560
Hello.
When I try tou compile Marlin 2.x on VS Code + Platformio, I select LPC1769 board and build the project but I have an error message :
Processing LPC1769 (board: nxp_lpc1769; platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; framework: arduino)
Error: Could not find one of 'package.json' manifest files in the package
This project is outdated or dead ?
Regards
Hello.
Not sure if it's this framework issue, but on Marlin-bugfix-2.1.1 brunch with config LPC1768 (board: nxp_lpc1768; platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; framework: arduino)
(build env: Visual Studio Code + PlatformIO Core 6.1.5 Home 3.4.3 on Windows 10) I've got an error:
Processing LPC1768 (board: nxp_lpc1768; platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; framework: arduino)
Verbose mode can be enabled via `-v, --verbose` option
AttributeError: 'SConsEnvironment' object has no attribute 'IsCleanTarget':
File "C:\Users\domoc\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 186:
env.SConscript(item, exports="env")
File "C:\Users\domoc\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\domoc\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "J:\3DP\LMv2\Marlin-bugfix-2.1.x\buildroot\share\PlatformIO\scripts\configuration.py", line 229:
if pioutil.is_pio_build():
File "J:\3DP\LMv2\Marlin-bugfix-2.1.x\buildroot\share\PlatformIO\scripts\pioutil.py", line 9:
return not env.IsIntegrationDump() and not env.IsCleanTarget()
Issue was "fixed" with commenting and not env.IsCleanTarget()
in pioutil.py:
def is_pio_build():
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
return not env.IsIntegrationDump() # and not env.IsCleanTarget()
After commenting it'seems all is buliding ok.
Processing LPC1768 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip; board: nxp_lpc1768; framework: arduino)
PackageManager: Installing framework-arduino-lpc176x @ >=0.0.2
Error: Detected unknown package 'framework-arduino-lpc176x'
Board name: BOARD_MKS_SBASE
Build type: build
Environment used: LPC1768
Hello mate,
sadly i can't compile Marlin anymore. i hope u can help me out.
The log says:
`Executing task: C:\Users\kev_2.platformio\penv\Scripts\platformio.exe run <
Processing LPC1769 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; board: nxp_lpc1769; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Error: Traceback (most recent call last):
File "C:\Program Files\Python39\lib\ntpath.py", line 647, in realpath
path = _getfinalpathname(path)
FileNotFoundError: [WinError 161] Der angegebene Pfadname ist ungültig: "\\192.168.100.110\volume1\Backup\3D Projekte\Zip's Software und Co\Firmware\BTT\Marlin-2.0.9.1\https:\github.com\p3p\pio-nxplpc-arduino-lpc176x\archive\0.1.3.zip"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio_main_.py", line 115, in main
cli() # pylint: disable=no-value-for-parameter
File "C:\Users\kev_2.platformio\penv\lib\site-packages\click\core.py", line 1137, in call
return self.main(*args, **kwargs)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\click\core.py", line 1062, in main
rv = self.invoke(ctx)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\commands_init_.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\click\core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\kev_2.platformio\penv\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\click\core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 134, in cli
process_env(
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 176, in process_env
result = {"env": name, "duration": time(), "succeeded": ep.process()}
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\commands\run\processor.py", line 67, in process
result = init_platform(self.options["platform"]).run(
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\commands\platform.py", line 322, in init_platform
return PlatformFactory.new(name)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\platform\factory.py", line 52, in new
pkg = PlatformPackageManager().get_package(pkg_or_spec)
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 237, in get_package
if not self.test_pkg_spec(pkg, spec):
File "C:\Users\kev_2.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 255, in test_pkg_spec
if os.path.realpath(spec.url) == os.path.realpath(pkg.path) or (
File "C:\Program Files\Python39\lib\ntpath.py", line 651, in realpath
path = _getfinalpathname_nonstrict(path)
File "C:\Program Files\Python39\lib\ntpath.py", line 601, in _getfinalpathname_nonstrict
path = _getfinalpathname(path)
FileNotFoundError: [WinError 161] Der angegebene Pfadname ist ungültig: "\\192.168.100.110\volume1\Backup\3D Projekte\Zip's Software und Co\Firmware\BTT\Marlin-2.0.9.1\https:\github.com\p3p\pio-nxplpc-arduino-lpc176x\archive\0.1.3.zip"`
I think it is related to ntpath.py....
Thanks in advance and kind regards :)
Getting this error in Platformio as of today. Looks like the release branch was updated a couple days ago and possible broke this.
The current working directory D:\DaHai\Documents\JGMaker A6\Marlin-2.0.6 will be used for the project.
The next files/directories have been created in D:\DaHai\Documents\JGMaker A6\Marlin-2.0.6
include - Put project header files here
lib - Put here project specific (private) libraries
src - Put project source files here
platformio.ini - Project Configuration File
Error: Processing LPC1769 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/release.zip; board: nxp_lpc1769; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
ImportError: No module named package:
File "C:\users\dahai\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 167:
env.SConscript(item, exports="env")
File "C:\Users\DaHai\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\DaHai\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "D:\DaHai\Documents\JGMaker A6\Marlin-2.0.6\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 12:
from platformio.managers.package import PackageManager
Hi, i'm trying to program an LPC1766 mcu, flashing it with a J-Link programmer, but i always receive a "Writing target memory failed" error from flash process (platformio run --target upload). My J-Link programmer is correctly working as I can flask other Cortex-M3 (STM32) mcu(s) without problems.
Could please you help me? I can give all my help, in order to create new board support for this particular mcu model.
All needed files and output are attached below.
Thank you in advance
I've tried to add a new board definition for LPC1766 (adapting the one for LPC1768, and changing maximum flash size to 208 Kbytes [256-48]):
{ "build": { "cpu": "cortex-m3", "f_cpu": "100000000L", "mcu": "lpc1766", "core": "arduino" }, "connectivity": [ ], "debug": { "jlink_device": "LPC1766", "svd_path": "LPC176x5x_v0.2.svd", "tools": { "cmsis-dap": { "onboard": true, "server": { "arguments": [ "pyocd-gdbserver.py", "-t", "lpc1766" ], "executable": "$PYTHONEXE", "package": "tool-pyocd" } } } }, "frameworks": [ "arduino" ], "name": "NXP LPC1766", "upload": { "maximum_ram_size": 32736, "maximum_size": 212992, "protocol": "mbed", "protocols": [ "jlink", "blackmagic", "cmsis-dap", "mbed" ] }, "url": "https://www.nxp.com/docs/en/data-sheet/LPC1769_68_67_66_65_64_63.pdf", "vendor": "NXP" }
This is the content of my platformio.ini file:
[env:nxp_lpc1766] platform = nxplpc-arduino-lpc176x board = nxp_lpc1766 framework = arduino upload_protocol = jlink
and this is the full output from platformio run --target upload:
Processing nxp_lpc1766 (platform: nxplpc-arduino-lpc176x; board: nxp_lpc1766; framework: arduino)
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/nxplpc-arduino-lpc176x/nxp_lpc1766.html
PLATFORM: NXP Arduino LPC176x 0.1.0 #f6eba86 > NXP LPC1766
HARDWARE: LPC1766 100MHz, 31.97KB RAM, 208KB Flash
DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)
PACKAGES: framework-arduino-lpc176x 0.1.3, toolchain-gccarmnoneeabi 1.80201.181220 (8.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio/build/nxp_lpc1766/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
DATA: [ ] 3.5% (used 1133 bytes from 32736 bytes)
PROGRAM: [ ] 4.2% (used 9004 bytes from 212992 bytes)
Configuring upload protocol...
AVAILABLE: blackmagic, cmsis-dap, jlink, mbed
CURRENT: upload_protocol = jlink
Uploading .pio/build/nxp_lpc1766/firmware.bin
SEGGER J-Link Commander V6.54c (Compiled Nov 7 2019 17:05:53)
DLL version V6.54c, compiled Nov 7 2019 17:05:41
J-Link Command File read successfully.
Processing script file...
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
Hardware version: V8.00
S/N: -1
License(s): RDI,FlashDL,FlashBP,JFlash,GDB
VTref=3.261V
Target connection not established yet but required for command.
Device "LPC1766" selected.
Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x412FC230. Implementer code: 0x41 (ARM)
Found Cortex-M3 r2p0, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 002BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 002BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 002BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 002BB923 TPIU-Lite
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 002BB924 ETM-M3
Cortex-M3 identified.
PC = 1FFF0BA4, CycleCnt = 00038074
R0 = 7FFF8FDF, R1 = 10000124, R2 = 00000105, R3 = 40084000
R4 = 2009C000, R5 = 00000002, R6 = 40008000, R7 = 00000000
R8 = 4002C000, R9 = 2C6F4C01, R10= A4ED0126, R11= 95FC3191
R12= 1CCE656C
SP(R13)= 10007FB8, MSP= 10007FB8, PSP= B8BF109C, R14(LR) = 1FFF0CBF
XPSR = A1000000: APSR = NzCvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPU regs: FPU not enabled / not implemented on connected CPU.
Downloading file [.pio/build/nxp_lpc1766/firmware.bin]...
Writing target memory failed.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Script processing completed.
========================= [SUCCESS] Took 1.70 seconds =========================
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.