Dear Concern,
We are trying to interface WinBond W25R128JV with LPC1857. We have successfully achieved programming the same using JTAG and OpenOCD but we are facing problems in programming the same with flash magic UART and bootloader. As we looked onto this forum we have made all the necessary changes to the best of our knowledge but in vain.
We have few doubts about the above setup actually.
Awaiting for your reply
Regards
R Suresh
Solved! Go to Solution.
Hey Everyone,
Finally, We could solve the problem. Here is the complete solution If you are struggling with loading hex files onto SPIFI using ISP.
Hardware Requirements:
You Just need Tx(P2_0), Rx(P2_1) and Gnd connected to your ISP Programmer.
Software Requirements:
You need Two hex files, one is end application hex file which you want to put into SPIFI say application.hex and then the bootloader hex file and obviously the Flash Magic(Latest recommended)
Steps:
1. To modify the boot loader, open the example given in C:\Program Files (x86)\Flash Magic\Bootloaders\External Memory\S25FL129P\LPC1857-Keil and then modify FlashPrg.c descriptor to specific values needed(mostly Sector Size, bytes to program at once). BaudRate = 57600 at both places recommended as we observed data loss for greater baudrates. modifying description is optional.
2. Change the Output options as you wish and you get a bootloader hex file to be placed on the location C:\Program Files (x86)\Flash Magic\Bootloaders.
3. Now the important step to generate application hex file with adrress mapping to 0x8000 0000 to 0x87FF FFFF but NOT 0x1400 0000 to 0x17FF FFFF. Its because of the above descriptor and description from the Manual
4. Once both hex files are ready, Open Flash Magic, Change the device to External Memory-> UART. You should see your bootloader hex file there and choose it. Choose the application hex file too.
5. Click start and first Erasing happens and then programming. Because the LPC18xx series support XIP, the program should start itself on reset.
Hope this have helped you and have a great day.
To some users, this is not a place where you learn free and charge someone to acheive the same. Kindly have some Ethics and support the OPEN Community.
Keep smiling and spread the Knowledge.
Regards
Suresh
Hey Everyone,
Finally, We could solve the problem. Here is the complete solution If you are struggling with loading hex files onto SPIFI using ISP.
Hardware Requirements:
You Just need Tx(P2_0), Rx(P2_1) and Gnd connected to your ISP Programmer.
Software Requirements:
You need Two hex files, one is end application hex file which you want to put into SPIFI say application.hex and then the bootloader hex file and obviously the Flash Magic(Latest recommended)
Steps:
1. To modify the boot loader, open the example given in C:\Program Files (x86)\Flash Magic\Bootloaders\External Memory\S25FL129P\LPC1857-Keil and then modify FlashPrg.c descriptor to specific values needed(mostly Sector Size, bytes to program at once). BaudRate = 57600 at both places recommended as we observed data loss for greater baudrates. modifying description is optional.
2. Change the Output options as you wish and you get a bootloader hex file to be placed on the location C:\Program Files (x86)\Flash Magic\Bootloaders.
3. Now the important step to generate application hex file with adrress mapping to 0x8000 0000 to 0x87FF FFFF but NOT 0x1400 0000 to 0x17FF FFFF. Its because of the above descriptor and description from the Manual
4. Once both hex files are ready, Open Flash Magic, Change the device to External Memory-> UART. You should see your bootloader hex file there and choose it. Choose the application hex file too.
5. Click start and first Erasing happens and then programming. Because the LPC18xx series support XIP, the program should start itself on reset.
Hope this have helped you and have a great day.
To some users, this is not a place where you learn free and charge someone to acheive the same. Kindly have some Ethics and support the OPEN Community.
Keep smiling and spread the Knowledge.
Regards
Suresh
Hi @Suresh1994,
We have also faced similar issue, but we were able to solve the problem.
You can contact us for further details.
Thanks
Hello @Suresh1994 ,
Just to have more info related to your ticket, are you including the sections of memory that are in the User Manual, chapter 5, 5.4.5.7 RAM used by ISP and 5.4.5.8 RAM used by IAP command handler.
Also in the Table 19 you will find the Winbond supported.
User Manual
Dear @nxf77486,
We have taken the sample code given by Flash Magic External bootloader section code(attached). The flashprg.c for given S25L129P example is as follows. We have just modified the programmable sector size for
To answer your question, No we are not using the specified RAM space. you can see that being highlighted in the screenshot.
Kindly look into the attached code and guide accordingly.