platformio / platform-nxplpc

NXP LPC: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/nxplpc
Apache License 2.0
9 stars 12 forks source link

Invalid firmware for nxp lpcu37 #2

Closed VladimirAkopyan closed 5 years ago

VladimirAkopyan commented 7 years ago

I've been developing using the mbed online compiler for a while, and now I am doing my first test of platform.io. I have Seed Arch GPRS V2, which is an LPC11U37 micro, programmed through USB (shows up as a flash drive). I successfully compile a blink program, when I flash the firmware, there is no effect. In fact the board goes back to bootloader, which indicated that the firmware is invalid.

I am using the .pioenvs\seeedArchGPRS\firmware.bin and flashing it onto the board.

My code:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}

My platform.ini:

[env:seeedArchGPRS]
platform = nxplpc
board = seeedArchGPRS
framework = mbed
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41887659-invalid-firmware-for-nxp-lpcu37?utm_campaign=plugin&utm_content=tracker%2F38218499&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38218499&utm_medium=issues&utm_source=github).
ivankravets commented 6 years ago

Could you reproduce this issue with the latest development version? https://github.com/platformio/platform-nxplpc#development-version

wsnell commented 6 years ago

Need to run the nwer version of the mbed libs to fix the problem with the Tickers going crazy. Current version of mbed c++ libs appears to be 150 vs the laest is 137+ framework-mbed-4.50701.0 now installed with pio update/upgrade but I think I need framework-mbed-4.50703.4. Why can't you guys use the latest?

I also see what I believe is the newer lib here: https://bintray.com/platformio/dl-packages/framework-mbed#files

ivankravets commented 6 years ago

You can, see https://github.com/platformio/platform-nxplpc#development-version

The final release of this dev/platform is coming soon. Please follow us on https://twitter.com/PlatformIO_Org

We did a huge work on debugging side. @wsnell what is your board?

ivankravets commented 5 years ago

Fixed in the latest release