Giter Club home page Giter Club logo

lpc17xx-dfu-bootloader's People

Contributors

hg42 avatar triffid avatar trollcop avatar wolfmanjm 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

Watchers

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

lpc17xx-dfu-bootloader's Issues

Some documentation ?

Hello Triffid !

Thank you for your great work. I would like to know if there it's some documentation.
I saw trough code that bootloader can be loaded trough USB. Could you please provide some more details for a Windows user ?

Kind REgards,
Daniel

SDCard_disk_initialize always fails

I have an early Smoothieboard v1.0 (the one with A498x drivers) so I am not totally sure if it has a different pinout.

This code always fails on my board:

	SDCard_init(P0_9, P0_8, P0_7, P0_6);
	if (SDCard_disk_initialize() == 0)
		check_sd_firmware();

SDCard_disk_initialize() finally goes here:

int SDCard_initialise_card() {
    // Set to 25kHz for initialisation, and clock card with cs = 1
    SPI_frequency(25000);
    GPIO_set(_cs);

    for(int i=0; i<16; i++) {
        SPI_write(0xFF);
    }

    // send CMD0, should return with all zeros except IDLE STATE set (bit 0)
    if(SDCard__cmd(SDCMD_GO_IDLE_STATE, 0) != R1_IDLE_STATE) {
        fprintf(stderr, "Could not put SD card in to SPI idle state\n");
        return cardtype = SDCARD_FAIL;
    }
...

and fails with "Could not put SD card in to SPI idle state".

But this works with the bootloader packaged with Smoothieware (it worked before and it works now).
Which version is this?
The Smoothieware documentation simply links to this github repo without any tag or branch, so I assume it should actually still work.

I also guessed it could be some older version, so I tried several versions like

  • current master
  • current develop
  • tags 0.1, 0.2, 0.3, 0.4
  • the first populated version that can compile

I also tried to change some values that might have an influence on this code:

  • code derived from 0.1 and 0.2 by mixing in some later changes that seemed to make sense
  • master and develop with 24 x SPI_write(0xFF) instead (like I found somewhere in the code)
  • master and develop with different frequencies for SPI like 10000 (slower) or 100000 (older value)

Googling for the error message indicates the pins could be wrong, but it works with the version packed with Smoothieware and I think the pins never changed...

Any guess what else could be going on?

Baudrate?

Hello,

I'm trying to get the output from this bootloader on my usb-to-serial terminal.

I've connected up pin 0.2 og 0.3 (same pins as utilized when flashing the bootloader), however I'm uncertain which baudrate is required to listen to the bootloader.

Clearly it's determined by the APPBAUD makefile variable, but this does not seem to be the baudrate directly? - It's just seems to be a parameter to a search for suitable hardware parameters, that I'm unable to decrypt.

Any help would be appriciated!

Debugging issues

Hello sir,

Code for firmware update through sd card is perfectly running as expected.
I have using the same code for LPC1768.
ISSUES:
1.The printf function is not able to send debug messages to the console. I have done doing some changes using UART_SEND function. But still no debugs messages. Using UART0 for debugging.
2. The system is hanging (in boot code) while device is powered up. After the manually reset, the device starts working.

Look forward to hear from you.

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.