Skip to content
Snippets Groups Projects
Unverified Commit 00c9b1f9 authored by Dimitrios Stoupis's avatar Dimitrios Stoupis
Browse files

Add platform specific memory address limits

parent 0a8e2197
No related branches found
No related tags found
No related merge requests found
......@@ -22,15 +22,13 @@ add_library(common OBJECT
src/Services/MemoryManagementService.cpp
src/Services/ParameterService.cpp
src/Services/RequestVerificationService.cpp
src/Services/TestService.cpp
)
src/Services/TestService.cpp)
# Specify the .cpp files for the executables
add_executable(ecss_services
src/main.cpp
$<TARGET_OBJECTS:common>
src/Platform/x86/Service.cpp
)
src/Platform/x86/Service.cpp)
IF (EXISTS "${PROJECT_SOURCE_DIR}/lib/Catch2/CMakeLists.txt")
# Gather all the .cpp files corresponding to tests
......
#ifndef ECSS_SERVICES_MEMORYADDRESSLIMITS_STM32F7_HPP
#define ECSS_SERVICES_MEMORYADDRESSLIMITS_STM32F7_HPP
// Memory limits definitions
#define DTCMRAM_LOWER_LIM 0x20000000UL
#define DTCMRAM_UPPER_LIM 0x20020000UL
#define ITCMRAM_LOWER_LIM 0x00000000UL
#define ITCMRAM_UPPER_LIM 0x00010000UL
#define RAM_D1_LOWER_LIM 0x24000000UL
#define RAM_D1_UPPER_LIM 0x24080000UL
#define RAM_D2_LOWER_LIM 0x30000000UL
#define RAM_D2_UPPER_LIM 0x30048000UL
#define RAM_D3_LOWER_LIM 0x38000000UL
#define RAM_D3_UPPER_LIM 0x38010000UL
#define FLASH_LOWER_LIM 0x08000000UL
#define FLASH_UPPER_LIM 0x08200000UL
#endif //ECSS_SERVICES_MEMORYADDRESSLIMITS_STM32F7_HPP
#ifndef ECSS_SERVICES_MEMMANGSERVICE_HPP
#define ECSS_SERVICES_MEMMANGSERVICE_HPP
// Memory limits definitions
#define DTCMRAM_LOWER_LIM 0x20000000UL
#define DTCMRAM_UPPER_LIM 0x20020000UL
#define ITCMRAM_LOWER_LIM 0x00000000UL
#define ITCMRAM_UPPER_LIM 0x00010000UL
#define RAM_D1_LOWER_LIM 0x24000000UL
#define RAM_D1_UPPER_LIM 0x24080000UL
#define RAM_D2_LOWER_LIM 0x30000000UL
#define RAM_D2_UPPER_LIM 0x30048000UL
#define RAM_D3_LOWER_LIM 0x38000000UL
#define RAM_D3_UPPER_LIM 0x38010000UL
#define FLASH_LOWER_LIM 0x08000000UL
#define FLASH_UPPER_LIM 0x08200000UL
#include <memory>
#include <iostream>
#include "Service.hpp"
#include "Services/RequestVerificationService.hpp"
#include "Helpers/CRCHelper.hpp"
#include "Platform/ARM/MemoryAddressLimits_STM32F7.hpp"
class MemoryManagementService : public Service {
......
......@@ -134,7 +134,7 @@ TEST_CASE("Requirement 7.3.5 (Signed integer)", "[message][ecss]") {
SECTION("7.4.3") {
// Make sure the endianness of the message data is correct
// As per the ECSS standard, stored data should be big-endian. However, ARM and x86
// As per the ECSS standard, stored data should be big-endian. However, ARM and ARM
// processors store data in little endian format. As a result, special care needs to be
// taken for compliance.
CHECK(message.data[1] == 0xe4);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment