8400 views|5 replies

1w

Posts

25

Resources
The OP
 

mbed launches new feature: Mbed Simulator [Copy link]

In order to facilitate development, mbed has launched a simulator that can simulate the running effect and speed up the development. This function is a bit like proteus, but proteus currently does not support arm well, and mbed simulator can be well combined with mbed. Full official English description: https://os.mbed.com/blog/entry/introducing-mbed-simulator/. The following is a partial translation of the official description:
Despite our efforts to improve the embedded development tools in Mbed (such as through online compilers), the development of microcontrollers is still very similar to the development tools in the 90s. Compilation speed is slow, and flashing speed is even slower. When fixing an error, you need to put the device into the exact state as before you encountered the error. This produces very slow feedback, which affects productivity and often pulls you out of the development area. In order to make this feedback loop shorter, we have released an alpha version of Mbed Simulator. The simulator allows you to run Mbed OS 5 applications directly on your computer so that you can quickly test and validate your application without having to write to a real board. This is a valuable learning tool as you can quickly understand how Mbed works. It is also very useful for developing complex applications. Internally at Arm, we have been using the simulator for mbed-http, the Mbed LoRaWAN stack and uTensor. Note: Mbed Simulator is part of Mbed Labs. The Mbed Labs project showcases interesting projects developed by Mbed engineers. However, these projects are not actively supported by Arm and may be added, removed or broken at any time. Mbed Simulator online environment running Blinky and showing the C12832 LCD display Online Simulator The simulator is available in two versions: an online version that runs entirely in a browser and an offline version that can be used with any Mbed OS 5 project. The easiest way to get started is to: Open the online Mbed Simulator The simulator displays a code editor on the left. You can make changes to your code here and click Compile to run it in the simulator. There are a wide variety of demos, from peripherals (like the popular C12832 LCD display) to networking. You can use the full Mbed networking stack directly from the simulator. Select a demo in the drop-down menu and click Load. The demo will load automatically. You can also add new components. For example, you can make an external LED blink.
  • Load 'Blinky'.
  • Click Add Component, select Red LED and choose p5 as the pin.
  • In the code, change LED1 to p5.
  • Click Compile.
  • Now the external LED blinks instead of the internal LED.
You can also share your code with others. Simply share the URL of your compiled application. When someone opens the URL, it will load the application you created earlier (only the components will not be added automatically). Offline You can also run the simulator offline on any Mbed OS 5 project. This allows you to integrate the simulator into your development workflow. To use the simulator offline, first:
  • Install the Mbed CLI.
  • Install the Emscripten SDK.
  • Install Node.js 8 or later.
Then open a terminal window, navigate to the Mbed OS 5 project and run:
  1. # installs the simulator $ npm install mbed-simulator -g # run the current project $ mbed-simulator .
复制代码
This will cross-compile the current application and open a browser running the application. Full official English instructions: https://os.mbed.com/blog/entry/introducing-mbed-simulator/

This post is from Embedded System

Latest reply

I have installed it, but the compilation is missing this and that, and I can't figure it out at all. I feel that the mbed code is concise, is there any that can be used? Or has anyone exported any project for STM32F401, please share it, thank you,,, all the ones I exported have errors,,, the pack package is installed, both STD and hal are used without any problem,,, but the one exported by mbed is not good~~ It would be fine if you can share a project, so that you can get started with mbed   Details Published on 2019-10-27 11:46

2856

Posts

260

Resources
2
 
Very cool
This post is from Embedded System
 
 

9

Posts

0

Resources
3
 

There are many errors in the Keil 5 project exported by mbed os5. How to deal with it?

This post is from Embedded System

Comments

Generally not, is it because the corresponding chip support files are not installed?  Details Published on 2019-10-22 11:48
 
 
 

1w

Posts

25

Resources
4
 
jy04706985 posted on 2019-10-22 11:00 There are many errors in the Keil 5 project exported from mbed os5. How to deal with it?

Generally not, is it because the corresponding chip support files are not installed?

This post is from Embedded System
 
 
 

9

Posts

0

Resources
5
 
dcexpert posted on 2019-10-22 11:48 Generally no, is it because the corresponding chip support files are not installed?

I have installed it, but the compilation is missing this and that, and I can't figure it out at all. I feel that the mbed code is concise, is there any that can be used? Or has anyone exported any project for STM32F401, please share it, thank you,,, all the ones I exported have errors,,, the pack package is installed, both STD and hal are used without any problem,,, but the one exported by mbed is not good~~ It would be fine if you can share a project, so that you can get started with mbed

This post is from Embedded System

Comments

When exporting, you have to choose the format, and there has been no problem.  Details Published on 2019-10-27 13:57
 
 
 

1w

Posts

25

Resources
6
 
jy04706985 posted on 2019-10-27 11:46 It has been installed, but the compilation is missing this and that, and I can't figure it out at all. I feel that the mbed code is concise, is there any that can be used? Or can anyone of you guide...

When exporting, you have to choose the format, and there has been no problem.

This post is from Embedded System
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list