Bluetooth connection failed after flash rw

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bluetooth connection failed after flash rw

1,156 Views
roem
Contributor II

Flash RW was applied to existing codes by referring to flash examples.

After booting, I checked that Bluetooth was advertising.
However, the QN9080 reboots as soon as Bluetooth connection is attempted.

When programmed with the code before applying flash RW, it works normally.
Does the flash address in the example overlap with the Bluetooth address?

0 Kudos
4 Replies

1,124 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

Hope you are doing well. The flash_polling example erases and writes in direction FLASH_BASE_ADDRES + 2048*60. FLASH_BASE_ADDRES + 122,880 bytes (0x1E000).

In the "QN9080 Bluetooth® LE Software – Release Notes" you can find memory footprints of some of the BLE examples available in our SDK.

For example, in the Wireless UART application (FreeRTOS, MCUXpresso IDE, Release Configuration), the Flash size used is 170,594 bytes.

So if you are manipulating those bytes of BLE application in flash you will have errors.

Hope this helps.

 

Best Regards,

Ricardo

1,097 Views
roem
Contributor II

Hi, Ricardo.

 

If BLE uses flash, where does the address start?

If I start with 0x2101 E000, does Wireless UART use 170,594 bytes, so I use 0x2102 9A62?

Then, since the example uses the address from 0x2101 E000, is the connection disconnected due to overlapping space?

 

I want to confirm that the flash address of Wireless UART will start 0x2100 0000.

And, Is there a way to get an empty flash address?

How can I know how much flash memory is being used on QN9080 chip?

0 Kudos

1,070 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

The Flash Base Address is 0x2100 0000. And the code from the Wireless UART example (with the mentioned configurations) would go from this address, from 0x2100 0000 to 0x2102 9A62 (approximately).

After you build a project, you can know the flash consumption directly in the MCUXpresso console:

Ricardo_Zamora_1-1629831746503.png

 

Typically the Flash consumption of the application will be text + data. This can be found in section 17.5.2 of the MCUXpresso IDE User Guide.

Hope this helps.

 

Best regards,

Ricardo

0 Kudos

1,104 Views
roem
Contributor II

-

0 Kudos