Hi,
I am not sure how to fully explain this issue, so please let me know what further information I should provide. I am trying to program my EK-TM4C123GXL board however after uploading some (probably faulty) code, Keil crashes after starting the debug session. If it helps, I was trying to set up Port D for interrupts. Also, I can no longer run simulations either. When I do, Keil says I have memory access violations. The strangest part is this issue now occurs when I try to upload previous working programs as well.
Bee2 said:Keil crashes
Please explain that
What error message(s) do you get?
Post a screenshot.
Bee2 said:Keil says I have memory access violations
Do you mean Windows tells you that the Keil uVision application has "memory access violations" on the Host system, or that uVision tells you that your code has "memory access violations" on the Target system?
Guessing "Error 65" type thing because using aspects of the hardware the simulator does not support/emulate.
Show the Errors
Show the Code, ideally something small yet demonstrative, and not a selective cut-n-paste
re: "Memory Access Violations" - the simulator is a bit of a sandbox, giving greater control over debugging a device.
- On real hardware, if a program tries to access memory that doesn't exist, it just tries and may crash.
- With simulator debugging, under debug -> memory map, this window shows what areas the program can access and how - this is great for catching bad pointers, runaway indexes etc.
http://www.keil.com/support/man/docs/uv4/uv4_db_dbg_memmap.htm
http://www.keil.com/support/man/docs/uv4/uv4_dg_memmap.htm
Sounds like your memory map is incomplete. You could:
1) Use the Memory Map dialog to map ranges in.
2) Or use the MAP debug command in the command window or in a initialization filewww.keil.com/.../814.htmwww.keil.com/.../uv4_cm_map.htm
=====
re: the TM4C123GXL board. Try one of the examples from the CMSIS-Packs, to make sure the board works with a known working example
Read more about the examples at: https://www.keil.com/dd2/texasinstruments/tm4c123gh6pm/