This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot load flash programming algorithm to LM3S9D90

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