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 - Cusko

#1
Quote from: Andy Ayre on January 22, 2013, 01:46:54 AM
As I mentioned in my December 5th post above, you need to set the BOOTn pins to start the BootROM feature. This is completely different to the ISP UART-based bootloader.

I can't recall if the LPC1857 has that feature, however we are working right now on an improvement to the external flash bootloader system to support the ISP UART-based bootloaders. It should be completed sometime this week or next week.

Andy

Any news on that?
#2
Ok, now I get it. These are two different protocols. Thx for help.

If you need any testing or anything else with the new functionality just let me know. I will be glad to help.

And if I may suggest something: The load to the flash Bank0 and Bank1 should be at the same time. You just choose which one you activate.

Bostjan
#3
...new tests:
I disable the RTS and DTR lines on my board and I manually RESET with ISP pin high. Then I start the procedure again. The Flash M. sent '?', processor reply 'Synchronized..' then FM raise error for autoband.
I attached the debug log. 
#4
I attached the debug file.
But I also looked with serial port monitor what is happening and I think I found the problem.
On my board I have DTR line for reset and RTS line for ISP. And with normal operation the Flash Magic controls this lines to Synchronize.
But when I select an external memory bootloader the 'Hardware Config' option is empty. So I manually Reset with ISP pin high.
Then I clicked Start and device restarted. And in the Serial Monitor I saw the problem. The Flash Magic sets RTS and DTR and then clear first RTS and then DTR. Which is the wrong sequence. So the question is how to set the right sequence?
#5
I changed your program before from UART3 to UART0 and it worked for LPC1850 on Hitex board but only if you click start twice. Look in my December 7th posting.
Now I tried with the LPC1857 and UART0. Naturally a program starts from an internal flash if you don't Reset with the ISP pin. If you Reset with the ISP pin a processor go to a bootlaoder mode (I checked with a terminal where I send '?' and I get 'Synchronized');
I can program this processor flash if I select 'LPC1857'.

Maybe I must change some ID numbers or something in your supplied bootloader?
Is it maybe possible to watch data between a processor and the Flash Magic?
#6
I tried now with LPC1857 and UART0 but it doesn't work. It always writes: failed to autoband. Is problem maybe in bootloader? LPC1850 has v11.1 and LPC1857 has v12.1.
Maybe program loads to RAM but then resets? Can you help me?
If I use Ulink debugger to run bootloader ESAFLASHOS from RAM, I can then load program to spifi using FlashMagic. But this isn't final solution obviously. 
#7
OK, thx. I tried and it worked. I changed from USART3 to USART0. But I had to use ISP button to load the bootloader and then I had to click the start button again to load the rest of the program??? I will now try on my board with LPC1857.
Thanks again.
#8
Great. Thank you. This works now. I totally missed this.
But another question. How can I add my own bootloader into this menu?
#9
I have HITEX LPC1850 and I have successfuly uploaded hex file for SPIFI bootloader (from example). But from here on, I don't know what to do. If I want to start bootloader It says : Operation Failed (... no '.' echoed). How can I proceed from there to upload my hex file in to the SPIFI memory  ???
Thanks!

Bostjan