Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ciaaPOSIX_write() stops the system in ciaa_nxp and edu_ciaa_nxp target #455

Closed
mabeett opened this issue Apr 14, 2017 · 6 comments
Closed

Comments

@mabeett
Copy link
Contributor

mabeett commented Apr 14, 2017

If the user uses ciaaPOSIX_write() the system will stop with no clear cause.

A quick way for trigger this bug is just using ciaaPOSIX_write() in an infinte loop, but may be used carefully and anyway will stop.

blinking_write.tar.gz is a test app based on blinking_exho example with ciaaPOSIX_write in an infinite loop.

Applying the patches of #453 the test app works with no freeze.

@mabeett mabeett added the bug label Apr 14, 2017
@mabeett mabeett changed the title ciaaPOSIX_write() stopts the system in ciaa_nxp and edu_ciaa_nxp target ciaaPOSIX_write() stops the system in ciaa_nxp and edu_ciaa_nxp target Apr 14, 2017
@mabeett mabeett added the Posix label Apr 14, 2017
@mabeett
Copy link
Contributor Author

mabeett commented May 19, 2017

I have been working in this issue (and #453) with no advance.
@glpuga do you have a a target different than ciaa-nxp/edu-ciaa-nxp? Would you mind test and deploy this issue and #453 in your target if you have one?
Tanks

@mabeett
Copy link
Contributor Author

mabeett commented May 22, 2017

For triggering the bug the user has to send data via RS-232 port.

@glpuga
Copy link
Contributor

glpuga commented May 23, 2017

I'm afraid I don't have access to a target where your test program can be run as is, since the LEON3 port I worked on does not currently sport a DIO driver, and therefore I would not have a way to tell that the program died through a led.

I may try running the write version without the DIO, checking the alive status through the UART, but it may take some time since I haven't been working on this for some time now and I don't have a hardware target currently available.

@glpuga
Copy link
Contributor

glpuga commented May 23, 2017

I must also warn you that at most I can confirm that the problem you see seems to manifest itself on my target too.

I cannot deploy your patches, though, and not only for the reasons I already stated on #453 but because I don't have any kind of administrative authority over the CIAA Firmware repository.

@mabeett
Copy link
Contributor Author

mabeett commented May 24, 2017

I may try running the write version without the DIO, checking the alive status through the UART, but it may take some time since I haven't been working on this for some time now and I don't have a hardware target currently available.

@glpuga There is no problem, I may prepare an application without write over DIO, and using direct register setting for digital output setting (anyway is just setting in a register). As far I understand, the write over DIO is not part of a problem.

The application must have 2 FULL preemptive tasks with different priorities (being NON preemptive with Schedule(); calls the bug does not appears). In the example PeriodicTask blinking started by alarm and SerialEchoTask with a flooding write via ciaaPOSIX_write().

For blinking without write I may prepare the blinking with macros to LPC driver, you should adapt this to your target.

I am just searching for triggering the bug in an architecture different than lpc, so on this way I could think more in the OS than the LPC's drivers/wrappers.

Make know if preparing a test app with UART via ciaaPOSIX_write() but not DIO via ciaaPOSIX_write() is possible in your scenario and I will make the app triggering the bug for your LEON3. I cannot prepare it intermediately so there will be no problem if you take tour time.

@mabeett
Copy link
Contributor Author

mabeett commented Jun 17, 2017

The cause of this problem is #457, as the tests indicated in the mailing list says .

@mabeett mabeett closed this as completed Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants