November 22, 2024, 09:11:38 AM

[SOLVED] LPC-P1343 upload binary

Started by bkndr, January 21, 2021, 07:53:08 PM

Previous topic - Next topic

bkndr

Hello,

I have an Olimex LPC-P1343 board. I tried to upload a binary file by closing the JMP BLD_E, deleted the actual firmware.bin and placed my password.bin. I pushed the reset button, disconnected the USB, opened the JMP BLD_E.

The issue I have now is that when I connect the board with USB, no matter the JMP BLD_E is closed or open, the disk is mounted (CRP DISABLD)

I tried to put back the original firmware with no luck :(

LubOlimex

So the board is always in bootloader mode? Did you test before that if when BLD_E is closed it didn't appear as storage device?
Technical support and documentation manager at Olimex

bkndr

Yes, before to try to change the firmware, I started the board with BLD_E opened. (The 8 light were blinking, button 2 to change the order, button 1 back to the first order)

Then, I accessed to SWD (JTAG, with BLD_E open), just to test and dump the firmware (reset halt first and dump from 0x00000000 to 0x00080000)
Finally, I also tried the UART connection and access to the ISP bootloader.(with PIO0_3 to grnd)

LubOlimex

Maybe something that you did with the JTAG/SWD affected the operation. If you have JTAG/SWD tool you can re-program the original program.

I've uploaded it here:

ftp://staging.olimex.com/Lub-clients/TEST_bin.zip

The archive contains different binaries of the same software that is programmed to each board here via JTAG/SWD tool.
Technical support and documentation manager at Olimex

bkndr

Thank you, I erased and write the Test.bin and the board is back to normal.

I have a dumb question, what access is needed to view:
B1 Pressed
B1 Released
B2 Pressed
B2 Released

I tried the UART with no success.

bkndr

I guess there is something wrong with the original firmware as I should have something on the UART. Anyway, I succeed to create my own firmware and interacted with the UART.

Thanks for your help.