Monday, December 18th 2017, 10:02am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Derrick

Beginner

Date of registration: Apr 21st 2009

Posts: 2

1

Tuesday, April 21st 2009, 4:33pm

Interrupts not firing?

Hello all;

I am currently using emUSB (CDC device profile) along with embOS successfully in a project, targeting Atmel's AT91SAM7S256. Now, I wish to add a bootloader/firmware update application that will take a hex file from a PC via USB in order to update the firmware. I wish to again use emUSB (CDC), however without an OS this time.

In the emUSB manual, on page 14 it states that emUSB can be used with or without an RTOS. However, on page 21, it states that a real-time kernel is required. Isn't this conflicting?

I've tried to use the USB_OS_NONE interface with no success - it seems as though I'm not getting any interrupts. I've put a breakpoint on the assembly code located at 0x18 - I can see this is being hit from the firmware (the Timer interrupt for embOS), but not my bootload application. My intent was to have logic located at this location to call the appropriate interrupt handler function - either that of embOS or emUSB - but I'm not even getting that far. Shouldn't the emUSB driver take care of ensuring all required interrupts are enabled? If so, is there some interrupt vector remapping that I must be doing when switching between apps?

Thanks for any advice,

Derrick

Derrick

Beginner

Date of registration: Apr 21st 2009

Posts: 2

2

Tuesday, April 21st 2009, 5:33pm

EP0 interrupt?

One further question:

I have a sample app that seems to be working OK (i.e., interrupts are firing) without an OS. However, I am never seeing the EP0 interrupt - what would cause this? I seem to be getting the BusReset interrupt, followed by a Suspend interrupt.

Derrick

tonykara

Beginner

Date of registration: Feb 17th 2010

Posts: 3

3

Wednesday, February 17th 2010, 8:55pm

Did you ever get your issues resolved? If so, did Segger tech people help, was it the forum, or did you figure it out on your own?

This forum seems pretty quiet. I'm looking into various RTOS vendors and browsing their forums seem to tell me how much trouble the tools can be.

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 261

4

Thursday, February 18th 2010, 5:30pm

Please be aware that this forum is intended for customers which want to get help by other customers (e.g. they are not longer in support). We have of course also every day a look in this forum but the better way to get support is to get directly in contact with us by phone or email. Then you can be sure that you get really fast support (normaly at working time within an hour).

But your are right, the embOS part of this forum is pretty quiet. This is caused that embOS is much reliable and easy to use (that is what I hear very often from our customers).
To make your decision easier please download the embOS trial version for SH2A and HEW. If you like to evaluate also our other products please visit Segger - SH2A and download there the complete Segger Eval software package.

With the embOS trial version you can evaulate embOS perfectly because the trial version has no functional limitation. So you really know what you get when you buy embOS.

If you have any other questions please do not hesitate to contact us directly.

Regards,
Til

tonykara

Beginner

Date of registration: Feb 17th 2010

Posts: 3

5

Friday, February 19th 2010, 9:54pm

Thanks for the reply. I did download it and I'm actually making pretty good (and quick) progress with it. This tells me you have tried using your own demos before posting them!

I also realize there will be some trouble down the road and what I'm trying to ascertain is the response of not only the company, but the community as well. If I run into some problem when you're closed, it's nice to know there is an active community which will read my issue and possibly offer suggestions to a solution.

Thanks,
Tony

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 261

6

Monday, February 22nd 2010, 9:03am

To be honestly I do not think that most customers work with forums because they prefer to contact us directly. Therefore you will not find much embOS related technical discusssions in forums.

Anyhow even on not working time we check our emails and you can be pretty sure that you get in urgent cases response asap.

Regards,
Til