AutoSAR series shows (practice papers) 11.7- Lab: Configuring storage

AutoSAR series shows (practice papers) 11.7- Lab: Configuring storage

Lab: Configuring storage

-> Back Total Contents <-
backup project
backup project
Backup project
Well, then start our experiment. The main experiment is to save mileage and the number of our door to our inside NV, Note: If your screen display is not complete, the windows need to adjust the display scaling to 100%

First, configure the SWC

First open Dev, into CtApMySwc inside the SWC

  1. Configuring EA, before explaining data consistency when we talked about this role, which is equivalent to disable interrupts, preventing data corruption when writing. Here configured, the order is to prevent data errors. Such as mileage, one of my Task is writing two meters, but another higher priority writes Task 1 meter, then it is likely to appear on the odometer 2 meters, 1 meter embarrassment again. Here is arranged in a section of code protected RctApMySwcCode, Can the Enter refers to a period of protection which can be freely configured, generates two functions (similar to the switch interrupt function of two) so that the user can freely use. There will be No Access and Runs

Guess you like

Origin blog.csdn.net/xyfx_fhw/article/details/104000188