Comments (8)
I agree with this, not only does it affect development boards without an interface chip, but it affects any production boards using the mbed SDK as well.
from mbed-os.
Hello Erik,
Is this issue solved? If yes, please close this issue. I can see that is macro protected now.
// ensure debug is disconnected
#if DEVICE_SEMIHOST
mbed_interface_disconnect();
#endif
from mbed-os.
Actually, no :P. That fixes it on devices without semihost (such as the seeeduino arch), but it imo should be completely removed. For reasons see above :). And personally I would put it in powerdown instead. Also PDAWAKECFG should only wake with is currently enabled (easy to make), instead of everything.
But since in the meantime I started doing other stuff and with only Neil's reaction on it I didn't feel like changing the original mbeds behavior.
from mbed-os.
Aside from LocalFileSystem (which isn't going to be around forever since the mbed interface is deprecated now), what benefit does semihosting offer? All I see are drawbacks. For example, the mbed-rtos library can't put the chip to sleep in the idle thread because it might disconnect from semihosting. So what's the point of an idle thread then? I'm of the opinion that semihosting needs to bite the dust entirely.
from mbed-os.
Heh it understands I referenced this. Pull request in to change this, then I close it ;).
Btw I agree with Neil. LocalFileSystem is a very neat thing to have, but in general the semihosting interface is not the greatest thing since sliced bread. Although it can't put it to sleep in idle thread? Never tried it, but regular sleep works fine. Although also the others I have tried all end up in a debugging state when the interface chip is also powered, so including newer mbeds. (You notice that since its powerdown consumption is a few milli-amps instead of micro-amps).
from mbed-os.
Pull request was cancelled. The bug is still there, so hopefully mbed staff fixes this in the future. With some toying around I made my lpc11u24 semi debug-aware, so maybe something like that would meet the requirements.
from mbed-os.
Old one, but what I just considered: Did anyone ever checked if the disconnect command to the mbed interface does even have any influence whatsoever on the state of the target (the LPC11u24)? I ask because I recently had some discussions with an ARM colleague of yours (mbed staff), Yunfei Niu, and he wasn't able to really get the LPC1768 out of the debug mode it is standard in. In addition personally I haven't been capable of getting any target out of debug mode without power cycling: Just resetting the microcontroller also never did the job.
from mbed-os.
ARM Internal Ref: IOTMORF-328
from mbed-os.
Related Issues (20)
- LPC546XX / LPC54628 missing CAN feature? HOT 3
- ZLP not sent in USB device HOT 8
- Add fully buildable support for STM32H745 HOT 4
- Unused Variable Warnings on Nuvoton Targers HOT 3
- STM32F7 : CAN RX interrupt not triggering on Mbed-OS 6.17.0 HOT 2
- RAK3172 ADC pins don't work when deep sleep is enabled HOT 5
- Serial Communication Failure HOT 6
- .04 HOT 1
- Adaptation problem of Chan stack: Control of special case FF_MAX_SS == FF_MIN_SS in FatFileSystem HOT 3
- OSPI support for STM32H7 targets HOT 2
- ESP
- Can't compile to the "NUCLEO-H563ZI" board. HOT 5
- STM32F4: FMPI2C doesn't work HOT 6
- Mbed studio: Nuvoton M2354: build failed HOT 11
- STM32U5 firmware package need update HOT 4
- Nuvoton M487 ADC Accuracy using AnalogIn() HOT 4
- STLINK-V3 (MINIE) support HOT 2
- CAN API Errors HOT 2
- Running `mbed-tools detect` on mac_os fails when a USB peripheral is missing some data HOT 2
- STM32H7 TCP non functional HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbed-os.