Pavel Pisa commented: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5537#note_147686


Next changes allows me to run my 
[tms570lc4357_hdk_intram](https://gitlab.rtems.org/ppisa/rtems/-/tree/tms570lc4357_hdk_intram)
 BSP variant over OpenOCD without previous board setup
```
diff --git a/bsps/arm/tms570/start/bspstarthooks-hwinit.c 
b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
index 6407cc4a45..980f90cd20 100644
--- a/bsps/arm/tms570/start/bspstarthooks-hwinit.c
+++ b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
@@ -60,7 +60,7 @@ __attribute__((__naked__)) void bsp_start_hook_0( void )
     "ldr r1, =#" RTEMS_XSTRING( TMS570_MEMORY_SRAM_SIZE ) "\n"
     "sub r0, lr, r0\n"
     "cmp r1, r0\n"
-    "blt 1f\n"
+    "bhi 1f\n"

     /*
      * Initialize the SRAM if we are not running in SRAM.  While we are called,
diff --git a/spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml 
b/spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml
index 1b91475804..71ca6b8b47 100644
--- a/spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml
+++ b/spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml
@@ -5,7 +5,9 @@ copyrights:
 - Copyright (C) 2023 embedded brains GmbH & Co. KG
 cppflags: []
 cxxflags: []
-enabled-by: arm/tms570lc4357_hdk
+enabled-by:
+  - arm/tms570lc4357_hdk
+  - arm/tms570lc4357_hdk_intram
 includes: []
 install: []
 links: []
diff --git a/spec/build/bsps/arm/tms570/optlowinit.yml 
b/spec/build/bsps/arm/tms570/optlowinit.yml
index 32b84aa08c..7bfd42202b 100644
--- a/spec/build/bsps/arm/tms570/optlowinit.yml
+++ b/spec/build/bsps/arm/tms570/optlowinit.yml
@@ -10,6 +10,7 @@ default:
 - enabled-by:
   - arm/tms570ls3137_hdk
   - arm/tms570lc4357_hdk
+  - arm/tms570lc4357_hdk_intram
   value: true
 - enabled-by: true
   value: false
```
The change enables full safety MCU initialization from the code injected into 
SRAM.

I will report issue against `bspstarthooks-hwinit.c` error which causes clear 
of whole SRAM including the application.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5537#note_147686
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to