You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a private product with MCUboot and Mbed OS on FRDM-K64F board. I'd like to leverage shared_data area to pass some data from MCUboot to runtime software.
I tried it following this demo project and then, I might have succeeded to save the data into shared_data area. But I have no idea to read the data with runtime software.
In the case of demo example, the shared area was allocated to the range from 0x2002_FF80 to 0x2003_0000. I prepared a data buffer, which size is 0x80, and then attempted to read by memcpy function like memcpy(&buffer, (void*)0x2002_FF80, sizeof(buffer)). However, I got Mbed OS Fault Handler below. I guess the direct access to RAM area should not be recommended.
Does anyone know appropriate access method to read shared data?
Thank you for your help in advance.
++ MbedOS Fault Handler ++
FaultType: HardFault
Context:
R 0: 2002FF70
R 1: 2022FF80
R 2: 20230000
R 3: 2002FF6F
R 4: 00000000
R 5: 00000000
R 6: FFFFFFFF
R 7: 00000000
R 8: 00000000
R 9: 00000000
R 10: 20020000
R 11: 00000000
R 12: 00000000
SP : 2002FF58
LR : 00025C83
PC : 000262B6
xPSR : 81000000
PSP : 00000000
MSP : 2002FEF0
CPUID: 410FC241
HFSR : 40000000
MMFSR: 00000000
BFSR : 00000082
UFSR : 00000000
DFSR : 00000000
AFSR : 00000000
BFAR : 2022FF80
Mode : Thread
Priv : Privileged
Stack: MSP
-- MbedOS Fault Handler --
++ MbedOS Error Info ++
Error Status: 0x80FF013D Code: 317 Module: 255
Error Message: Fault exception
Location: 0x262B6
Error Value: 0x1FFF0400
For more info, visit: https://mbed.com/s/error?error=0x80FF013D&tgt=K64F
-- MbedOS Error Info --
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, all
I'm developing a private product with MCUboot and Mbed OS on FRDM-K64F board. I'd like to leverage
shared_data
area to pass some data from MCUboot to runtime software.I tried it following this demo project and then, I might have succeeded to save the data into
shared_data
area. But I have no idea to read the data with runtime software.In the case of demo example, the shared area was allocated to the range from 0x2002_FF80 to 0x2003_0000. I prepared a data buffer, which size is 0x80, and then attempted to read by
memcpy
function likememcpy(&buffer, (void*)0x2002_FF80, sizeof(buffer))
. However, I got Mbed OS Fault Handler below. I guess the direct access to RAM area should not be recommended.Does anyone know appropriate access method to read
shared data
?Thank you for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions