Code Monkey home page Code Monkey logo

lpc21isp's People

Contributors

imyller avatar k4zuki avatar teddokano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lpc21isp's Issues

LPC1113/203 not supported

LPC1113/203 is not supported in v1.87
Support can be added by updating "lpcprog.c" with:
{ 0x00030032, "1113.../203", 24, 4, 6, 1024, SectorTable_17xx, CHIP_VARIANT_LPC11XX },

-verify fails depending on SYSTEMREMAP register

I'm flashing an LPC1769 using lpc21isp. The following error comes up consistently when using -verify:

Sector 0: ..............................................................................................Wrong answer on Compare-Command
COMPARE_ERROR: Source and destination data not equal.

The flashed code works fine. The error is presumably due to the fact that for certain values of the SYSTEMREMAP register, the bottom 512 bytes (0x000 - 0x200) are re-mapped for the boot ROM or RAM. http://docs.lpcware.com/lpc800um/RegisterMaps/syscon/r-SYSMEMREMAP.html

Not sure which chips this affects, but it might be prudent to avoid comparing the first 512 bytes, instead of the first 64 bytes, for relevant chips.

- control option fails in Linux

Firt of all, great piece of software for the LPC series. It works beautifully with LPC824 using buttons for Reset and Boot0. Thanks for writing it!

Doing:
$ lpc21isp build/i2c_isr.hex -control /dev/ttyUSB0 115200 12000

This error comes up:
ERROR: open() for /sys/class/gpio/gpio0/value failed, No such file or directory

Indeed, there is no /sys/class/gpio/gpio0, but /sys/class/gpio/gpiochip708 exists and it is created every time I plug in the serial converter. However, there is nothing called "value" in it.

Linux Ubuntu 20.04.6 LTS, FTDI232 extender with FT232RL (fairly sure it is genuine).

This seems like an abandoned project, but perhaps someone is at the other end of the line?

Thanks,
Ahmet

Build is broken on Mac

I just realised that commit 1570efc02cb2bd3aa2564e3a2ebe77249279af4b is incompatible with building on Yosemite and El Capitan.

When trying to build, I get -static instead of -D__APPLE__ which causes the following:

gcc  -Wall -static -o lpc21isp lpc21isp.c adprog.o lpcprog.o lpcterm.o
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lpc21isp] Error 1

To fix it, I have reverted that commit. Could you please fix that on your branch? Or maybe change that test to support both "darwin" and "Darwin" ?

Auto reboot (with -control options)

I think is easier if the chip do auto reboot after finishing downloading. Is it possible? Maybe i miss some options to do that. I did little hack for auto reboot. More like Arduino now.

In lpc21isp.c line 2402
`

ifdef LPC_SUPPORT

    case NXP_ARM:
        downloadResult = NxpDownload(IspEnvironment);
        ResetTarget(IspEnvironment, RUN_MODE);
        break;

endif

`
Adding ResetTarget(IspEnvironment, RUN_MODE) after download is done.

While programming lpc21isp adds garbage data at the end of program in flash memory

Hello!

While programming lpc21isp adds garbage data at the end of program in the flash memory. It is a problem when CRC value is calculated by the code from whole flash memory - CRC will differ when chip will be programmed by in example "Flash Magic" or "lpc21isp". Look at attached picture to see the details.
bug
I would be glad if someone try to fix it or point me where to look for the function which is responsible for writing this data.

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.