Hello,
I'm trying to program to a board that contains LM3S9D90 chip using uVision 5 and ST-Link/V2. I have both HEX and Bin files from the company that made the board. I've created a new project and did the following: 1. Device -> selected LM3S9D90 2. Output -> Select Folder for Objects... -> Selected "C:\..\My Documents 3. Copied the myhex.HEX file to this directory 4. Name of Executable -> myhex.HEX 5. Utilities -> Settings -> Programming Algorithm -> LM3Sxxx 512kB Flash I also made sure that the on chip flash address range values are correct in the memory map on the datasheet (page 87). 6. Debug -> Use -> ST-Link Debugger. In the settings of the debugger, the port is SW (IDCORE: 0x2BA01477. Device Name: ARM CoreSight SW-DP). If I switch to JTAG instead, I get a message "Unknown target connected".
I get an error message that states: "Cannot load flash programming algorithm!" and also "Error: Flash download failed - "Cortex -M3". I also noticed that in the build output it tries to load myhex.HEX file and then writes the following messages: "Erase Faild!" "Internal DLL Error" "Access port fault. Check the access port selection and ensure it fits the debugging context."
I've searched online for solutions but got nothing that helps.
Thanks in advance, Igal
ST-Link only supports devices manufactured by STMicroelectronics (as the name indicates). Is the LM3S9D90 a ST device?
Hey Reinhard,
Thank you for your reply. The LM3S isn't ST device, but I see no reason why I won't be able to program my chip. The software (Keil uVision5) supports both STLINK and my chip. The programming is done using regular JTAG pins like any other ST chip.
Regards, Igal