Just to reconfirm, the above main.elf binary locks me out and oocd can't
connect to the board anymore. Switching to Windows, and dropping the
earlier FRDM_RGBLED_KL25Z.bin file into the folder reprograms the board.
Switching back to Linux and connecting oocd works again.

- Thomas



On Thu, Sep 19, 2013 at 10:35 AM, Chris Fryer <chrisf1...@gmail.com> wrote:

> On 19/09/13 17:27, Spencer Oliver wrote:
>
>  I also switched to the mbed dap driver, just to make sure that this is not
>> the problem.
>>
>> The application I am trying to flash is this one:
>>
>> https://community.freescale.**com/servlet/JiveServlet/**
>> download/312559-255229/test-**frdm-kl25z.tar.gz<https://community.freescale.com/servlet/JiveServlet/download/312559-255229/test-frdm-kl25z.tar.gz>
>>
>> Binary attached.
>>
>> so the above binary causes the board to lockout, is that correct ?
>>
>> Spen
>>
> I'm using a different IC (K10) so don't think my binary would be a good
> thing to use.
> Putting this at the start of main should get you into the same state that
> mine's in.
>     // Allow all low power modes
>     SMC_PMPROT = SMC_PMPROT_AVLP_MASK | SMC_PMPROT_ALLS_MASK |
> SMC_PMPROT_AVLLS_MASK;
>     // Select VLLSx
>     SMC_PMCTRL = SMC_PMCTRL_STOPM(0b100);
>     // Select VLLS0 with POR enabled
>     SMC_VLLSCTRL = SMC_VLLSCTRL_VLLSM(0b000);
>     // Set SLEEPDEEP
>     SCB_SCR |= SCB_SCR_SLEEPDEEP_MASK;
>     // Sleep
>     asm("WFI");
>
>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to