Skip to content

libmaple - missing interrupt vectors in table for high density devices #64

@bnewbold

Description

@bnewbold

Original author: keith....@gmail.com (January 18, 2012 18:47:42)

What steps will reproduce the problem?

  1. Build examples/test-timers.cpp using timer8 instead of timer1 on RET6 MCU
  2. Watch board throb upon first interrupt fired for timer8

What is the expected output? What do you see instead?

  • Instead of seeing an interrupt fire correctly the board will halt and throb.

What version of the product are you using? On what operating system?
-maple RET6 Edition, Linux

Please provide any additional information below.

Original description of the problem can be seen here: http://forums.leaflabs.com/topic.php?id=1274

The makefile that builds the libcs3_stm32_[high|med]_density.a archives doesn't seem to be building the high density archive correctly. When building the high density archive the define required to include the additional interrupt vectors for the high density models never gets set by make for the assembler when it builds the .S files. An example of this can be seen in the archives included with libmaple from the github repository. The archives are exactly the same size and neither of them include symbols for the __tim8 interrupts. I didn't verify that all the high-density specific symbols were missing, but it's safe to assume they are missing due to the nature of the problem. Patching the Makefile with the attached patch fixes it.

Additionally, there is no included cs3.h file, so the libcs3 archives won't build if you pull libmaple from the git repository as-is. I had to dig it up by googling. I would think it should be included (if licensing allows). I didn't include it because I'm not 100% sure if there's something special about the other version.

(attachment at https://gist.github.com/bnewbold/4734603)
Original issue: http://code.google.com/p/leaflabs/issues/detail?id=78

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions