2024-02-05 05:44 AM - last edited on 2024-02-06 02:35 AM by SofLit
Hi community,
we referred below link to configure the M4 ".RxDecripSection and ".TxDecripSection"
NOTE: we are running LED Code on cm7 core.
We changed whole RAM to AXISRAM,
We configured as below
<MemorySegment name="AXISRAM">
<ProgramSection alignment="0x100" load="No" name=".vectors_ram" start="0x24000000" size="0x20000"/>
<ProgramSection alignment="4" load="No" name=".fast_run" />
<ProgramSection alignment="4" load="No" name=".data_run" />
<ProgramSection alignment="4" load="No" name=".bss" />
<ProgramSection alignment="4" load="No" name=".tbss" />
<ProgramSection alignment="4" load="No" name=".tdata_run" />
<ProgramSection alignment="4" load="No" name=".non_init" />
<ProgramSection alignment="8" size="__HEAPSIZE__" load="No" name=".heap" />
<ProgramSection alignment="8" size="__STACKSIZE__" load="No" name=".stack" />
<ProgramSection alignment="8" size="__STACKSIZE_PROCESS__" load="No" name=".stack_process" />
</MemorySegment>
1st tried:
<MemorySegment name="SRAM3_Alias">
<ProgramSection alignment="4" load="No" name=".RxDecripSection" start="0x10040000" size="0x100" />
<ProgramSection alignment="4" load="No" name=".TxDecripSection" start="0x10040100" size="0x100" />
</MemorySegment>
</Root>
2nd try'
<MemorySegment name="SRAM3">
<ProgramSection alignment="4" load="No" name=".RxDecripSection" start="0x30040000" size="0x100" />
<ProgramSection alignment="4" load="No" name=".TxDecripSection" start="0x30040100" size="0x100" />
</MemorySegment>
</Root>
In both aspect i tried still we are facing Hard fault error.
==> when i receive data packets of ping command from pc, its going to the hard fault error.
can you suggest where exactly we have to place the sectors for .RxDecripSection and .TxDecripSection?
Above marked one is not allowing us to modify the values?
how can we solve this issue?
@adam @STM32H743_User @STM32H743_User @SofLit @FBL @Imen.D @TDK @KDJEM.1
2024-02-05 06:00 AM
Tagging 9 people is probably a bit much.
2024-02-06 02:08 AM
Hello @Sandeepc ,
I understand that you want to change " whole RAM to AXISRAM" but you are still putting the descriptors in D2_SRAM3 0x30040000 aliased 0x10040000 for CM4 it seems that you are not setting those in the right place if i understood you correctly.
to further help you locate the miss configuration can you send a copy of the linker file and a snippet of the mpu configuration as well as the modifications added to the Ethernetif.c ,lwipopts.h, files .
BR