ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.64k stars 2.97k forks source link

Add support for Murata Type ABZ (CMWX1ZZABZ-078) #14695

Closed factoryal closed 3 years ago

factoryal commented 3 years ago

Description of defect

Hi. I'm trying to run my program on Murata Type ABZ (CMWX1ZZABZ-078) which is on my custom board. I already tested on DISCO-L072CZ-LRWAN1(CMWX1ZZABZ-091). But It seems that Murata Type ABZ is not supported on mbed right now.

I found that this module supported on mbed OS 5 but omitted on mbed OS 6.

There's STM32L082xZ target directory exists but why this module omitted on mbed OS 6?

Can I run my program on this module?

Thanks for all replies and supports.







Target(s) affected by this defect ?

Murata Type ABZ

Toolchain(s) (name and version) displaying this defect ?

ARM Compiler 6.15

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.9.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Mbed Studio 1.4.1

How is this defect reproduced ?

Always

adbridge commented 3 years ago

@factoryal normally this is more a question for our forums https://forums.mbed.com/c/mbed-os/6 . There are a number of reasons why a target might be supported on Mbed 5 and not Mbed 6. It may no longer be supported by the partner or even just not capable of running Mbed 6. The Mbed team doesn't normally do the porting of targets, but we welcome contributions from the community. Please take a look here https://os.mbed.com/docs/mbed-os/v6.10/porting/index.html.

factoryal commented 3 years ago

@adbridge Thanks for reply. would you write some information at least it supports mbed OS 5 on webpage? there's no information about that compared to other modules. "Mbed Enabled" and "mbed OS Support" are blank. image

adbridge commented 3 years ago

@MarceloSalazar who is responsible for these mbed enabled pages ?

MarceloSalazar commented 3 years ago

Note the MURATA_ABZ is supported in Mbed OS 5.15 (see here) but not in Mbed OS 6. I've added the corresponding 5.15 flag.

The modules are not Mbed Enabled. We'll update the pages shortly.

factoryal commented 3 years ago

@MarceloSalazar Thanks. I tested on Mbed OS 5.15 today and it worked. Is the partener different from DISCO-L072Z-LRWAN? It supports Mbed OS 6. I tried this module because it is almost same as CMWX1ZZABZ-091 and there's no any comment on website as above. I didn't think they're that different.

MarceloSalazar commented 3 years ago

@factoryal the MURATA_ABZ is based on STM32L082CZ and DISCO-L072Z-LRWAN is based on STM32L072CZ. Different MCUs although part of the same L0 family. I don't know about CMWX1ZZABZ.

You may consider adding a custom board as described here and guidelines provided by ST here. It would be great if you share your custom configuration in the Custom and community boards forum.

cc @ARMmbed/team-st-mcd

factoryal commented 3 years ago

@MarceloSalazar MURATA_ABZ is CMWX1ZZABZ-078 and module used in DISCO-L072CZ-LRWAN is CMWX1ZZABZ-091. Murata says there's no basic differences. It seems that it is runnable on MURATA_ABZ with selecting build target: DISCO-L072CZ-LRWAN1 .

factoryal commented 3 years ago

the webpage has been updated. appreciate it!

hallard commented 3 years ago

Interesting topic because each time I'm searching on differences between these Murata modules, it's a headache, so to keep trace somewhere, here are some precisions: Murata ABZ datasheet says that there have 2 modules 078 and 091: image

difference between STM32L082 and STM32L072 and ST series states the only difference is that the L082 has HW AES encryption, not sure how it is (if it is) handled in mbed. image

Please note there is now new version CMWX1ZZABZ-093 and CMWX1ZZABZ-104 not mentioned in the datasheet on Murata web site so we can't find any information of L0 type it is. Love marketing guys...

And I can't help about the new Murata 1SJ module because even registered on murata support I can't have access to anything related to it without buying a module that have a registration code, amazing....

factoryal commented 3 years ago

@hallard Hi. This is interesting. I can search CMWX1ZZABZ series on their website but I cannot find CMWX1ZZABZ-091 model. (discontinued? Is CMWX1ZZABZ-093 minor upgrade of CMWX1ZZABZ-091?) image

I think MCU used on these chip might be L072CZ or L082CZ because they have same physical size, flash size and memory size.

According to their website,...

The only differences between STM32L082 and STM32L072 is AES hardware encryption feature and I can confirm that mbed program works on L082 developed on L072 settings. ( is not mbed enabled since mbed-os-6 but supports)

I don't know why Murata website has so lacking information. that's really annoying.

https://wireless.murata.com/type-abz-078.html https://wireless.murata.com/type-abz-091.html (404 ERROR) https://wireless.murata.com/type-abz-093.html https://wireless.murata.com/type-abz-104.html

thanks for comment :)

jeromecoutant commented 3 years ago

difference between STM32L082 and STM32L072 and ST series states the only difference is that the L082 has HW AES encryption, not sure how it is (if it is) handled in mbed.

Yes, difference between STM32L082 and STM32L072 is HW crypto.

You can enable it in Mbed-os with "MBEDTLS_CONFIG_HW_SUPPORT" macro

hallard commented 3 years ago

@factoryal thanks for your answer, do you have any definition already done for mbed, may be we can add it to stm32customtargets repo? I can do it if you push here your definitions files or I may just get back the old one removed from mbed os repos while going to v6.

Thanks

jeromecoutant commented 3 years ago

Hi Please have a look on https://github.com/ARMmbed/stm32customtargets/pull/11

factoryal commented 3 years ago

@hallard sorry. I'm just a beginner of mbed and don't know how to write my custom definitnions right now. I just uploaded with target DISCO-L072CZ-LRWAN1. I didn't know for the first time that there's two different models(-091, -078) because it worked so well without any different behaviors.

hallard commented 3 years ago

@factoryal thanks, that is just what we wanted to know.

jeromecoutant commented 3 years ago

As HW crypto is not enabled with STM32L082 within mbed, SW should be exactly the same for both L072 and L082.

An "easy" way to compare MCU capability could be to compare CMSIS file. Ex: