7 years, 9 months ago.  This question has been closed. Reason: Off Topic

Build system API returned an empty response -240

Hi,

I was porting Erik's serial bootloader for the KL05 when I encountered a compiler error I haven't seen before.

"Build system API returned an empty response" with an Error code -240

I found two rather odd things. First if I change the target from KL05 to say KL25 the error goes away and the code compiles. Second for whatever reason the KL05 does not have UART_S1_RDRF_MASK & UART_S1_TDRE_MASK defined like the KL25 or KL64F. Instead the address is defined as UART0_S1_RDRF_MASK or UARTLP_S1_RDRF_MASK. However it still points to the same exact place 0x20u. The code wont compile without that defined but as soon as I define it I get the empty response error.

Any ideas?

Import programBootloader_K05

A fork of Erik Olieman's bootloader for the KL05Z32. The bootloader is placed in the 29th sector allowing for 28kB of program memory. The 32nd sector is left empty after the bootloader to allow for use of the non volatile storage without the risk of overwriting it during serial firmware update.

Whoops, I just realized that the IAP library which the bootloader depends on had the functions hard coded to memory address for the KL64F as well.

posted by Krzysztof Sitko 17 Jul 2016