cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader and application issue with SWT component

AVM
Associate III

Hi,

I am working on SPC58NG84E7 bootloader.

Everything works fine - I have BL code(at 0xFC0000) which jumps to the APP location 0xFD0000 after waiting for 10sec after startup and executes the code there. Both codes are without SWT.

Issue - But when I added SWT component to BL, on powerOn BL is not running. swt_lld_stop() is called before jump.

If I start the BL through UDE debugger application it executes BL, jumps to APP, executes APP code, but then reset from APP and entering into BL is not working.

This issue remains in APP with SWT and without SWT both.

What could be the issue here?

Regards,

AM

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
21 REPLIES 21
AVM
Associate III

Hi Olivier,

When I simply shifted from SWT0 to SWT2, it is working fine.

Don't know exactly the reason behind.

Warm Regards,

AVM

Dear customer,

This is the root cause:

The SWT2 is enabled by default at MCU reset

the other are disabled.

When you are using SWT0, you are managing it well, but the SWT2 is resetting the MCU.

When you are using the SWT2, you reprogram it and managing it well, so it works.

With last driver version the behavior was fixed: all SWT are disabled by default at boot.

BRs,

-Olivier