This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Keil "skipping" commands

I am working on a nrf51822 UART bootloader using Keil 5.14 (though I had the same problem with 5.1). If I start with the pack example dfu_dual_bank_serial_s110_pca10028 with the 8.0sdk, and try to add some additional commands (such as setting some IO lines) it looks like the compiler is skipping them. When I do a debug, Keil's Code Coverage shows that they are not executable lines. See attached image... image description

I tried making all the files R/W (some were marked read only), that didn't seem to help. I also played with optimization levels, the problem persisted.

Suggestions?

Related