Skip to content

add support for the murata's module CMWX1ZZABZ-078 based on STM32L0 #5905

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

Merged
merged 1 commit into from
Jan 31, 2018
Merged

add support for the murata's module CMWX1ZZABZ-078 based on STM32L0 #5905

merged 1 commit into from
Jan 31, 2018

Conversation

ithinuel
Copy link
Member

@ithinuel ithinuel commented Jan 23, 2018

Description

This PR add support for the STM32L082CZ and murata's CMWX1ZZABZ-078 module.
This was tested with @kivaisan on mbed-os-example-lora

Status

WORK IN PROGRESS

Related PR

Todos

  • Tests
  • Documentation

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 23, 2018

/morph build

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 23, 2018

@ithinuel mbed test results from all 3 toolchains?

@mbed-ci
Copy link

mbed-ci commented Jan 23, 2018

Build : SUCCESS

Build number : 923
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5905/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

Copy link
Collaborator

@jeromecoutant jeromecoutant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi
Here is a quick review :-)

.gitignore Outdated
@@ -72,6 +72,9 @@ debug.log
# Cscope
cscope.*

# Ctags
tags
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to the PR ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No indeed, does it need to have its own PR ?

Copy link
Contributor

@cmonr cmonr Jan 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please. I know it seems small, but it helps in keeping pull requests atomic and relevant to their subject.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to reference this PR to indicate that it's related.

@@ -0,0 +1,239 @@
;******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
;* File Name : startup_stm32l053xx.s
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed (removed)

@@ -0,0 +1,44 @@
; Scatter-Loading Description File
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed (removed)

@@ -0,0 +1,44 @@
; Scatter-Loading Description File
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong file name

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed (removed)

"core": "Cortex-M0+",
"extra_labels_add": ["STM32L0", "STM32L0x2xB", "STM32L082KB", "STM32L082xx"],
"detect_code": [],
"device_has_add": ["ANALOGOUT", "LOWPOWERTIMER", "SERIAL_FC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add macro MBEDTLS_CONFIG_HW_SUPPORT ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually not as AES driver does not support STM32L0x2 yet.

@mbed-ci
Copy link

mbed-ci commented Jan 23, 2018

@cmonr
Copy link
Contributor

cmonr commented Jan 23, 2018

It's a tiny change, but holding off on another rebuild until .gitignore is restored. .gitignore change is not related to PR.

@mbed-ci
Copy link

mbed-ci commented Jan 23, 2018

@bcostm
Copy link
Contributor

bcostm commented Jan 24, 2018

I have a remark about the subfolder name TARGET_STM32L0x2xB.

You wrote in the PR description that this module is based on the STM32L082CZ MCU. So, I think it would be better to use TARGET_STM32L082xZ in order to be aligned with the other targets.

If it is a mistake and the MCU is a STM32L082CB, I would use TARGET_STM32L082xB.

@ithinuel
Copy link
Member Author

@bcostm Actually this is intended.
This is to match the 072 & 082 as they only differ by the presence of an AES hw on the 082.
The memory range does not collide with other as they are identified by the last letter "B" of the 128K/20K range. So any target based on l072xB or L082xB within this directory share the same code.
for reference : stm32l0x2 USB line

@cmonr Ok, I remove it

@0xc0170 I couldn't run them yet as I miss the DAPLink support for this soc.

@cmonr
Copy link
Contributor

cmonr commented Jan 24, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jan 24, 2018

Build : SUCCESS

Build number : 941
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5905/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 24, 2018

@ithinuel
Copy link
Member Author

ithinuel commented Jan 25, 2018

Update: rebase + rename from stm32l0x2xB to stm32l0x2xZ + disable LOWPOWERTIM as some tests were not passing.

compiler result
GCC
ARMC6
ARMC5 I cannot test
IAR I cannot test

@jeromecoutant
Copy link
Collaborator

Hi

Just a comment on:

disable LOWPOWERTIM as some tests were not passing

I think disabling LPT for a Lora board doesn't have any sense...
System clock is using HSI which is a low precise clock, timers are then not precise, and tests become FAIL...

@ithinuel
Copy link
Member Author

@jeromecoutant Enabling LPT actually requires LSE/LSI and I couldn't get tests to pass with them.
Couldn't this be part of a further issue/pr ?

@jeromecoutant
Copy link
Collaborator

Enabling LPT actually requires LSE/LSI and I couldn't get tests to pass with them.

Yes, LPT is using LSE from Murata module.
System timer is using HSI from STM32 chip (tests are using system timer to check lp timer).

Couldn't this be part of a further issue/pr ?

It is up to you, it's your board :-)

@ithinuel
Copy link
Member Author

This PR needs #5937

@mbed-ci
Copy link

mbed-ci commented Jan 26, 2018

Build : SUCCESS

Build number : 974
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5905/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 26, 2018

@cmonr
Copy link
Contributor

cmonr commented Jan 26, 2018

@ithinuel In that case, can you rebase this PR so we can rebuild?

@ithinuel
Copy link
Member Author

@cmonr It is already rebased & built but it seems I still have issue with the exporter of uvision.

@cmonr
Copy link
Contributor

cmonr commented Jan 26, 2018

@ithinuel Looks like this is an issue on our side.

@cmonr
Copy link
Contributor

cmonr commented Jan 26, 2018

/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 27, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 29, 2018

@ithinuel Looks like this is an issue on our side.

@studavekar Can you please check the latest exporters failure here?

@cmonr
Copy link
Contributor

cmonr commented Jan 29, 2018

@ithinuel, we're currently working to resolve this on our side.

Once it's resolved, we'll relaunch the export build.

@studavekar
Copy link
Contributor

@cmonr @0xc0170 can you please provide the link to cmsis pack which needs to be installed?

@studavekar
Copy link
Contributor

Thanks, @cmonr. Have installed required pack for CMWX1ZZABZ

/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 30, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 30, 2018

/morph test

@mbed-ci
Copy link

mbed-ci commented Jan 30, 2018

@cmonr cmonr merged commit 097966b into ARMmbed:master Jan 31, 2018
@ithinuel ithinuel deleted the add-CMWX1ZZABZ-078-support branch January 31, 2018 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants