Other Parts Discussed in Thread: HALCOGEN
Tool/software: TI-RTOS
Good day!
The project on the microcontroller RM48L952, working environment - FreeRTOS, Code Composer Studio 8.3, HALCoGen 04.07.01.
There is a need in the project to create several global arrays with limited access: reading array elements for any task, and writing for only one task. This is to protect arrays from unauthorized recording.
With the prvSetupDefaultMPU () procedure (os_port.c file), the entire region of RAM is configured for privileged read and write access and non-privileged read-only access. Apparently, this is just what you need.
I created a test project with two tasks: one task with the portPRIVILEGE_BIT flag, the other without this flag. I thought that the first task could write and read global arrays, and the second only read. But when performing the test, I made sure that both tasks are written to the global array. Those. protect arrays from unauthorized writing failed.
Is there a solution to this problem?
Sincerely, Talgat Burganov.