OVP Forums - A community of assistance, help, questions, and answers.
  FAQFAQ    SearchSearch      RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in
Intercept Instruction on uC/OS-II running Cortex-M3

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme
View previous topic :: View next topic  
Author Message
SirFonzie



Joined: 16 Aug 2012
Posts: 22

PostPosted: Mon Sep 08, 2014 9:27 pm    Post subject: Intercept Instruction on uC/OS-II running Cortex-M3 Reply with quote

Hi,

I tried 'merging' the interceptlib obtained from intercept_instruction_Linux_MIPSMalta with the ucosii_CortexM3 demo.

Following the intercept demo, i would need to modify the execution script so that the intercept library is included.

So I changed it,

FROM:

--------------
OVPsim_ucosii_arm_Cortex-M3.Windows32.exe ucosiiDemoApplication.ARM_CORTEX_M3.elf 10
--------------

TO:

--------------
DESIGN="BareMetalArmCortexMSingle"
VENDOR="arm.ovpworld.org"
CPU="cpu1"
VARIANT="Cortex-M3"

imperas.exe --verbose \
--vlnvname ${DESIGN} --vlnvvendor ${VENDOR} \
\
--output imperas.log \
--override ${DESIGN}/${CPU}/variant=${VARIANT} \
\
--enabletools \
--override ${DESIGN}/${CPU}/enableSMPTools=1 \
--extlib ${DESIGN}/${CPU}=modelAttrs@interceptlib/model.${IMPERAS_ARCH}.${IMPERAS_SHRSUF} \
--finishtime 20

echo "Do you want to view the instruction profiling totals file [y/N] "
read VIEWIT
if [ "${VIEWIT}" = "y" ]; then
less instructionProfile/${CPU}_TC0.ipr.txt
fi
--------------


In addition, I also took the source from OVPsim_ucosii_arm_Cortex-M3.c and overwrote the platform.c found in \Imperas\ImperasLib\source\arm.ovpworld.org\platform\BareMetalArmCortexMSingle.

The only thing missing is to incorporate/include the elf file which has my application+uC/OS-II.

How do I go about doing this?
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 1639
Location: United Kingdom

PostPosted: Thu Oct 29, 2015 2:05 am    Post subject: Reply with quote

A program elf file to be loaded into memory can be specified using one of the arguments obtained by typing --help on the command line.

Quote:
program
--objfile filename Load object onto CPU. Set PC to start address
--objfilenoentry filename Load object onto CPU. Do not set PC to start address
--objfileuseentry -f filename Load object onto CPU. Set PC to start address
--program filename Execute this program. eg. prog.elf or des/p1=prog.elf
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Information regarding OVP © 2008-2022 Imperas Software