Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - cayden

#1
Andy you were right. The hex file (without the start codes) was the issue. I messed up the srec command initially. It should have been.....

srec_cat prototype.bin -binary -o prototype.hex -intel

I left out the "-binary" flag initally.

I can now program the LPC with flash Magic.

Thank you so much for your help!
#2
I'm using windows 10 64-bit. I wonder if that the problem.....
#3
Thanks so much for your help!

This is really strange. The srecord tool seems to think that there is no data in the binary file and so doesn't create an output hex file. Here's the command and output file:

C:\Users\chris\OneDrive\Documents\Srecord\srecord-1.64-win32>srec_cat prototype.bin -o prototype.hex -intel
srec_cat: prototype.bin: 1: warning: ignoring garbage lines
srec_cat: prototype.bin: 3: file contains no data

C:\Users\chris\OneDrive\Documents\Srecord\srecord-1.64-win32>
#4
The first link on this page:

http://www.batlabs.com/fileutil.html

is the program I used and this outputs the hex file in the ASCII format I attached in the previous comment
#5
Thank you for your quick response. It seems there is something wrong with the hex file as I don't see any start codes. I used BIN2HEX to do the conversion which never reported an error during the process. Is there any conversion tool you recommend to do the conversion? I guess flash magic doesn't have a check for hex file validity because it appeared to download it to the part with no issue and the 'verify' works too. Attached is my hex & bin file.

I'm presuming the bin file I have is good because I can program the lpc1768 when its on the mbed board and everything is ok.
#6
 I am having a problem a problem where my user application code is not running after I perform a flash upgrade followed by a reset. The processor seems to be just stuck in ISP mode.

My Setup:
- Using an mbed board as the USB-Serial interface to program a custom board that has an LPC1768
- I have the UART0 interface of the LPC1768 on my custom board connected P28 & P27 of mbed board.
- I have two external push switches conected to the reset pin and P2_10 pin.
- Used the BIN2HEX to perform conversion of the binary file from the mbed IDE

Results:
- It appears that the flash magic tool is programming the device successfully as you can see from this attachment named Success.png.
- After the flash is programmed I reset my custom board and the processor seems to stay in ISP mode. I say this because I can read the DEvice SIgnature from the ISP menu in Flash Magic.
- What seems odd is when I click on 'information' in the file menu it does not show a memory range for the hex file which is 60.18KB. See Attachment info.png

Please help.