triffid / lpc17xx-dfu-bootloader Goto Github PK
View Code? Open in Web Editor NEWDFU Bootloader for LPC17xx family
License: GNU General Public License v2.0
DFU Bootloader for LPC17xx family
License: GNU General Public License v2.0
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
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
I also tried to change some values that might have an influence on this code:
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?
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!
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.
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.