ModusToolbox run to reset Vector

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
make_3248316
Level 2
Level 2
5 questions asked First like received First reply posted

HI:

Creator can configuration my code starts at Reset Vector or Main.How can I configure it at ModusToolbox?

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Make-san,

I tried with ModusToolbox 2.1 and CY8CPROTO-062-4343W and Hello_World.

One thing I realized was that for the first time run we need to do something messy.

But once the disassembly code is displayed, from the second run it shows that display without hussle.

Anyway, so the following is the shortest mess I could reach to the disassembly debug mode.

Note: There could be better ways, but for the time being, this is how I could make it work.

(I needed create, build, debug and erase whole workspace several times to accomplish this. >_< )

(1) I created a new project and built it.

002-project-built.JPG

(2) I selected the Debug Icon > Debug Configurations

003-Debug-Configurations.JPG

(3) In the Startup tab, unchecked the "Set breakpoint at:" and selected "Apply" then selected "Close"

004-uncheck-and-apply.JPG

(4) From the Quick Panel, selected "Hello_World Debug (KitProg3)

006-debug.JPG

(5) Debugger started, but only the register dump showed. I select the stop icon (red box)

007-only-registers.JPG

(6) Then again I selected "Hello_World Debug (KitProg3)" from the Quick Panel

This time, I saw the following window.

008-view-disassembly.JPG

(7) I selected "View Disassembly"

009-view-disassembly.JPG

(8) I selected "Reset"

010-reset-rewind.JPG

(9) Then I selected "Pause", finally disassembly screen is shown.

011-pause.JPG

(10) When I select "Reset" again, it showed the "Reset Handler"

012-reset.JPG

(11) After doing up to (10), I stopped the debugger and closed all windows in the edit/work area

  then I selected "Hello_World Debug (KigProg3)" again.

This time, it directly came to the Reset Handler.

013-second-run.JPG

Best Regards,

6-Jul-2020

Motoo Tanaka

(Edit) Typo  and signature

View solution in original post

7 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I tried with the ModusToolbox 2.1 and CY8CKIT-062-BLE and HelloWorld sample code.

(1) From the WorkBench I selected menu icon "Debug" > "Debug Configurations..."

000-Debug_config.JPG

(2) In the Debug Configurations window, I selected GDB OpenOCD Debugging > <project> Debug (KitProg3)

Then selected the "Startup" tab.

001-Debug-config-startup.JPG

(3) I scrolled down the Startup tab, and there is "Set breakpoint at:" item.

002-Debug-config-startup-2.JPG

(4) I unchecked the "Set breakpoint at:" item and selected "Apply" then "Close"

003-startup3.JPG

(5) Then selected <projec> Debug (KitProg3) from the Launches in the Quick Panel

004-hello-world-debug.JPG

(6) Then I could see the reset handler

008-starting-at-reset.JPG

moto

0 Likes
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

HI moto:

Thanks for your help.

I tried with the ModusToolbox 2.1 and CY8CPROTO-062-4343W and HelloWorld code.But it doesn't work.

pastedImage_2.png

It does't run begin at RESET_handler.

I don't know what's wrong with it.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Make-san,

I tried with ModusToolbox 2.1 and CY8CPROTO-062-4343W and Hello_World.

One thing I realized was that for the first time run we need to do something messy.

But once the disassembly code is displayed, from the second run it shows that display without hussle.

Anyway, so the following is the shortest mess I could reach to the disassembly debug mode.

Note: There could be better ways, but for the time being, this is how I could make it work.

(I needed create, build, debug and erase whole workspace several times to accomplish this. >_< )

(1) I created a new project and built it.

002-project-built.JPG

(2) I selected the Debug Icon > Debug Configurations

003-Debug-Configurations.JPG

(3) In the Startup tab, unchecked the "Set breakpoint at:" and selected "Apply" then selected "Close"

004-uncheck-and-apply.JPG

(4) From the Quick Panel, selected "Hello_World Debug (KitProg3)

006-debug.JPG

(5) Debugger started, but only the register dump showed. I select the stop icon (red box)

007-only-registers.JPG

(6) Then again I selected "Hello_World Debug (KitProg3)" from the Quick Panel

This time, I saw the following window.

008-view-disassembly.JPG

(7) I selected "View Disassembly"

009-view-disassembly.JPG

(8) I selected "Reset"

010-reset-rewind.JPG

(9) Then I selected "Pause", finally disassembly screen is shown.

011-pause.JPG

(10) When I select "Reset" again, it showed the "Reset Handler"

012-reset.JPG

(11) After doing up to (10), I stopped the debugger and closed all windows in the edit/work area

  then I selected "Hello_World Debug (KigProg3)" again.

This time, it directly came to the Reset Handler.

013-second-run.JPG

Best Regards,

6-Jul-2020

Motoo Tanaka

(Edit) Typo  and signature

HI moto:

I use the example name mtb-example-psoc6-hello-world from github.The problem in this picture does't appear.

pastedImage_0.png

Just as you said,the first debug after unchecking the "Set breakpoint at:".It will start with the main.Then I select "Reset" , it showed the "Reset Handler".

Be inspired by you,I find anouther way to start at Reset Vector.

(1) I selected the Debug Icon > Debug Configurations

(2) In the Startup tab, checked the "Set breakpoint at:" ,Change the "main" to the "Cy_OnResetUser",and selected "Apply" then selected "Close".

pastedImage_5.png

(3) From the Quick Panel, selected mtb-example-psoc6-hello-world (KitProg3)

(4) It will start at "Cy_OnResetUser",this function is executed as the first instruction in the ResetHandler.

pastedImage_7.png

I am so sorry.

My webpage has some problems so some pictures lost.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I think that is a problem only happening on your PC, as I can see all the pictures in your response.

Meantime, in case your issue has been solved,

if you could mark my response as Correct Answer or Helpful,

I would appreciate it 😉

moto

0 Likes