Getting Keil Cloud Studio (KSC) compiled code to run on target

Hello,

  1. I am able to compile my program on KSC without any errors and generate a .bin file.
  2. I am converting the .bin to a .hex file using on online converter here.
  3. I am copying the .hex file into notepad and saving it as a .hex file
  4. I am then using FlashMagic to load the hex file into my LPC1114 based target, but unfortunately it will not run.
  5. Here is what my mbed.json looks like

(So, baremetal is selected.)

I am assuming I can do this and that KSC is not limited to just Keil dev boards. This same program ran ok when compiled with the original mbed online compiler, so I am now trying to get it to work using KCS. The code has been updated to make it compatible with KSC eg using thread_sleep_for(100000) instead of wait(0.1)

Can anyone point me in the right direction here? Is there something I am missing?

Thanks

AndrewR

Use for waits on the active thread the code: “ThisThread::sleep_for(5)” in milli seconds

Sorry, I dont understand this point Jacques

The wait(int sec) function was in seconds and the thread_sleep_for(int ms) function is in miliseconds. So 100000ms is definitely not equivalent for 0,1sec.

Anyway if you are in trouble go back to basic. So try simple blinky example (baremetal in your case ofc) based on same MbedOs version for verification the issue is in your code or in deploy in general.

BR, Jan

Ahh - ok. Thanks for your feedback Jan. I will try to look at it tomorrow again.

BR

AndrewR