TESTNAME=bootloader test sequence is in BP210 CM3 test sequence,
In especially, we could find the below code,
then we got the below error message when we ran the simulation.
23490 ns UART: CMSDK Boot Loader
27270 ns UART: - load flash
45710 ns UART:
50750 ns UART: CMSDK Boot Loader
54530 ns UART: - load flash
63750 ns UART: - Error: REMAP is already clear
64130 ns UART: Test Ended
Does it have any correct test sequence for resolving that error?
Why Remap is already cleared? what am I supposed to do to resolve this problem?
In the CMSDK example system, we only have two boot types:- No boot loader, start application in application ROM- Boot up from boot loader, then switch over to the application in application ROM.In both cases, we expect the "application" code is running from application ROM>`define ARM_CMSDK_ROM_MEM_TYPE `AHB_ROM_NONEBy setting this to None, it means application ROM is not available and hence the system crashed. That's why you don't see anything afterwards.In Cortex-M0, M0+, M3 and M4 processors, the boot sequence always take the initial MSP and reset vector from address 0x00000000 and 0x00000004. As a result, to enable the use of a boot loader, the boot loader need to be in address 0x00000000.When REMAP is 1 (at starting), it maps the first 64KB of the memory into boot ROM for starting the boot loader. But normally (when running the application) you want the application ROM to be there. Therefore we need to switch off remap inside the boot loader (by that time it will be running the boot loader code from boot loader memory in 0x01000000). After that the first 64KB is then mapped to the application ROM and the default vector table in application ROM (at 0x00000000) would be in use.