QN9080 - issue with CRP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

QN9080 - issue with CRP

1,656件の閲覧回数
maxasaulov
Contributor II

Hi,

I'm trying to enable CRP2 for the device based on QN9080. According to the https://www.nxp.com/docs/en/nxp/user-guides/UM11023.pdf (page 73) CRP is controlled by 4 bytes at 0x20 offset in the vector table.  Here is the hex dump of firmware vector table that I'm flashing

> hd firmware.bin | head

00000000 f0 ff 01 04 f1 1b 00 00 59 1d 00 00 69 1d 00 00 |........Y...i...|
00000010 69 1d 00 00 69 1d 00 00 69 1d 00 00 00 00 00 00 |i...i...i.......|
00000020 fe 68 06 00 00 00 00 00 00 00 00 00 69 1d 00 00 |.h..........i...|
00000030 69 1d 00 00 69 1d 00 00 69 1d 00 00 69 1d 00 00 |i...i...i...i...|‍‍‍‍

There is 0x000668fe at 0x20 which is mentioned on page 84 as the default value for CRP2.

After flashing I've shorted the CHIP_MODE pin to the ground and connected the USB - new mass device appeared with the name "CRP DISABLD". I've also downloaded the firmware from the device using JLink. Here is the hex dump 

> hd downloaded.bin | head

00000000  f0 ff 01 04 f1 1b 00 00  59 1d 00 00 69 1d 00 00  |........Y...i...|
00000010  69 1d 00 00 69 1d 00 00  69 1d 00 00 22 51 fd fb  |i...i...i..."Q..|
00000020  ff a8 0a 00 00 00 00 00  00 00 00 00 69 1d 00 00  |............i...|
00000030  69 1d 00 00 69 1d 00 00  69 1d 00 00 69 1d 00 00  |i...i...i...i...|

You can see that value at 0x20 changed to 0x000aa8ff which is the default value for no CRP.

Any ideas whats wrong?

SDK: SDK_2.2_QN908xCDK_Beta
IDE: mcuxpressoide-10.0.2_411
System : Ubuntu 16.04

Regards,
Max.

ラベル(1)
タグ(4)
2 返答(返信)

1,261件の閲覧回数
gerardo_rodriguez
NXP Employee
NXP Employee

Hello Max,

If you are using JLink debugging interface you need to change the Device to "QN9080C (allow CRP)" in the debug configuration so that it allows you to write the CRP register. You need to manually add the quotation marks "" around the device name, so that it is passed correctly as a parameter to the JLinkGDBServer.

Run>Debug Configurations...

pastedImage_2.png

With this change to the debug configuration I was able to change the CRP to 0x000668FE and the USB ISP bootloader enumerates as "CRP ENABLD".

pastedImage_5.pngpastedImage_6.png

Additionally, the RFP (Ready for Production) build of the QN9080 SDK is now available from the MCUXpresso SDK builder and some new tools are also available in the Lab and Test Software section of the SOFTWARE & TOOLS tab in the QN908x product page.

Let me know if this works for you.

Regards,

Gerardo

1,261件の閲覧回数
maxasaulov
Contributor II

Hi Gerardo Rodríguez,

Yes, it works. Thanks.

Regards,
Max.