Hello, we use ses to develop on STM32H743I, when we use SEGGER_RAM.icf, develop and debug in memory, in __segger_init_copy bug with BEBE bkpt #0xBE.
[/quote]Can someone tell us what the problem is?
Display All
[img]https://attachment.outlook.live.net/owa/MSA%3Astevenzhang2024%40outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkADAwATM0MDAAMS02OWUzLWNhNTgtMDACLTAwCgBGAAADaz2psjcAS0STkWo5FYrxNAcAPkbXGZ5qBUakYTHdHJGX2AAAAgEMAAAAPkbXGZ5qBUakYTHdHJGX2AAAAFK7%2BbEAAAABEgAQAE20kU9OFRlCq3yuNSStxjs%3D&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI1ZEx3LU5xVHRuQ2NRNm5vcGhROEE5WXZtb0EifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2subGl2ZS5jb20iLCJ1YyI6IjJmYWIxMGQ3NzViZjQ3YjdiZWYwYzE4MTAyN2UxMGIyIiwidmVyIjoiRXhjaGFuZ2UuQ2FsbGJhY2suVjEiLCJhcHBjdHhzZW5kZXIiOiJPd2FEb3dubG9hZEA4NGRmOWU3Zi1lOWY2LTQwYWYtYjQzNS1hYWFhYWFhYWFhYWEiLCJpc3NyaW5nIjoiV1ciLCJhcHBjdHgiOiJ7XCJtc2V4Y2hwcm90XCI6XCJvd2FcIixcInB1aWRcIjpcIjkxNDc5OTc0NTgxMzA4MFwiLFwic2NvcGVcIjpcIk93YURvd25sb2FkXCIsXCJvaWRcIjpcIjAwMDM0MDAxLTY5ZTMtY2E1OC0wMDAwLTAwMDAwMDAwMDAwMFwiLFwicHJpbWFyeXNpZFwiOlwiUy0xLTI4MjctMjEyOTkzLTE3NzY1MzYxNTJcIn0iLCJuYmYiOjE3MTc1Nzg4MjksImV4cCI6MTcxNzU3OTEyOSwiaXNzIjoiMDAwMDAwMDItMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwQDg0ZGY5ZTdmLWU5ZjYtNDBhZi1iNDM1LWFhYWFhYWFhYWFhYSIsImF1ZCI6IjAwMDAwMDAyLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMC9hdHRhY2htZW50Lm91dGxvb2subGl2ZS5uZXRAODRkZjllN2YtZTlmNi00MGFmLWI0MzUtYWFhYWFhYWFhYWFhIiwiaGFwcCI6Im93YSJ9.mzUqHdrtBOjM_sZKTPAdN3TOs6MHBXIB0c26tbEW9lJd6q26NNSuK2oXdAfStvXpuZeHK6N0_UecQp7BKIAKfEntIROFBt2BHvauB10RGZQaLPYHHxrYHc9algWeSLQaCK0wipA1AAzLvIksBGKVKMzXdd5VJBRct9rZYrAABjn6GmxzPCDIvDOdd2z3i9Ds-Jm2NZRZ5YF_ELzISmrX9s5Bgk1g3fUkVh92DAUhGu8cERS_myy-r1a2RYYZ41HVxVOOcojxYhyFhgQAeyEWRKs3_FMg6l5laGOXdgWrv6nE39lnclgmfLdQz_HL46nQGMKUGvajpGC82rzRqXodlQ&X-OWA-CANARY=bdvoVwzo5OwAAAAAAAAAAIBJPdM_hdwYjmuahDmTGYBRKzzKMuvUNS-9OQabCrKet1ojIbqky5E.&owa=outlook.live.com&scriptVer=20240524003.05&clientId=FADF80BA20504BAA8F94E0D12FC49A61&animation=true[/img][img]https://attachment.outlook.live.net/owa/MSA%3Astevenzhang2024%40outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkADAwATM0MDAAMS02OWUzLWNhNTgtMDACLTAwCgBGAAADaz2psjcAS0STkWo5FYrxNAcAPkbXGZ5qBUakYTHdHJGX2AAAAgEMAAAAPkbXGZ5qBUakYTHdHJGX2AAAAFK7%2BbEAAAABEgAQAMXNIkyjoZ9AoQ8Z16T14s0%3D&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5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ipA1AAzLvIksBGKVKMzXdd5VJBRct9rZYrAABjn6GmxzPCDIvDOdd2z3i9Ds-Jm2NZRZ5YF_ELzISmrX9s5Bgk1g3fUkVh92DAUhGu8cERS_myy-r1a2RYYZ41HVxVOOcojxYhyFhgQAeyEWRKs3_FMg6l5laGOXdgWrv6nE39lnclgmfLdQz_HL46nQGMKUGvajpGC82rzRqXodlQ&X-OWA-CANARY=bdvoVwzo5OwAAAAAAAAAAIBJPdM_hdwYjmuahDmTGYBRKzzKMuvUNS-9OQabCrKet1ojIbqky5E.&owa=outlook.live.com&scriptVer=20240524003.05&clientId=FADF80BA20504BAA8F94E0D12FC49A61&animation=true[/img]
[/quote]Can someone tell us what the problem is?
Source Code
- define memory with size = 4G;
- //
- // Combined regions per memory type
- //
- define region RAM = RAM1;
- //
- // Block definitions
- //
- define block ctors { section .ctors, section .ctors.*, block with alphabetical order { init_array } };
- define block dtors { section .dtors, section .dtors.*, block with reverse alphabetical order { fini_array } };
- define block exidx { section .ARM.exidx, section .ARM.exidx.* };
- define block tbss { section .tbss, section .tbss.* };
- define block tdata { section .tdata, section .tdata.* };
- define block tls with fixed order { block tbss, block tdata };
- define block tdata_load { copy of block tdata };
- define block heap with auto size = __HEAPSIZE__, alignment = 8, /* fill =0x00, */ readwrite access { };
- define block stack with size = __STACKSIZE__, alignment = 8, /* fill =0xCD, */ readwrite access { };
- define block stack_process with size = __STACKSIZE_PROCESS__, alignment = 8, /* fill =0xCD, */ readwrite access { };
- //
- // Explicit initialization settings for sections
- // Packing options for initialize by copy: packing=auto/lzss/zpak/packbits
- //
- do not initialize { section .non_init, section .non_init.*, section .*.non_init, section .*.non_init.* };
- do not initialize { section .no_init, section .no_init.*, section .*.no_init, section .*.no_init.* }; // Legacy sections, kept for backwards compatibility
- do not initialize { section .noinit, section .noinit.*, section .*.noinit, section .*.noinit.* }; // Legacy sections, used by some SDKs/HALs
- do not initialize { section .vectors_ram };
- initialize by copy with packing=auto { section .data, section .data.*, section .*.data, section .*.data.* }; // Static data sections
- initialize by copy with packing=auto { section .fast, section .fast.*, section .*.fast, section .*.fast.* }; // "RAM Code" sections
- #define USES_ALLOC_FUNC \
- linked symbol malloc || linked symbol aligned_alloc || \
- linked symbol calloc || linked symbol realloc
- initialize by calling __SEGGER_init_heap if USES_ALLOC_FUNC { block heap }; // Init the heap if one is required
- initialize by calling __SEGGER_init_ctors { block ctors }; // Call constructors for global objects which need to be constructed before reaching main (if any). Make sure this is done after setting up heap.
- //assert with warning "free() linked into application but there are no calls to an allocation function!" {
- // linked symbol free => USES_ALLOC_FUNC
- //};
- assert with error "heap is too small!" { USES_ALLOC_FUNC => size of block heap >= 48 };
- assert with error "heap size not a multiple of 8!" { USES_ALLOC_FUNC => size of block heap % 8 == 0 };
- assert with error "heap not correctly aligned!" { USES_ALLOC_FUNC => start of block heap % 8 == 0 };
- initialize by calling __SEGGER_STOP_X_InitLimits { section .data.stop.* };
- //
- // Explicit placement in RAMn
- //
- place in RAM1 { section .RAM1, section .RAM1.* };
- //
- // RAM Placement
- //
- place at start of RAM { section .vectors }; // Vector table section
- place in RAM with minimum size order { block tdata_load, // Thread-local-storage load image
- block exidx, // ARM exception unwinding block
- block ctors, // Constructors block
- block dtors, // Destructors block
- readonly, // Catch-all for readonly data (e.g. .rodata, .srodata)
- readexec // Catch-all for (readonly) executable code (e.g. .text)
- };
- place in RAM with auto order { section .fast, section .fast.*, // "ramfunc" section
- block tls, // Thread-local-storage block
- readwrite, // Catch-all for initialized/uninitialized data sections (e.g. .data, .noinit)
- zeroinit // Catch-all for zero-initialized data sections (e.g. .bss)
- };
- place in RAM { block heap }; // Heap reserved block
- place at end of RAM with fixed order { block stack_process,
- block stack }; // Stack reserved block at the end
The post was edited 1 time, last by ZSteven2015 ().