How can i inherit bootloader's debug select value in bootloadable peoject?

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

cross mob
Anonymous
Not applicable

Hi, 

   

Now, I'm using psoc creator with psoc5lp device. 

   

My projects consist of bootloader and bootloadable. 

   

And P1[3] of PSoC5 LP is connected to led. 

   

Debug Select options were swd. and i could change both of them.

   

There was no problem before upgrade psoc creator today. 

   

After that, debug select option in bootloadable project is changed to inherit the value from associated bootloader. 

   

I can't find the way to inherit bootloader value in bootloadable project. 

0 Likes
7 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If you are trying to pass data from bootloader to bootloadable application,

   

just declare an absolute area in memory (RAM or FLASH) where that data

   

is to be found. Or put it in EEPROM or emFile (emulated EEPROM) when

   

bootloader is running. Then when bootloadable runs it knows where the data

   

is because you coded a pointer in it to an absolute memory location. Or a test

   

for a "signature" in the EE or emEE.

   

 

   

The data could be a structure should you choose. Anything.

   

 

   

    

   

          

   

http://www.cypress.com/?rID=50230     AN68272 UART BL     PSOC 3, 4, 5LP

   

http://www.cypress.com/?rID=41002     AN60317 I2C BL         PSOC 3, 5LP

   

http://www.cypress.com/?rID=57561     AN73503 USB HID BL with GUI Host     PSOC 3, 5LP

   

http://www.cypress.com/?rID=56014     PSoC® 3, PSoC 4, and PSoC 5LP Introduction To Bootloaders

   

http://www.cypress.com/?rID=83293     AN86526 - PSoC® 4  I2C Bootloader

   

http://www.cypress.com/?rID=50230     AN68272 - PSoC® 3, PSoC 4 and PSoC 5LP UART Bootloader

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thanks, Dana. 

   

But I want to know how to configure "Debug Select" option in bootloadable application. 

   

You can find this option :

   

ApplicationName.cydwr File -> System Tap -> Progrmming\Debugging 

   

In PSoC Creator 3.0 sp 2, I could select SWD, SWD+SWV, etc. in bootloadable application.

   

In PSoC Creator 3.1,  It's impossible. Because bootloadable application inherit that value from associated bootloader.

   

So I changed bootloader's value, but it didn't inherit from bootloader, it wasn't selectable, it was fixxed to SWD+SWV. 

   

P1[3] is used to SWD:SWV. But I want to use it as GPIO. 

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

To regain control over the SWD pins and use as GPIO use the HSIOM

   

Register HSIOM_PORT_SEL3. Refer to the Register Technical

   

Manual.               http://www.cypress.com/?rID=78807

   

 

   

Note you would also have to use the other port control registers to config

   

the pins characteristics, like input or output, stong drive, pullups etc...See

   

page 26 of ap note and also the Register TRM

   

           http://www.cypress.com/?rID=93401     AN86439 - PSoC® 4 - Using GPIO Pins

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I thought you were using PSOC 4, let me find the corrected info for PSOC 5LP.

   

 

   

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Ap note for port control registers -

   

 

   

    

   

         

   

http://www.cypress.com/?rID=57571     AN72382 - Using PSoC® 3 and PSoC 5LP GPIO Pins

   

 Register TRM -http://www.cypress.com/?rID=73299

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I just built a project with bootloader and bootloadable. Setting the debug pins to different modes works.

   

I assume that the reference to the bootloader might be pointing to the wrong project.

   

 

   

Bob

0 Likes
Anonymous
Not applicable
        I have the same problem as Lars Hong, i can not build my bootloadable application with psoc 3.1. What is the solution ?.   
0 Likes