91321146 Posted December 13, 2016 Author Report Posted December 13, 2016 Joel I merged new master,but unfortunately my discovery board doesn't show any thing . my main.c and gfxconf.h is a thing like above . Joel please upload ugfx_demo_003 (for discoveryf7) in bare metal here dear.
Joel Bodenmann Posted December 13, 2016 Report Posted December 13, 2016 We'll put together an official ready-to-run demo project as per your request. However, that might take a while. We're currently very busy with customer projects and getting the next release put together. If this is for a time sensitive commercial projects I'd recommend you to contact us via e-mail regarding commercial support which would speed things up.
91321146 Posted December 13, 2016 Author Report Posted December 13, 2016 As you mentioned dear,it should be a configuration problem , I wanted you just to put gfxconf.h in bare metal here,however it's your choice .
Joel Bodenmann Posted December 13, 2016 Report Posted December 13, 2016 There's more to it than simply changing the used OS abstraction in the configuration file. You also have to disable Keil RTX, ensure that the package is no longer loaded and so on. Then, if there are still problems one has to debug the problem and so on. Unfortunately this is not a two minutes job. We'd recommend you to create a new bare-metal "Hello World" (aka Blinking LED) project for the STM32F746G-Discovery board in Keil and then adding µGFX as per the step-by-step guide using the baremetal port instead of RTX. The first thing you want to do if you're facing issues is debugging to figure out whether it's just halting somewhere or ending up in a hardfault or similar. You definitely want to make sure that the threading of the bare-metal port is working properly before you continue. You can do that by either manually creating two or three threads or by using the corresponding GOS demo.
Joel Bodenmann Posted December 13, 2016 Report Posted December 13, 2016 Note: Do not forget to still explicitly set the CPU that you are using by setting the GFX_CPU setting to the correct value as mentioned by inmarket.
91321146 Posted December 14, 2016 Author Report Posted December 14, 2016 Joel UGFX 2.7 too , not work properly to use in bare metal .
Joel Bodenmann Posted December 14, 2016 Report Posted December 14, 2016 We did a lot of tests on a multitude of different platforms and setups and the RAW32 (baremetal) port of µGFX 2.7 runs fine. Otherwise we wouldn't have released it if there would be a general problem with it. We'll put together an official demo exactly for your specific setup but as mentioned that will take some time as we currently have a lot on our plate. Our recommendation is that you start following the advice we give you. Unfortunately, just saying "doesn't work" all the time doesn't allow us to help you in an efficient way. Other than that you either have to wait until we have to the time to create a ready-to-run example project for you or contact us for commercial support.
91321146 Posted December 14, 2016 Author Report Posted December 14, 2016 Ok Joel I will debug and give feedback .
Joel Bodenmann Posted December 14, 2016 Report Posted December 14, 2016 Thank you, we appreciate it. Please don't forget to check for the things that we mentioned in this topic (eg. you must be 100% sure that RTX is no longer running, setting the correct CPU and compiler in the configuration file, ...).
Joel Bodenmann Posted December 14, 2016 Report Posted December 14, 2016 I gave it a quick try on a bare project and I can confirm that there's a bug in the Keil specific context switching code for the Cortex-M7 processor. We'll look into this ASAP.
91321146 Posted December 14, 2016 Author Report Posted December 14, 2016 Thanks Joel you are right , I wait for solving this bug
91321146 Posted December 21, 2016 Author Report Posted December 21, 2016 Hi Joel Could you solve this problem ? I tried to run demo in IAR ,but I faced problems . You said with ugfx 2.7 you put demo in bare metal too,am I right ?
Joel Bodenmann Posted December 23, 2016 Report Posted December 23, 2016 @inmarket just pushed a fix to the master branch of the repository. Can you please grab that, try it and let us know whether everything is working as expected now?
91321146 Posted December 23, 2016 Author Report Posted December 23, 2016 Hi In new master branch we have 3 flie (gos -x-threads-cortexm.....h) How and where should I add thease files?should I rename them to *gos-x-threads*?or I should add them in my main.c? And in bare metal template project in gfxconf.h there is *#define gfx-os-pre-init-function Raw32os init* That when I add this keil gives me error . ..
inmarket Posted December 24, 2016 Report Posted December 24, 2016 The new header files you can ignore. They are part of the internal working of the code. In your code make sure you define GFX_CPU_CORTEX_M7_FP to TRUE and the new code will automatically be included when you are using raw32. The GFX_OS_PREINIT_FUNCTION macro defines an optional name of a function that gfxInit() will call as part of its startup. This function could for example be used to initialise hardware. Using this enables the writing of main() functions that are ugfx only ie they contain no hardware specific code.
91321146 Posted December 24, 2016 Author Report Posted December 24, 2016 Believe me I I did that but it couldn't show demo003 for discoveryf7 in bare. Inmarket please you put demo-003 in bare metal for keil in web
Joel Bodenmann Posted December 24, 2016 Report Posted December 24, 2016 As mentioned a couple of times we will put together an official demo within the following days. If this is urgent for you due to a project deadline, please consider contacting us for priority support. This is a free support forum that the µGFX developers maintain in their spare-time.
91321146 Posted December 24, 2016 Author Report Posted December 24, 2016 You said you have solved this problem ,so it must show demo in bare in keil , I don't have deadline dear Joel, I thought it is a problem in ugfx and I have could notice you this problem.
Joel Bodenmann Posted December 24, 2016 Report Posted December 24, 2016 We have solved this problem. It's working well in our test projects. Putting together an official demo that we can provide as ready-to-run project from the download section is a different matter - it takes time to do that. We appreciate it that you brought this to our attention.
91321146 Posted December 24, 2016 Author Report Posted December 24, 2016 So you're opinion is that my configuration file is wrong when it works well in you're test projects , ok.
Joel Bodenmann Posted December 24, 2016 Report Posted December 24, 2016 I took a look at your configuration file and there's nothing wrong with it. 20 hours ago, 91321146 said: And in bare metal template project in gfxconf.h there is *#define gfx-os-pre-init-function Raw32os init* GFX_OS_EXTRA_INIT_FUNCTION is documented here. All it does is allowing you to register a function that will be called before all the other things of the µGFX library get initialized when calling gfxInit().Raw32OSInit() is a function defined in the board files for the STM32F746G-Discovery board that initializes the SDRAM and all other things required to run µGFX on that board without depending on any other things such as CubeHAL or similar. You don't need to use that if you have your own initialization functions. The function is there so we can run any demo on the STM32F746G-Discovery board without modifying the application code.
91321146 Posted December 24, 2016 Author Report Posted December 24, 2016 This are my main.c and gfxconf.h As you said there is no problem in my filles and you have tested so it must show on screen! I don't know really what should I do for displaying ? shall I make some thread myself ?
Joel Bodenmann Posted January 1, 2017 Report Posted January 1, 2017 Hi there, We are currently both on vacation & currently moving to a new office. Sorry for the longer-than-expected delay on this. We should be fully operational by next week.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now