Binary willnot run on target

Hi,
I’m having some problems getting my binarry to run on the target. This is the output after the build process

I note that there is a warning

[Warning] @0,0: L3912W: Option ‘legacyalign’ is deprecated.]

and am wondering if this is the cause of the problem.

[This software was compiled on the then-current mbed studio back in Nov 2022 and ran 100% correctly. Some of the mbed functions/API’s changed or were deprecated in the interim (timers for one example) so I had to update the software accordingly and recompile it]

Any help, as always, is greatly appreciated.

rgds

Andrew

Another point, despite having selected the active program, the ‘Select Target’ dialog box is inaccessible and displays the following

I guess this might be part of my problem? But then how does it know to generate an LPC1114 target binary?

Hello,

It seems like the project does not have mbed library or the library can not be recognized by MbedStudio.

  • Try check if Mbed library is present in library panel and which version.
  • Try to rightclick onthe project folder and choose Active program (or something similar)
  • if it still not work then is better create new empty program and transfer all .h and .cpp files manually between folders and then reopen it in Mbed Studio.

BR, Jan

Hi there Jan,

I’ve tried to work out what is going on here, but to no avail. The board works because if I load the original binary from 2022, it runs perfectly, so that confiems the hardware is all ok.

However, if I compile on the current Mbed Studio I get this

So, from what I can see, essentially no errors. I then take the binary and load it ontl the board using Tedd Okano’s
image

This uses the LPC1768 to program the LPC1114 and what I use if I load the old binary - so it does work as advertised.

I want to close this project off with a final software update before looking around for another platform (I’ll probably go across to the ST IDE), but continue to struggle here.

Here is the library

mbed config.h

mbed_app_json

Any idea what can be the problem? I would love to close this off.

Regards

Andrew

To be honest i gave you some tips as reaction of your picture and you did not give no feedback, just repeated similar info from above.

Is the mbed_config.h empty? That mean you still do not have selected any target, or? Please make a picture of whole MbedStudio window, I would like to see your actual configuration.

BR, Jan

Jan, apologies if I missed your earlier feedback.

Here is the complete window as requested

Just zooming in a bit here - might make it easier to read

This doesn’t make sense, you have mbed 6.17 in library window but in left panel there is RawSerial.h which is not part of MbedOS 6.

Please collapse the mbed library in the tree, i want to see project structure.

BR, Jan

Ive split it into sections

Thanks

Andrew

(NB there arre a few small gaps in the above)

Here is the toolchain file contents

It seems like you have a big mess in your workspace and also in your project. This is definitely not how it should look like.
This is definity not MbedOS 5 or 6 it seems like old mbed2 which is not supported in Mbed Studio, just in Keil Studio Cloud.

Try to create new empty workspace, open it in MbedStudio and create new project (maybe based on MbedOS 5.15) in that project folder via MbedStudio. Then copy main.cpp from old to new project, and ofc rest files like mbed_app.json and so on.

BR, Jan

ok - thanks Jan - appreciate it.

rgds

Andrew