Part Number: TM4C123GH6PZ
Other Parts Discussed in Thread: TM4C129EKCPDT
Hi,
When I run the following code what I expect is that the attempt to write to a null pointer would result in a hard fault. Instead what we've found is that the instruction is silently ignored. This seems to contradict what is shown in the datasheet:
"Note: Within the memory map, attempts to read or write addresses in reserved spaces result in
a bus fault. In addition, attempts to write addresses in the flash range also result in a bus
fault."
uint32_t var = 0xDEADBEEF; uint32_t * pointer_to_var = &var; uint32_t * pointer_to_null = NULL; *pointer_to_var = 0; *pointer_to_null = 0;
Can anyone shed some light on this? Have we somehow disabled faults for this particular error or is this even possible?
Thanks,
Eric.
