Version 4.60: CONTROL is ok - BASEPRI still wrong endianness (Cortex-M3)

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Version 4.60: CONTROL is ok - BASEPRI still wrong endianness (Cortex-M3)

    Hi,

    The CONTROL register is in version 4.60 correct, but the BASEPRI is still wrong.

    A priority of 0x28 (e.g. FreeRTOS) is still displayed at 0x2800.

    EmBlocks users:

    Keep the shifting in the squirrel scripting arm-gdb-reg.script for the basepri

    Source Code

    1. ////////////////////////////////////////////////////////////////////////////////
    2. // The ARM BASEPRI register
    3. ////////////////////////////////////////////////////////////////////////////////
    4. /////////////////////////////////////////////////////////
    5. // Function returns: comma seperated list
    6. //
    7. function parse_bpri(value)
    8. {
    9. local result = ::wxString();
    10. // Correct the endiannesses of Segger J-link
    11. value = (value >>8)&0xFF;
    12. result = _T("");
    13. result += _T("BASEPRI=");
    14. result += ::wxString.Format(_T("0x%02X;"), value );
    15. result += ::wxString.Format(_T("%u,"), value );
    16. return result;
    17. }
    18. /////////////////////////////////////////////////////////
    19. // Function
    20. //
    21. // member : wxString -> register member
    22. // regval : unsigned long -> the value of the parent register
    23. // memval : unsigned long -> the new value for the register member
    24. //
    25. // returns: wxString which is directly used for the GDB command driver
    26. //
    27. function set_bpri(member, regval, memval)
    28. {
    29. local result = ::wxString();
    30. if( member.Matches(_T("BASEPRI") ) )
    31. {
    32. regval = memval & 0xFF;
    33. }
    34. // Correct the endiannesses of Segger J-link
    35. regval = regval << 8;
    36. result = result.Format(_T("0x%X"),regval );
    37. return result;
    38. }
    Display All
  • This will be fixed in the next patched version (V4.60b)

    Best regards
    Johannes
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.