Did I destroy the bootloader part?

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

cross mob
Anonymous
Not applicable

hi folks please help me.

   

My psoc4 device is not recognized as com port device after writing (bootloadable) program.

   

My device is CY8CKIT-049-4245. Last program contains one PWMunit and sysclock.

   

First I make it as non bootloadable program and add "Bootloadable" later. After uploading

   

it works well (as I intended). But I modified program and tried to write, I find the device is only

   

recognized as only "USB-Serial  (Single channel)vendor  MFG"(BlueLED is on- off fast)

   

What shall I do for this phenomina? I use PSOC Creator 3.2.

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

Welcome in the forum.

   

 

   

Relax: The Bootloader is protected against overwriting it with a bootloadable program. I would suggest you to

   

restart your PC

   

start BootLoader Host program

   

insert prototype board with switch pressed

   

check com-port popping up in BLHost-program

   

Checking baud rate 15200

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thank you for your kind advice, Bob

   

This morning I start hostPC and find my device recognized as Comport,

   

as you said. So I can upload new programs and check. Thank you.

   

The next question. I want to change register value such as Compare, Period

   

in running program. So I use PWM_1_SetCompare(uint32), but it looks like

   

ignored. Should I use some Magic word (PWM_1_Init(), etc..)?

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

I cannot find the SetCompare() function in either SCB PWM or UDB PWM,

   

are you sure it should not be WriteCompare() ?

   

 

   

Which PWM are you using, which version of Creator ?

   

 

   

Consider posting your project -

   

 

   

“File”                                                             Creator

   

“Create Workspace Bundle”

   

 

   

Regards, Dana.

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

As a general rule of thumb:

   
        
  • Components have to be started
  •     
  • Components may be stopped and started again
  •     
  • Components may be sent to sleep and awoken again
  •     
  • For every component there is a very detailed datasheet listing among others all the APIs
  •     
  • A component paced onto the schematic gets a name given by the system. Change that name to your needs. Every API for this component is preceded with Name_
  •    
   

 

   

Bob

0 Likes