'm using a developer kit LPC4357 and I try to test the evaluation programs from FreeRTOS in my microcontroller. Besides, I configured my debugger with JLINK and selected the memory according with my features. Below I show my configuration and the errors:
Initialization file Debug: -Init file: .\LPC43XX-M4-FLASH-DEBUG.ini
Configure flash menu: -Init file: .\LPC43XX-M4-FLASH-PROGRAM.ini
Programming algorithm: S29GL0649N Dual Flash - Address Range: 0x1C000000H-1CFFFFFFH
LOAD Flash\LPC43xx_M4_FLASH.axf INCREMENTAL // Setup for running from a specific memory location Setup(); ^ *** error 34, line 160: undefined identifier Full Chip Erase Done. Programming Done. Contents mismatch at: 1C000000H (Flash=FFH Required=D0H) ! Contents mismatch at: 1C000001H (Flash=FFH Required=B7H) ! -----------------------****------------------------------ Contents mismatch at: 1C000064H (Flash=FFH Required=15H) ! Too many errors to display ! Error: Flash Download failed - "Cortex-M4"
Setup(); ^ *** error 34, line 160: undefined identifier
Presumably, this Setup(); is supposed to, well, set things up so that it works properly?
Then, as you have not defined Setup(), things are not set up - so errors are to be expected!
The setup() is defined because they have the default features for testing the FreeRTOS in my microcontroller. But, now the error is a little bit different, without "error 34, line 160: undefined identifier".
""<<.. /******************************************************************************/ _sleep_(100); // Just set up the memory interface to enable the correct access to the external // flash memory on CS0. emc_setup();
Erase Done. Programming Done. Contents mismatch at: 1C000000H (Flash=FFH Required=D0H) ! ------------------******************----------- Contents mismatch at: 1C000064H (Flash=FFH Required=15H) ! Too many errors to display ! Error: Flash Download failed - "Cortex-M4"
...>>"
Are you sure that you don't need the Setup before the load, to make sure that the flash memory is properly accessible?
As I know, the project offered from freeRTOS based in a uVision project is ready for testing. But even I tested the projects offered from keil and only the projects with support for save the bootloader into the internal memory flash has worked.
Then may be the Flash Algorithm is not working? Perhaps you should discuss your issues with Embedded Artist's? Best I can tell they use a single NOR Flash chip, but it's really not obviously documented on their site.
www.embeddedartists.com/.../lpc4357_kit.php
Indeed, the algorithm not working.First of all, I need be sure that the project work in the flash before do changes in the project.
Thanks
Then why not use the internal flash? Or start with a simpler project you can deal with?
So what part is actually ON the board?
With internal flash I checked simple programs and worked, but for install freeRTOS you need more memory for the bootloader and withthe internal memory flash is not possible
Ok, you have access to the board, and the related schematics and documentation. I do not. I don't have a horse in this race, and I'm not going to jump through hoops to sign up for Embedded Artists web site access, or to extract basic information from you.
a) Identify the flash chips used by your board. b) Select, or create, a flash algorithm for these chip(s) c) Get Embedded Artists to support their board and provide you with the tools/code to allow the Keil tools to download code.
I suggested two possible flash algorithms based on the address you where having problems with. If these aren't your parts, or are just broken, then your task would be to identify what changes need to be made, and compile your own functional flash algorithm. This may require you to debug/understand the current ones, or create your own.