embedded

Download control board software simulators

送分小仙女□ 提交于 2020-01-02 08:15:08
问题 I am interested in learning how to do embedded system programming in c. However, I will need some hardware. I am wondering is there any software that can simulate what the control board will do? The control board is listed in the following tutorial http://www.learn-c.com/hardware.htm Many thanks for any advice 回答1: The board you linked to is not an embedded system board, it is an I/O interface for a PC. If you want to simulate that, you can simply write PC code stubs for the I/O functions

Disable CE windows animation, programmatically?

☆樱花仙子☆ 提交于 2020-01-02 05:33:42
问题 Here is how to do it with a registry key. * Go to HKEY_LOCAL_MACHINE\SYSTEM\GWE * Create a DWORD named Animate if it does not already exist * Edit the DWORD value named Animate * 0 - Disables Window Animation 1 - Enables Window Animation However, it needs restart of the device. I would like to know if there is anyway to disable it instantly, programmatically? 回答1: Take a look at SystemParametersInfo. There is no animation setting, but maybe if you notify GWES of a different change it will

Embedded C++11 code — do I need volatile?

落花浮王杯 提交于 2020-01-02 04:16:09
问题 Embedded device with Cortex M3 MCU(STM32F1). It has embedded flash(64K). MCU firmware can reprogram flash sectors at runtime; this is done by Flash Memory Controller(FMC) registers (so it's not as easy as a=b). FMC gets buffer pointer and burns data to some flash sector. I want to use the last flash sector for device configuration parameters. Parameters are stored in a packed struct with arrays and contain some custom classes. Parameters can be changed at runtime (copy to RAM, change and burn

What is a good filesystem for embedded NAND drives?

岁酱吖の 提交于 2020-01-02 01:05:32
问题 I am working on an embedded application that uses NAND flash for storage. As it looks now, we won't use Linux or any other RTOS. The application must handle unexpected power downs. We have been looking on different file system solutions, including YAFFS2, JFFS2, FAT+FTL as well as solutions from HCC Embedded. I have heard FAT+FTL is a normal choice, but I am worried about data loss in case of unexpected power downs as well as performance. Would be grateful if anyone could share insights and

RTC with msp430

折月煮酒 提交于 2020-01-01 20:09:21
问题 I have asked this question before, but I think this time I can ask with some more clarity. The below is my RTC Test code. I am using msp430f5418 with IAR EW 5. My problem is after some time (we tested with 15 minutes and more) the minutes interrupt is coming earlier than expected. ie, On first time, after exactly 60 seconds and after 15 minutes the minute interrupt comes on 45th seconds itself. Why is it so? We are using the library provided by TI for RTC register manipulation. Can anybody

RTC with msp430

折月煮酒 提交于 2020-01-01 20:09:11
问题 I have asked this question before, but I think this time I can ask with some more clarity. The below is my RTC Test code. I am using msp430f5418 with IAR EW 5. My problem is after some time (we tested with 15 minutes and more) the minutes interrupt is coming earlier than expected. ie, On first time, after exactly 60 seconds and after 15 minutes the minute interrupt comes on 45th seconds itself. Why is it so? We are using the library provided by TI for RTC register manipulation. Can anybody

Play two sounds simultanously in PYTHON without pygame

喜欢而已 提交于 2020-01-01 14:37:45
问题 I'm doing a project with an embedded computer module, the EXM32 Starter Kit and I want to simulate a piano with 8 musical notes. The OS is linux and I'm programming in Python. My problem is that version of Python is the 2.4 without 'pygame' library to play two sounds simultaneously. At now I am using in python "os.system('aplay ./Do.wav')" to play, from linux console, the sound. The simplificated question is: Can I use another library to do the same as: snd1 = pygame.mixer.Sound('./Do.wav')

Play two sounds simultanously in PYTHON without pygame

自古美人都是妖i 提交于 2020-01-01 14:37:03
问题 I'm doing a project with an embedded computer module, the EXM32 Starter Kit and I want to simulate a piano with 8 musical notes. The OS is linux and I'm programming in Python. My problem is that version of Python is the 2.4 without 'pygame' library to play two sounds simultaneously. At now I am using in python "os.system('aplay ./Do.wav')" to play, from linux console, the sound. The simplificated question is: Can I use another library to do the same as: snd1 = pygame.mixer.Sound('./Do.wav')

SPI_I2S_ReceiveData always returns 0xff or 0x00

别来无恙 提交于 2020-01-01 07:21:18
问题 I want to create firmware to stm32f4 discovery wich flashes the lights, when the board moves. But SPI_I2S_ReceiveData always returns 0xff or 0x00. I think the problem is in my SPI initialization but I do not know where exactly it is. Here is my code. #include <stm32f4xx.h> #include <stm32f4xx_rcc.h> #include <stm32f4xx_gpio.h> #include <stm32f4xx_spi.h> #include <stm32f4xx_i2c.h> void InitLEDs(void); void InitSPI(void); void Delay(int iTicks); void DiodeFlash(void); unsigned short

SPI_I2S_ReceiveData always returns 0xff or 0x00

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 07:21:04
问题 I want to create firmware to stm32f4 discovery wich flashes the lights, when the board moves. But SPI_I2S_ReceiveData always returns 0xff or 0x00. I think the problem is in my SPI initialization but I do not know where exactly it is. Here is my code. #include <stm32f4xx.h> #include <stm32f4xx_rcc.h> #include <stm32f4xx_gpio.h> #include <stm32f4xx_spi.h> #include <stm32f4xx_i2c.h> void InitLEDs(void); void InitSPI(void); void Delay(int iTicks); void DiodeFlash(void); unsigned short