Same UART in Bootloader and Bootloadable?

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

cross mob
magc_349501
Level 1
Level 1

Hi all,

   

 

   

Can anyone tell me if it is possible to use the same UART (the same pins) in both bootloader and in bootloadable?

   

My proposal is using normally the UART for communication, but I want to be able to upgrade software over this UART, sending before any command to enter in bootloader, is it posible?

   

I do not know if 1.- UART for bootloader is configured before passing to the bootloadable, or 2.-if it is configured when Bootloadable_Load() function is called to invoke the bootloader.

   

If 1, I can not do it because I will corrupt the configuration when pass from boatloader to bootloadable, if 2 I suppose it should work, but I even do not know if the PSoC creater will assign the same physical UART for both pieces of software.

   

Does anyone know the way to do it?

   

I look forward your response.

   

M

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

Yes, you can use the same UART. When the bootloader finishes, the program gets software reset and the bootloadable project starts running. Hence only one of the UART configurations is running at the same time.

   

 

   

Bob

0 Likes

Hi Bob,

   

Thank you very much for your answer!!

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

You're always welcome!

   

 

   

Bob

0 Likes