Hi,
there's no reason for bootloader failing to work under secured conditions. The bootloader is application just like any other, the only line to be changed is the following:
NVOPT_ROM: SECTION
NVOPT DC.B %00000000 ; backdoor disable, redirection enable, secured flash [last 00]
Having this value in NVOPT secures the S08 after Reset (no further BDM access to Flash/Ram). Tested. Bootloader and loaded application do communicate/work.
The bootloader itself allows (if compiled) reading of Flash for purpose of verify-after-write. This should be disabled using:
RCS_ENA EQU 0 ; READ COMMAND SUPPORTED? (0 NO)
otherwise anybody can read Flash using AN2295 bootloader Read command thus compromising NVOPT security.
Hope it helps too,
regards, Pavel, ok2ucx (AN2295 bootloader developer)
Freescale Czech System Center,
Roznov p.R., Czech Republic, EU