.This site requires JavaScriptto be enabled.toview a static menu. Hi all, My setup is as follows:Processor: AT91SAM7SCompiler: IAR Electronics Workbench V5.30Debugger: Jlink (using jlinkARM.dll supplied in IAR bin directory)FreeRTOS: 5.1.2 (rtosdemo.eww project)Has anyone ran into ‘flash download problems’ with this setup when running rtosdemo.ewwThe project compiles fine, but just before downloading to flash the following message box appears.' The debugging session could not be started.Either the debugger initalization failed, or else the file 'C:FreeRTOSDemoARM7AT91SAM7S64IARFlash BinExertosdemo.out' was corrupt or of an unsupported format. 'The process finishes with the following text in the debug log.Tue Mar 10 16:: Loaded macro file: C:Program FilesIAR SystemsEmbedded Workbench 5.4armconfigflashloaderATMELresourcesFlashAT91SAM7Sxx.macTue Mar 10 16:: DLL version: V4.2 , compiled Jan 13 2009 20:12:45Tue Mar 10 16:: Firmware: J-Link compiled Jul 30 2008 11:24:37 ARM Rev.5Tue Mar 10 16:: JTAG speed is initially set to: 32 kHzTue Mar 10 16:: Initial reset was performedTue Mar 10 16:: TotalIRLen = 4, IRPrint = 0x01Tue Mar 10 16:: J-Link found 1 JTAG device(s).
IAR Embedded Workbench for ARM is able to download an application into flash memory by its integrated flash loaders. The flash loader requires a simple-code (.sim) file to work which is. IAR Embedded Workbench for ARM is able to download an application into flash memory by its integrated flash loaders. The flash loader requires a simple-code (.sim) file to work which is.
Having just re-built my machine I don’t currently have the compiler installed to try this out, but from memory things to check are:1) That the build generates a C-Spy compatible file.2) The way the device is reset is compatible with your hardware.3) The J-Link is not running too fast.Try one of the IAR example projects for the same hardware and if that works compare the debugger and J-Link configuration with that in the RTOSDemo.eww project.I’m pretty sure I ran the SAM7X version just last week without any problems.Regards. Good suggestion.There is a difference between the demo and IAR ‘getting started’ demo that seems to make a difference. You need to enter where and how to download the.out file.In Project-Options-Debugger-Download tabYou should also see three check boxes. That last of which is checked – ‘Use flash loader(s)’Then there is a gray text box with an edit button next to it.It contains the factory default setting of:,(default),This is what needs filling in.
Programming the TI CC2540The HM-10 uses the SoC so that you have to develop your firmware for this SoC. The sofware libraries are provided by TI, IAR Embedded Workbench is recommended as IDE.1. Get the BLE-StackRegister at TI and download/install the stack:You should use 'C:/Texas Instruments' as installation location. You will also obtain all references and Manuals from this site.2. Get IAR Embedded WorkbenchRegister at IAR. Then buy Embedded Workbench or try the 30 days trial:3. Code!Open 'C:Texas InstrumentsBLE-CC254x-1.4.0ProjectsbleHM10FirmwareCC2540SimpleBLECentral.eww' to open the project.
Right click on 'SimpleBLECentral' and select 'Make'. A.hex file be generated in 'C:Texas InstrumentsBLE-CC254x-1.4.0ProjectsbleHM10FirmwareCC2540CC2540EMExe'.
Convert it to a.bin file, for example with. This is the final firmware image you can flash onto the HM-10. See for more Information.