Some time ago, we successfully transplanted Redboot to the stm32 board and left a question: Since Redboot is a single-thread application of ECOs, is it feasible to directly run the ECOS application without Redboot? This problem is theoretically feasible based on my understanding of ECOs, because they all adopt the same Hal (Hardware Abstraction Layer ).
With this question, I want to run the simplest helloworld application on the stm32 board in two ways: use the previously transplanted redoot to boot the ECOS application in the memory (that is, the helloworld application), because I can use this method to start and run the application in projects I have developed, therefore, this method does not have any problems, because I can use this method to start and run applications in projects I have developed. On this basis, I use another method to start the helloworld application, that is, the application is directly written to the Internal flash of stm32 and runs directly.
After a period of hard work and hard work, both of the above methods verify OK. At the same time, it proves that the ECOS application can be started without Redboot boot, and can be directly started from the Internal flash of stm32. I recorded this porting process as an article and posted it on my blog. Because there is a lot of content, I will not post it here. If you are interested, you can go to my blog to learn about it. The following is the link:
Port ECOs with stm32
#7. Port eCos and run the helloworld program successfully. Configure and compile the static link library file.
Stm32 port ECOs #8, port ECOs, and successfully run the helloworld program. Compile the link to generate the helloworld program.
Stm32 port ECOs #9, port ECOs, and successfully run the helloworld program. Run the helloworld program in memory using Redboot.
Stm32 port ECOs #10, port ECOs, and successfully run the helloworld program, and run the helloworld program directly in flash.
For simplicity, the ECOS application is the simplest helloworld program.
Next, I want to implement: Use Redboot to boot the ECOS application in flash. However, we have encountered some problems. After you have finished the operation, share it with us. In addition, if you are interested in ECOs, you can add the ecos qq group: 144940146.