Giter Club home page Giter Club logo

Comments (13)

ErichStyger avatar ErichStyger commented on August 17, 2024

I have not used it for S08 for a while. So it could be that something is broken. I'll have a look and report back.

from mcuoneclipse.

ErichStyger avatar ErichStyger commented on August 17, 2024

Hi Erdyke,
Indeed, things are broken for S08 if using a dedicated timer :-(.
I have commited a fix here: ErichStyger/McuOnEclipse_PEx@b55ffa5
Can you check if this solves the problem on your side as well?

I appologize for the issue,
Erich

from mcuoneclipse.

Erdyke avatar Erdyke commented on August 17, 2024

Will do,

Regards,
Eric Dyke

from mcuoneclipse.

ErichStyger avatar ErichStyger commented on August 17, 2024

Hi Eric,
I have fixed as well the secone issue with custom base types:
ErichStyger/McuOnEclipse_PEx@7362338

Sorry as well for this issue, I have never used custom base types :-(.

Let me know if this is fixed on your side too so I can close this issue.

Thanks,
Erich

from mcuoneclipse.

Erdyke avatar Erdyke commented on August 17, 2024

Thanks. I will need to get to it tonight.

from mcuoneclipse.

Erdyke avatar Erdyke commented on August 17, 2024

The first fix allows things to compile fine. I have not tested the other fix.
I'm pretty new to FreeRTOS so I will need to play around with it on my demo board to see how it runs with the default settings. Thanks for all the work you do!

from mcuoneclipse.

ErichStyger avatar ErichStyger commented on August 17, 2024

Thanks, and you are welcome. I'm closing the issue now. Be free to report if there are any problems or if there is anything to reopen the issue.

from mcuoneclipse.

Erdyke avatar Erdyke commented on August 17, 2024

Perhaps I'm missing something, but I cannot get a regular LED demo to run using default settings with a task delay of 500 ms. Do I need to do anything with the events created from the bean?

from mcuoneclipse.

ErichStyger avatar ErichStyger commented on August 17, 2024

No, nothing special to set up, and no special event handling needed. Below some code:

static void AppTask(void* param) {
for(;;) {
LED1_Neg();
vTaskDelay(pdMS_TO_TICKS(500));
}
}

if (xTaskCreate(AppTask, "App1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) {
for(;;){} /* error case only, stay here! /
}
vTaskStartScheduler(); /
start the RTOS, create the IDLE task and run my tasks (if any) */

from mcuoneclipse.

Erdyke avatar Erdyke commented on August 17, 2024

As before, it looks like the tasks are getting created okay and are executed. I can set a breakpoint at the LED1_NegVal(); and see we get there each time. But there doesn't seem to be any real delay. I'm instantly returned to the BP after continuing.

from mcuoneclipse.

Erdyke avatar Erdyke commented on August 17, 2024

In case it's useful, I uploaded my project: https://github.com/Erdyke/FreeRTOS-DEMO

from mcuoneclipse.

ErichStyger avatar ErichStyger commented on August 17, 2024

Yes, that's useful. I don't have that S08 device, but I think I have found your issue: you have the Software Interrupt not properly configured. It is an older article, but the settings for FreeRTOS still apply, have a look at https://mcuoneclipse.com/2012/06/28/tutorial-freertos-on-demojm/. The swi needs to be configured properly (https://mcuoneclipse.files.wordpress.com/2012/06/assigning-software-interrupt-vector.png?w=584).
The other thing is: your heap is set to 2KByte. That's fine for a few tasks. You might increase that one later.
I hope this helps,
Erich

from mcuoneclipse.

Erdyke avatar Erdyke commented on August 17, 2024

That's the fix. Thanks for the help. Much Appreciated!

from mcuoneclipse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.